18 Case study: ATAC-seq
This chapter follows one ATAC-seq experiment through EpiNexus, from public files to biology. At each step it shows the result and how to read it: quality control (QC), peaks, differential accessibility, motifs and Gene Ontology (GO).
- how to judge ATAC-seq QC when some metrics are good and others are poor;
- how to check an irreproducible discovery rate (IDR) peak set against ENCODE’s numbers;
- how the normalisation method can affect the result when most changes go in one direction;
- how the motifs in the lost regions point to the factor that was removed;
- why GO terms from gene families need a check of the genes behind them.
18.1 The question
SOX2 is a transcription factor that keeps mouse embryonic stem cells in their stem-cell state. It is a pioneer factor: it can bind DNA that is wrapped around nucleosomes, and help to open it (Maresca et al. 2023). If SOX2 keeps some sites open, those sites should close soon after SOX2 is removed. ATAC-seq measures where chromatin is open (Chapter 1), and it can therefore test this idea.
We ask: which sites change their accessibility 2 hours after SOX2 is removed, and which transcription factors bind there?
18.2 The dataset
The data come from a study by Maresca and colleagues (GEO GSE209527) (Maresca et al. 2023). Their cells carry a SOX2 protein with a small tag (FKBPF36V). A molecule called dTAG-13 binds the tag and makes the cell destroy the tagged protein within about an hour. We used four of their libraries (Table 18.1).
| Sample | GEO | Condition | Read pairs |
|---|---|---|---|
| Timeseries_ATACseq_SOX2-FKBP_NT_Rep1 | GSM6373853 | untreated | 27.0 million |
| Timeseries_ATACseq_SOX2-FKBP_NT_Rep2 | GSM6373854 | untreated | 18.6 million |
| Timeseries_ATACseq_SOX2-FKBP_2H_Rep1 | GSM6373859 | 2 h without SOX2 | 26.7 million |
| Timeseries_ATACseq_SOX2-FKBP_2H_Rep2 | GSM6373860 | 2 h without SOX2 | 31.3 million |
Each library was sequenced paired-end, 2 × 38 bp, in two runs. Together the files are about 4.9 GB. The study used the mouse genome mm10, and we therefore used mm10 too.
This design is simple: two conditions, with two replicates each. In addition, it has a built-in check, because we know which factor was removed. If the analysis works, the sites that close should carry the SOX2 motif.
- Create a project with the genome Mouse (mm10).
- On Upload Data, choose From a public repository and enter the four GSM numbers (Chapter 4). EpiNexus imports each sample’s two runs as one pair of FASTQ files.
- In the import table, rename the condition NT to untreated. EpiNexus treats labels such as untreated, control or WT as the reference, so fold changes read “2 h / untreated”.
- Start a run: ATAC-seq, Full Pipeline, genome mm10, and the default settings. These are MACS3 with q 0.05, IDR for the two replicates, and Library size (reads in peaks) normalisation. Regions count as differential at a false discovery rate (FDR) < 0.1 and |log2 fold change| > 0.5.
The run used in this chapter is 1e7862c4, made with EpiNexus 1.2.1.
18.3 Quality control
| Sample | Reads | Mapped | Duplicates | FRiP | TSS | Mito. | NRF | PBC1 |
|---|---|---|---|---|---|---|---|---|
| untreated, rep 1 | 53.8 M | 93.6 % | 27.0 % | 45.1 % | 9.5 | 1.5 % | 0.58 | 0.65 |
| untreated, rep 2 | 37.1 M | 94.3 % | 32.4 % | 39.1 % | 9.5 | 1.7 % | 0.56 | 0.62 |
| 2 h, rep 1 | 53.1 M | 94.2 % | 33.6 % | 43.3 % | 9.7 | 2.0 % | 0.52 | 0.59 |
| 2 h, rep 2 | 62.3 M | 93.4 % | 26.2 % | 36.4 % | 8.2 | 0.8 % | 0.62 | 0.66 |
Some metrics were very good (Table 18.2):
- FRiP (fraction of reads in peaks) was 36–45 %. ENCODE asks for more than 30 % (ENCODE Project Consortium 2026).
- Mitochondrial reads were 0.8–2 %, far below the 15 % limit for the Omni-ATAC protocol (Chapter 6).
- The fragment sizes showed the expected pattern (Figure 18.1). The median fragment was 186–203 bp.
Other metrics were poor:
- Duplicates were 26–34 %. More than 25 % “may suggest that the transposition was inefficient” (Grandi et al. 2022).
- NRF and PBC1 (non-redundant fraction and PCR bottlenecking coefficient 1), two measures of library complexity (Chapter 6), were 0.52–0.66. ENCODE prefers values above 0.9 (ENCODE Project Consortium 2026).
- TSS enrichment was 8.2–9.7. For mm10, ENCODE calls values below 10 “concerning” (ENCODE Project Consortium 2026). EpiNexus measures it with a different list of start sites than ENCODE does. The two scores are therefore not directly comparable (Chapter 6).
This run was graded with the rules of EpiNexus 1.2.1: all four samples failed QC, on duplicates, NRF and PBC1. EpiNexus kept them, and its report calls the downstream results “exploratory”.
Version 1.2.7 grades these numbers differently (Chapter 6). Duplicates above 25 % give a warning. NRF and PBC1 below 0.7, and a “concerning” TSS score, are graded Below minimum, also a warning. An ATAC-seq library fails only with fewer than 15 million usable fragments, ENCODE’s error level. Table 18.2 shows reads, not usable fragments, so it cannot tell which libraries a new run would fail. The next edition shows this dataset run again with the current version.
Are the results unusable, then? Look at the other signs. The replicates agreed: in the sample principal component analysis (PCA), the first component held 92.5 % of the variation and separated the untreated samples from the 2 h samples (Figure 18.2). The enrichment was strong. In addition, as the motif analysis below shows, the expected factor came out on top. Low complexity means that the libraries hold fewer distinct DNA molecules than an ideal library. Deeper sequencing of these libraries would therefore mostly read the same molecules again. Low complexity costs depth, not correctness.
A metric below its line is a question, not a verdict. Ask what the metric measures, and look at the other signs: enrichment (FRiP, TSS), replicate agreement (PCA) and a result you can predict. Here, the libraries had low complexity, but also strong enrichment, clear replicates and the expected motif.
18.4 Peaks
MACS3 found 83,954 to 112,309 peaks per sample. Two checks help to judge them.
Agreement with independent processing. ChIP-Atlas, a public database, processed the same four libraries with its own pipeline and a stricter threshold (q below 10−5) (Zou et al. 2024). It called 39,083 to 57,489 peaks per sample. EpiNexus found 89–91 % of these peaks. The extra peaks in EpiNexus most likely come from its looser threshold of 0.05.
Agreement between replicates. IDR keeps the peaks that rank high in both replicates (Chapter 7). ENCODE’s ATAC-seq standard says that “the number of peaks within an IDR peak file should be >70,000, though values >50,000 may be acceptable” (ENCODE Project Consortium 2026). EpiNexus’s IDR sets held 32,934 peaks (untreated) and 34,098 (2 h). These numbers are far below ENCODE’s line, although the replicates agreed well:
- 71,620 of the first untreated replicate’s peaks were also peaks in the second replicate. In the 2 h samples, the number was 78,413.
- Of the strongest tenth of the first replicate’s peaks, almost all (98.5 % untreated, 99.6 % at 2 h) were also found in the second replicate. However, 17–18 % of these strong, shared peaks were missing from the IDR set.
Strong peaks found in both replicates should pass IDR. For this dataset, the IDR set of this run therefore missed many real sites.
The differential analysis does not use the IDR set by default. It builds its regions from each sample’s own peaks. For ATAC-seq data, keep that default: do not choose Replicate-reproducible peaks (IDR / overlap) under Consensus peaks for differential. Check the size of the IDR set against ENCODE’s numbers before you use it as your list of open sites.
18.5 Differential accessibility
EpiNexus made one set of regions from the four samples: windows of 501 bp around peak summits, found in at least two samples (Grandi et al. 2022). This gave 113,578 regions. It counted the reads in each region and tested the difference with DESeq2 (Love et al. 2014) (Chapter 9).
The result was clear: 6,561 regions lost accessibility and 834 gained it (Figure 18.3). Losses outnumbered gains about eight to one. The lost regions also changed more than the gained regions: 92 % of them lost more than half of their reads (log2 fold change below −1), and the strongest lost almost all of them. The gains were small: 98 % lay between log2 0.5 and 2.
This result is what we expect from a pioneer factor. Without SOX2, the sites that it held open close. Few sites open, and the ones that do open change little.
When most changes go one way: normalisation
Before comparing samples, a differential test divides each sample’s counts by a size factor, a number for how deeply that sample was sequenced. There are several ways to compute it:
- Library size (reads in peaks), EpiNexus’s default for ATAC-seq: the number of reads in all tested regions.
- Median-of-ratios (relative log expression, RLE), DESeq2’s default: for each region, the ratio of the sample’s count to a typical sample’s count, then the median of these ratios (Love et al. 2014).
The two methods agree when most regions do not change. However, they differ when many regions change in one direction, as here. Two hours after SOX2 removal, thousands of sites had closed. The 2-hour samples therefore had fewer reads in peaks. Scaling by reads in peaks lifts all their counts a little, to make the totals equal. This scaling pushes every fold change slightly up, and weak gains near the threshold can then become significant. The median-of-ratios method, by contrast, looks at the typical region. A minority of changed regions does not move a median.
In an experiment like this one, therefore, treat the small set of gained regions with care. Some of them may come from the normalisation, not from the biology.
Reske and colleagues compared eight ways to analyse differential ATAC-seq data. The normalisation method changed the number of differential regions and even the overall direction of change (Reske et al. 2020). Scaling by reads in peaks “should eliminate global differences in favor of reducing any technical biases”. They recommend that “researchers should systematically compare multiple normalization methods before continuing with differential accessibility analysis”. An MA plot (Chapter 9) shows quickly whether one method shifts all regions up or down.
The normalisation is chosen on the Parameters step of the run wizard (Normalization). For ATAC-seq the default is Library size (reads in peaks). RLE (DESeq2 default) is the median-of-ratios method. If you expect many sites to change in one direction, use Run again with the other method, and compare the gained and lost regions of the two runs. The Differential page and the report state which normalisation a run used.
Figure 18.4 shows where the Differential page states it.
18.6 Motifs: which factors explain the changes?
EpiNexus looked for known motifs in the lost and gained regions. It compared them with regions of the same GC content that did not change (Chapter 12). The test was Simple Enrichment Analysis (SEA) from the MEME Suite (Bailey and Grant 2021; Bailey et al. 2015), with the motifs of JASPAR 2024 (Rauluseviciute et al. 2024).
| Regions | Significant motifs | Top motifs |
|---|---|---|
| Lost (6,561) | 329 | 13 SOX and POU motifs share the top place, with q-values too small to compute. Among them are Pou5f1::Sox2 and POU2F1::SOX2. Pou5f1::Sox2 is in 42 % of lost regions and 11 % of unchanged ones. All of the top 20 motifs belong to the SOX or POU families. |
| Gained (834) | 200 | 17 of the top 20 motifs are nuclear receptors (for example NR1H3, NR2F1 and ESRRB). No SOX motif is enriched. |
The lost regions carried the SOX2 motif (Table 18.3). The strongest motifs included the joint motif of SOX2 and OCT4 (Pou5f1::Sox2). OCT4 is a factor that binds DNA together with SOX2. This is the built-in check we hoped for: the factor we removed explains the sites that closed. A second method in EpiNexus, monaLisa (Machlab et al. 2022), ranks all regions by their fold change. It found the Pou5f1::Sox2 motif most enriched among the regions that lost the most accessibility.
The gained regions carried nuclear-receptor motifs. This is a lead, not a finding, because the gained set is small, its changes are weak, and part of it may come from the normalisation (see above). A next step would be to check whether these regions still gain accessibility with the other normalisation, and whether nearby genes change their expression.
18.7 Gene Ontology: a pitfall with gene families
EpiNexus also tested the lost regions for GO terms (Chapter 11), and found 89 significant terms. The top terms were “arachidonate epoxygenase activity” and “odorant binding”. These terms have no obvious link to stem-cell biology.
The genes behind these terms explain them. The first term came from 25 Cyp genes, such as Cyp2c37 to Cyp2c40. The second came from Mup and Vmn1r genes. These are gene families whose members lie side by side in the genome. GO enrichment of regions assigns each region to the genes around it. A few regions in one gene-rich area can therefore make a term that is shared by the whole family appear enriched.
The GO table gives two tests for each term: one counts regions, and the other counts genes. For lost regions, EpiNexus calls a term significant on the region test. Only 6 of the 89 terms also passed the gene test. “Odorant binding” did not: its gene-test FDR was 1.0.
When a top GO term comes from one gene family, check the genes behind it, and check the gene-level test. A term carried by regions near one cluster of related genes says little about the biology of your experiment.
Key points
- The biology came out clearly. Removing SOX2 closed thousands of sites within 2 hours, and the closed sites carried the SOX2 motif.
- QC lines are guides. In this run all four libraries failed EpiNexus’s complexity checks (since version 1.2.7 these give warnings), yet the replicates agreed and the expected factor came out on top.
- Normalisation matters when changes go one way. Treat a small set of changes in the other direction with care, and compare normalisation methods.
- Check the IDR set before you use it. In this run it was much smaller than ENCODE expects for this dataset.
- Read GO terms through their genes. Gene families can produce enriched terms that say little about the experiment.
18.8 Further reading
- Maresca et al. (2023): the study that produced these data, with a full time course and degron lines for OCT4 and NANOG.
- Reske et al. (2020): how normalisation changes differential ATAC-seq results.
- Grandi et al. (2022): the Omni-ATAC protocol and its quality checks.
- ENCODE Project Consortium (2026): ENCODE’s ATAC-seq standards.