Calling compartments, TADs and loops

Eigenvectors, insulation scores and dot calling on GM12878 Hi-C, and what the calls mean

Epigenetics

About this lecture

Hi-C: from reads to contact matrices ended with a balanced matrix and its expected value at each distance. This lecture turns that matrix into the three features of 3D genome organisation, and checks them against other data.

  • Compartments: the first eigenvector of the correlation matrix, its sign, and the saddle plot.
  • Domains: the insulation score, boundaries, and why domain callers disagree.
  • Loops: dot calling against a local background, the CTCF orientation at anchors, and aggregate peak analysis (APA).
  • Briefly: differential Hi-C, and what Micro-C, HiChIP and Capture-C add.

Three features, three kinds of caller

  • Each feature is a different deviation from the expected contact frequency at a given distance.
  • Compartments: long-range, Mb. Domains: blocks on the diagonal, 0.1–1 Mb. Loops: single pixels, 10–100s of kb.
  • So each needs its own resolution and its own statistic.

Compartments: from map to eigenvector

  • Divide by the expected value per diagonal: observed / expected (O/E) removes the distance decay.
  • Correlate every row with every other: bins of the same type have similar contact profiles.
  • The first eigenvector (E1) of that correlation matrix splits bins into two groups: its sign is the compartment.

Real data: chr19

  • O/E (left): red where bins contact more than expected at their distance, blue where less. The correlation (right) turns it into a crisp checkerboard.
  • E1 at 100 kb: 57% of chr19 is A (positive), 46% of chr21.

Which sign is A?

  • The sign of an eigenvector is arbitrary. Orient it with a track that differs between A and B: GC content or gene density (no other data needed), or active marks.
  • Here E1 was phased by GC: Spearman ρ = 0.62 with GC, 0.71 with H3K27ac, −0.61 with H3K9me3 (chr19 + chr21, 100-kb bins).
  • Our E1 agrees with ENCODE’s own eigenvector: ρ = 0.97 (chr19) and 0.90 (chr21).

Pitfalls of the eigenvector

  • E1 is not always A/B. If a chromosome has a strong arm effect (centromere) or a large domain of its own, E1 can capture that and A/B moves to E2. Check: which eigenvector correlates with GC? (Here E1: ρ = 0.78 and 0.64; E2: 0.15 and 0.11.)
  • Compute per arm, not per chromosome, when the centromere splits the chromosome in two: eigs_cis(..., view_df=arms).
  • Resolution: at 1 Mb, small A or B segments vanish; at 10 kb, too few contacts per bin for a stable correlation unless the data are very deep.
  • Only a sign, not a state: two compartments are a simplification. Rao et al. 2014 found six subcompartments with distinct marks; newer methods use clustering of trans contacts.

Saddle plots: how strong are compartments?

  • Sort bins by E1, split them into groups, and average O/E for every pair of groups.
  • Compartment strength = (AA + BB) / (AB + BA): how much more like contacts like.
  • Used to compare conditions: e.g. stronger after cohesin loss, weaker after WAPL loss.

Real data: a saddle plot

  • chr19 + chr21, 100 kb. B–B contacts are 2.5× expected, A–A 1.6×, A–B only 0.3×.
  • Strength with five groups: (2.46 + 1.56) / (0.31 + 0.31) = 6.6. B is more self-associated than A here.

Domains: the insulation score

  • Slide a square window of w \times w bins along the diagonal and sum the contacts that cross each position.
  • Inside a domain many contacts cross; at a boundary few do. The score is log2(window sum / chromosome mean).
  • Boundaries = local minima; their strength = depth of the dip relative to the flanks.

Real data: insulation along chr21

  • 10-kb bins, 200-kb window: 7 boundaries in this 5-Mb window; the dips line up with the edges of the triangles.
  • On chr19 + chr21: 160 boundaries; 66% lie within 10 kb of a CTCF peak summit, against 39% of random bins.

The window decides what you find

  • Small windows (100 kb) find many, finer boundaries (11 here); large windows (500 kb) only the strongest (5).
  • Genome-wide on chr19 + chr21: 261, 160 and 98 boundaries for 100, 200 and 500 kb.
  • Domains are nested: there is no single right answer, only a scale.

Boundaries are CTCF sites

  • Mean CTCF ChIP-seq signal around the 261 boundaries (100-kb window): a peak centred on the boundary, clear for the strongest third (fold change 0.68 vs 0.54 at 300 kb), weak for the weakest third.
  • Fits the extrusion model: CTCF stops cohesin, so contacts across the site are depleted.
  • Not every boundary has CTCF: active promoters and transcribed genes also insulate, more weakly.

Domain callers disagree

  • Same data, different answers: callers differ in scale, in whether domains may nest or leave gaps, and in how they treat sparse data.
  • Our 200-kb boundaries vs ENCODE’s Arrowhead domains (chr19 + chr21): 81% of our boundaries are near an Arrowhead edge; only 32% of Arrowhead edges are near one of our boundaries.
  • Benchmarks (Forcato et al. 2017; Zufferey et al. 2018) found low agreement between callers, and between resolutions.

Loops: calling dots

  • A loop is a pixel enriched over its local neighbourhood, not just over the average at its distance (a domain corner is already above that average).
  • HiCCUPS: four local backgrounds (donut, lower-left, horizontal, vertical); Poisson test of the count against each; FDR; neighbouring pixels merged.

Real data: our dots and ENCODE’s

  • cooltools dots at 10 kb on chr19 + chr21: 178 dots; 96% of them match an ENCODE HiCCUPS loop (both anchors within 20 kb).
  • HiCCUPS found 533 loops on these chromosomes (5, 10 and 25 kb combined); we recover 35% of those spanning ≤ 2 Mb.

Loop anchors: convergent CTCF motifs

  • For each anchor of the 14 599 ENCODE loops: the strongest CTCF peak with a motif, and the motif’s strand.
  • Of 5 716 loops with a motif at both anchors, 84% are convergent (→ … ←); tandem 15%, divergent only 1%.

Aggregate peak analysis (APA)

  • Single loops are noisy. Stack the submatrices around many loop positions and average: the shared signal emerges.
  • APA score = centre pixel / mean of the lower-left corner. Works for sets of loops called in other data (e.g. another cell type, or anchors defined by ChIP-seq).

Real data: APA of CTCF loops

  • chr19 + chr21, 10 kb, loops longer than 150 kb, O/E pileups ±100 kb.
  • Convergent CTCF loops (n = 102): APA 2.8; all other loops (n = 223): 2.8; the same loops shifted by 500 kb: 1.0 (no dot).
  • Loop calls are real on average; this test does not separate the classes.

cooltools in practice

import cooler, cooltools, bioframe
clr = cooler.Cooler("gm12878_hic_chr19_chr21.mcool::resolutions/100000")
exp = cooltools.expected_cis(clr, view_df=view)                         # P(s) per chromosome
eigvals, eigs = cooltools.eigs_cis(clr, view_df=view, phasing_track=gc)  # compartments
S, N = cooltools.saddle(clr, exp, eigs[["chrom", "start", "end", "E1"]], "cis", n_bins=5, view_df=view)

clr10 = cooler.Cooler("gm12878_hic_chr19_chr21.mcool::resolutions/10000")
ins = cooltools.insulation(clr10, [100_000, 200_000, 500_000], view_df=view10)  # boundaries
dots = cooltools.dots(clr10, expected=exp10, view_df=view10)                    # loops
stack = cooltools.pileup(clr10, loops, view_df=view10, expected_df=exp10, flank=100_000)  # APA
  • Every function takes a view (which regions to analyse separately) and, where needed, the expected.
  • In R: HiCExperiment/HiContacts read the same .mcool files.

Differential Hi-C

  • Compare conditions (knockout vs wild type, two cell types) on matched depth and resolution, with replicates.
  • Changes at three levels: compartment switches (E1, saddle strength), boundary strength (insulation), loop strength (APA, per-loop counts).
  • Count-based tests for pixels exist (diffHic, multiHiCcompare, both edgeR-based: what you know from RNA-seq) but must handle distance decay and many tests.

Beyond Hi-C: finer and targeted maps

  • Micro-C (MNase instead of a restriction enzyme): nucleosome resolution; reveals many enhancer–promoter and promoter–promoter dots that Hi-C misses.
  • HiChIP / PLAC-seq (pull-down after ligation): loops at bound sites with fewer reads, but confounded with ChIP signal.
  • Capture-C / Capture Hi-C: deep, targeted contacts of chosen promoters.

What a call does and does not tell you

  • A called loop is a pixel enriched in the population: the loop may exist in a small fraction of cells at any time.
  • A domain boundary is a position of reduced contacts: its strength varies continuously and with the caller’s scale.
  • A compartment label is the sign of one vector: a two-state summary of a continuum, at one resolution.
  • Calls depend on depth, resolution, balancing and parameters: compare like with like, and report them.
  • Function needs perturbation: deletions, inversions, degrons, CRISPRi, not correlation with a call.

Summary

feature statistic real data (GM12878, chr19 + chr21)
compartments E1 of O/E (correlation), phased by GC 57% / 46% A; ρ = 0.71 with H3K27ac, −0.61 with H3K9me3
compartment strength saddle: (AA + BB) / (AB + BA) 6.6 (5 groups, 100 kb)
boundaries insulation score minima (window w) 261 / 160 / 98 for 100 / 200 / 500 kb; enriched at CTCF
loops dots vs local backgrounds (HiCCUPS, cooltools) 178 dots at 10 kb; 96% match HiCCUPS
loop anchors CTCF motif orientation 84% convergent (of 5 716 with two motifs)
loop strength APA: centre / lower-left 2.8 at called loops; 1.0 when shifted

Key papers (optional further reading)

Not required reading and not examined. For those who want the primary literature.