The local Poisson background, narrow and broad peaks, the role of the input, and reproducibility between replicates (IDR)
Epigenetics
About this lecture
MACS step by step for ChIP-seq with an input: fragment length, pileup, the local λ, Poisson p-values, q-values, peaks and summits.
What the input does, and what happens without one. Thresholds: how many peaks are real?
Broad domains: why narrow callers fail on H3K36me3, and how SICER/epic2 and --broad help.
Replicates: the IDR model in detail, pseudoreplicates and ENCODE’s peak sets.
Step 1: the fragment length
sample
paired + / − strand peaks
predicted d
alternatives
CTCF replicate 1 (36 bp reads)
359
100 bp
100
CTCF replicate 2
–
109 bp
–
H3K36me3 (51 bp reads)
305
246 bp
17 values from 24 to 595 bp
MACS finds strong regions, pairs a + strand pile with a − strand pile downstream, and takes their typical distance as d. Each read is then extended to d.
For broad marks the estimate is unstable: set d yourself (--nomodel --extsize 200) or use paired-end reads (-f BAMPE).
Steps 2–3: pileup and the local λ
Real data: λ at 521 CTCF summits
Left: the summit of the slide before. The ChIP pileup (brown) and the local λ (blue), which rises under the peak because the input has reads there.
Right: with a shallow input (3 reads per kb), the 100-bp window sets λ at 337 of 521 summits; λBG (0.29) at only 43.
The Poisson test, by hand
A candidate summit has pileup k = 25 (after depth scaling). From the input: \lambda_\text{BG} = 0.3, \lambda_d = 2, \lambda_\text{1k} = 4.5, \lambda_\text{10k} = 1.2.
Fold enrichment = (k + 1) / (λ + 1) at the summit = 26 / 5.5 = 4.7 (MACS adds a pseudocount of 1).
The same 25 fragments: overwhelming against the genome average, convincing against the local input, and nothing special inside a region where the input is 10.
From p-values to peaks
MACS scores every base by −log10 p, and converts the scores to q-values (Benjamini–Hochberg on the p-scores of all bases, weighted by how many bases have each score).
Peak = a run of bases with q below the cutoff (default 0.05; ENCODE and this course 0.01), joined across gaps up to a read length, at least d long. Summit = the base with the highest pileup.
Right: the fraction of peaks with a CTCF motif within 50 bp of the summit, by rank. Top 50 peaks: 90%; ranks 500–573: 43–60%; random DNA: 4%.
There is no clean break: weak peaks are a mixture of weak real sites and noise.
What the input does: CTCF without a control
Without input: 816 peaks instead of 521. The 299 extra peaks: 36% with a CTCF motif, 9% in ENCODE’s set.
No input means λ from the ChIP itself (λBG and its 10-kb window): no correction for open chromatin, copy number or input pile-ups.
Broad marks need a different caller
Real data: H3K36me3 with three callers
Same reads (2 replicates, 170 000 reads on chr21), same input. MACS3 narrow: 11 peaks on all of chr21 (2.8 kb). MACS3 –broad: 123 regions (48 kb). epic2: 671 domains, 3.8 Mb, up to 84 kb long.
Real data: do the domains cover the right genes?
epic2 domains cover 58% of the bases of active gene bodies, but only 6.7% of silent ones.
59% of all epic2 domain bases lie in active gene bodies (genes > 5 kb).
A biological check without a gold standard: H3K36me3 should follow transcription.