7  Peak calling

A peak is a region with more reads than you would expect by chance. Peaks show where the antibody found its target, or where the chromatin is open. Peak calling turns millions of reads into a list of regions. This chapter explains how the three peak callers in EpiNexus work, how to choose between them, and how to check that the peaks are reproducible.

NoteIn this chapter you will learn
  • how a peak caller compares the reads in a region with a background, and what p-values and q-values mean;
  • how MACS3, SEACR and GoPeaks work, and which one suits each assay;
  • how to check that peaks are reproducible, with IDR or with overlap between replicates;
  • how to judge the number of peaks in a real dataset.

7.1 The question

Where in the genome is the signal real? Reads are never spread evenly over the genome. Some regions have more reads because of the target. Other regions have more reads because the DNA there is easier to break, to sequence or to align. A peak caller must tell these two kinds of region apart.

7.2 How it works

Every peak caller compares the reads in a region with a background: the number of reads you would expect there without real signal. The background can come from a control sample (input or IgG), from the rest of the genome, or from both. If a region has many more reads than its background, it is called as a peak.

Each peak gets a score. The p-value is the chance of seeing at least this many reads if the region had only background. The q-value corrects the p-value for the millions of regions that are tested. A q-value of 0.05 means that up to about 5 % of the peaks at this threshold are expected to be false positives.

7.3 The peak callers

MACS3: ChIP-seq and ATAC-seq

MACS is the most widely used peak caller for ChIP-seq (Zhang et al. 2008). EpiNexus uses its current version, MACS3. MACS does two things that suit ChIP-seq well.

It finds the centre of each site. With single-end reads, you see only one end of each fragment. Reads on the forward strand gather just before a binding site, and reads on the reverse strand gather just after it. MACS measures the distance between the two groups, called d. It then “shifts all the tags by d/2 toward the 3′ ends to the most likely protein-DNA interaction sites” (Zhang et al. 2008). With paired-end reads, both ends of each fragment are known. No shift is therefore needed.

It uses a local background. Some regions have more background reads than others. MACS measures the background in the control sample, in windows of 1, 5 and 10 kb around each candidate peak. It uses the highest of these values, or the genome average if that is higher (Zhang et al. 2008). This makes MACS more cautious in regions where the input also has many reads.

MACS has two modes:

  • Narrow mode finds sharp peaks. It suits transcription factors, sharp histone marks and ATAC-seq.
  • Broad mode joins nearby enriched regions into wide domains. It suits broad marks such as H3K27me3.

SEACR: CUT&RUN and CUT&Tag

CUT&RUN and CUT&Tag have very little background. With so little background, peak callers made for ChIP-seq can become too sensitive, because even a few reads look significant (Meers et al. 2019). SEACR was made for this kind of data (Meers et al. 2019).

SEACR splits the signal into blocks: stretches of the genome with continuous coverage. It adds up the signal in each block. It then compares the blocks in the target with the blocks in the IgG control, and chooses a threshold:

  • stringent mode uses “the threshold at which the maximum percentage of target versus IgG signal blocks are retained” (Meers et al. 2019);
  • relaxed mode uses a lower threshold, “halfway between the maximum and the ‘knee’” of the curve (Meers et al. 2019).

Without an IgG control, SEACR keeps a fixed top fraction of the blocks. For example, a threshold of 0.01 keeps the top 1 % of blocks by total signal.

GoPeaks: CUT&Tag for histone marks

GoPeaks was made for histone marks profiled with CUT&Tag (Yashar et al. 2022). It splits the genome into small bins, and uses a binomial test to find bins with more reads than the genome average. It then joins significant bins that lie close together into peaks, and drops peaks narrower than 150 bp. The paper describes joining bins within 150 bp (Yashar et al. 2022), whereas GoPeaks 1.0.0, the version that EpiNexus runs, joins bins within 1,000 bp by default. For broad marks, the --broad option uses bins of 5,000 bp, moved 1,000 bp at a time. GoPeaks needs paired-end reads.

7.4 Choosing a peak caller

The table below lists the default peak caller in EpiNexus for each assay, and the alternatives.

Table 7.1: Peak callers in EpiNexus 1.4.
Assay Default in EpiNexus Alternatives Notes
ChIP-seq MACS3 — Narrow or broad mode chosen from the mark
ATAC-seq MACS3 — Narrow mode, with each summit reported (a peak can have several)
CUT&RUN SEACR (stringent) MACS3, GoPeaks GoPeaks needs paired-end reads
CUT&Tag SEACR (stringent) MACS3, GoPeaks GoPeaks needs paired-end reads
NoteIn EpiNexus 1.4

Choose the peak caller in the run wizard, on the Parameters step (Peak Caller, Figure 7.1). The other settings are:

  • MACS3. The q-value is 0.05 for ChIP-seq and ATAC-seq and 0.01 for CUT&Tag and CUT&RUN by default (Q-value Threshold). Broad marks use broad mode. ATAC-seq uses --call-summits, which reports each summit inside a peak. EpiNexus gives MACS3 an effective genome size that matches the read length of each sample. If MACS3 cannot build its shift model because there are too few strong peaks, EpiNexus runs it again without the model and with a fixed fragment size of 200 bp.
  • SEACR. Stringent mode. With an IgG control, SEACR compares the target with the IgG. Without IgG, it keeps the top 1 % of signal blocks.
  • GoPeaks. Default settings, and --broad for broad marks.
  • Min Peak Length. This field is empty by default. Each peak caller then uses its own minimum. For MACS3, that is the fragment size (MACS3 developers 2026). If you enter a length, MACS3 and GoPeaks do not report shorter peaks. SEACR has no such setting. (This applies to EpiNexus 1.2.2 and later. Before that version, the field was saved but not used.)

After peak calling, EpiNexus removes peaks on unplaced or extra sequences, and peaks that overlap the blacklist. EpiNexus never calls peaks on the controls (input and IgG); it uses them only as background.

The Analysis Parameters step for a CUT&Tag run comparing BIBR1532 (2 uM) with untreated. The Peak Caller list shows three choices: SEACR (CUT&Tag/CUT&RUN), selected; MACS2/3 (ChIP-seq/ATAC-seq); and GoPeaks (CUT&Tag/CUT&RUN, paired-end only). Normalization is RLE (DESeq2 default).
Figure 7.1: The Peak Caller list on the Parameters step of the run wizard, for a CUT&Tag run. SEACR is the default; MACS2/3 and GoPeaks can be chosen instead. EpiNexus 1.2 interface.
TipBest practice

Report the threshold at which your peaks were called. MACS3’s own default q-value is 0.05 (MACS3 developers 2026). The nf-core/cutandrun pipeline uses 0.01 when it calls CUT&Tag and CUT&RUN peaks with MACS (nf-core community 2024). EpiNexus uses the same values: 0.05 for ChIP-seq and ATAC-seq, and 0.01 for CUT&Tag and CUT&RUN when you choose MACS3. Since EpiNexus 1.2.2, runs started without the wizard use the same defaults.

7.5 Are the peaks reproducible?

A peak is reproducible when the replicates agree on it. A peak found in only one replicate may be noise, whereas a peak found in all replicates is more likely to be real. There are two common ways to measure this.

IDR (irreproducible discovery rate) compares two replicates (Li et al. 2011). It ranks the peaks of each replicate by strength. It then checks whether the strong peaks in one replicate are also strong in the other. Each peak gets an IDR value: the chance that it is not reproducible. ENCODE keeps peaks with an IDR below 0.05 (ENCODE Data Coordination Center 2024). IDR needs many weak peaks to model the noise. The peaks are therefore first called with a loose threshold (p-value 0.01).

Overlap keeps the regions where peaks from at least two replicates overlap. It is simpler than IDR, and it works for any number of replicates. It is the usual choice for histone marks.

NoteIn EpiNexus 1.4

EpiNexus checks reproducibility for each group of replicates (same mark and condition):

  • IDR for transcription factors and ATAC-seq with exactly two replicates, called with MACS3. EpiNexus calls the peaks again at a p-value of 0.01, keeps the top 300,000, and then keeps the peaks with an IDR below 0.05.
  • Overlap (at least two replicates) for histone marks, CUT&RUN, CUT&Tag and groups with more than two replicates.

By default, the differential analysis uses each sample’s own peaks. To use the reproducible peaks instead, choose Replicate-reproducible peaks (IDR / overlap) under Consensus peaks for differential. Check the size of the IDR set first: Chapter 18 shows an ATAC-seq dataset in which the IDR set was much smaller than ENCODE expects.

7.6 Reading the result: GSE155100

In our ChIP-seq example, MACS3 found 54,372 to 66,954 peaks per H3K27ac library, with 36–45 % of the reads inside peaks (Table 6.2). Because H3K27ac is a narrow mark, MACS3 used narrow mode. MACS3 compared each H3K27ac sample with its own input.

Are these numbers reasonable? There is no correct number of peaks, because the number depends on the target, the tissue, the depth and the threshold. However, you can compare your numbers with other studies of the same mark. For this dataset, ChIP-Atlas, a public database that reprocesses published data (Zou et al. 2024), called 21,000 to 27,000 peaks per sample with a much stricter threshold than EpiNexus (q below 10−5). EpiNexus found 96–97 % of those peaks. The extra peaks most likely come from the looser threshold of 0.05.

7.7 Pitfalls

WarningPitfall: comparing peak numbers between tools

Different peak callers and thresholds can give very different numbers of peaks for the same data. Compare peak numbers only between samples analysed with the same caller and settings.

WarningPitfall: calling ChIP-seq peaks without an input

Without an input, open chromatin and regions with extra copies of DNA can look like peaks. If you have no input, treat the peaks with caution, and say so in your report.

WarningPitfall: using peak counts to compare conditions

A higher number of peaks in one condition does not mean more binding, because peak counts depend on depth and on thresholds. To compare conditions, use a differential analysis (Chapter 9).

Key points

  • A peak is a region with more reads than its background, which can come from a control sample, from the rest of the genome, or from both.
  • MACS3 is the default for ChIP-seq and ATAC-seq: it finds the centre of each site and uses a local background from the control.
  • SEACR and GoPeaks were made for the low background of CUT&RUN and CUT&Tag, and GoPeaks needs paired-end reads.
  • Report the threshold at which your peaks were called: EpiNexus uses a q-value of 0.05 for ChIP-seq and ATAC-seq, and 0.01 for CUT&Tag and CUT&RUN with MACS3.
  • EpiNexus checks reproducibility with IDR for transcription factors and ATAC-seq with two replicates, and with overlap for histone marks and larger groups.
  • There is no correct number of peaks, and peak counts cannot show a difference between conditions; a differential analysis can.

7.8 Further reading

  • Zhang et al. (2008): MACS, its shift model and local background.
  • Meers et al. (2019): SEACR, made for the low background of CUT&RUN.
  • Yashar et al. (2022): GoPeaks, for histone CUT&Tag.
  • Li et al. (2011): IDR, the reproducibility measure used by ENCODE.