ATAC-seq finds the stretches of DNA open enough for proteins to bind, and Hi-C shows which distant pieces of the genome touch. Together they show where regulation can happen and which genes it can reach.
DNA methylation data: bisulfite sequencing and arrays measured a chemical mark on the DNA. This lesson measures something physical: how open the DNA is, and how it folds in the nucleus. Together with the binding sites from ChIP-seq, these are the main layers of gene regulation you can read with a sequencer.
What ATAC-seq measures
In the nucleus, most DNA is wound around nucleosomes, spools of histone proteins that each hold about 147 bases. Wound DNA is hard for other proteins to reach. Regions where a gene is being switched on, such as active promoters and enhancers (stretches of DNA that boost a gene's activity, sometimes from far away), are usually cleared of nucleosomes so that transcription factors can bind. These stretches are called open chromatin or accessible chromatin.
ATAC-seq (Assay for Transposase-Accessible Chromatin with sequencing) finds them with an enzyme called Tn5 transposase. Tn5 cuts DNA and, in the same step, attaches sequencing adapters to the cut ends. It can only reach DNA that is not packed away, so it cuts mostly in open regions and in the short linkers between nucleosomes. Each fragment between two cuts becomes a read pair. Where reads pile up, the chromatin was open.
The method is quick and needs few cells, often tens of thousands rather than the millions a ChIP-seq experiment needs, and it needs no antibody. That is why it has become the standard first look at regulation in a new cell type. It does not tell you which protein is bound at an open site; it tells you where something could bind.
The fragment-size ladder
Because Tn5 cuts between nucleosomes, the lengths of the fragments are not random. Fragments shorter than about 100 bases come from nucleosome-free DNA, typically at active promoters. Fragments of roughly 180–250 bases span one nucleosome, those near 400 span two, and so on. Plotted as a histogram, a good library shows a large peak of short fragments followed by smaller, regularly spaced humps: a nucleosome ladder. Look closely at the short fragments and you can even see a ripple of about 10 bases, the length of one turn of the DNA helix, because Tn5 cuts more easily on one face of the helix.
From reads to peaks
The processing follows the skeleton set out in Beyond RNA-seq: other assays and pipelines: quality control and trimming, then a DNA aligner, then clean-up, then peak calling. ATAC-specific choices come at each step. Tn5 leaves its own adapter sequence, the Nextera adapter, so trimming must look for that. Reads are aligned with a DNA aligner such as Bowtie2, allowing the two reads of a pair to lie up to about 2,000 bases apart so that multi-nucleosome fragments are not thrown away.
conda create -n atac -c conda-forge -c bioconda bowtie2 samtools macs3
conda activate atac
bowtie2 -p 4 --very-sensitive -X 2000 -x index/genome \
-1 trimmed/atac_R1.fastq.gz -2 trimmed/atac_R2.fastq.gz 2> aligned/atac.log \
| samtools sort -o aligned/atac.bam
samtools index aligned/atac.bam
samtools idxstats aligned/atac.bam | sort -k3,3nr | head -n 5
samtools view -h -f 2 -q 30 aligned/atac.bam | awk '$3 != "chrM"' \
| samtools view -b -o aligned/atac.filt.bam -
macs3 callpeak -t aligned/atac.filt.bam -f BAMPE -g hs -n atac --outdir peaks/ -q 0.01What this does
bowtie2 … -X 2000aligns the pairs, allowing fragments of up to 2,000 bases. The rest of the line is the same align-and-sort pattern as in Aligning reads to a genome; here the genome index is a human Bowtie2 index.samtools idxstatslists how many reads landed on each chromosome; sorting on the third column puts the busiest first. In ATAC-seq, the mitochondrial chromosome is often near the top.- The
samtools view … | awk … | samtools viewline keeps only properly paired reads (-f 2) with mapping quality of at least 30 (-q 30), drops every alignment on chrM, and writes a new BAM file. Header lines pass through theawkfilter untouched, because their third field is never chrM. macs3 callpeakfinds regions with more fragments than expected.-f BAMPEtells MACS to use the real fragment of each pair rather than guess fragment length;-g hsgives the size of the human genome;-q 0.01sets the false discovery rate cut-off.
Duplicate removal belongs before peak calling too, for the reason explained in Beyond RNA-seq: PCR copies of one fragment are not independent evidence. Tools such as Picard MarkDuplicates do it on the filtered BAM file.
Quality checks specific to ATAC-seq
- Mitochondrial reads. Mitochondrial DNA has no nucleosomes, so Tn5 cuts it freely. In some libraries it takes half of the reads or more. Those reads say nothing about the nucleus and are removed, but a very high share means that much of the sequencing was wasted. Improved protocols, such as Omni-ATAC, reduce it.
- The fragment ladder. Plot the fragment lengths (column 9 of the BAM file, which you met in Aligning reads to a genome). A missing ladder suggests over-digestion or degraded nuclei.
- TSS enrichment. Active promoters are open in almost every cell type, so reads should be strongly enriched at transcription start sites (TSSs) compared with the DNA a few kilobases either side. The ratio is the TSS enrichment score; low values mean the signal is close to background. The ENCODE ATAC-seq standards give recommended values for each genome annotation.
- Fraction of reads in peaks (FRiP). The share of fragments that fall inside the called peaks; a low value again means much of the library is background.
The Tn5 shift
Tn5 binds as a pair and inserts its two adapters 9 bases apart, so the true centre of each cut sits a few bases inside the read ends. Many pipelines therefore move reads on the plus strand 4 bases forward and reads on the minus strand 5 bases back. For peak calling this hardly matters; for footprinting, described below, single-base accuracy does, so check whether your pipeline applies the shift.
Worked example · what mitochondrial reads cost
of the remaining 30 million, 20% duplicates → 6 million removed
useful pairs: 30 − 6 = 24 million, under half of what was paid for
Step by step. 50,000,000 × 0.40 = 20,000,000 pairs fall on the mitochondrial chromosome, leaving 30,000,000. Duplicates at 20% of those are 30,000,000 × 0.20 = 6,000,000, leaving 24,000,000 useful pairs, which is 24 ÷ 50 = 48% of the run.
What the answer means. These shares are invented for the example, but the point holds for real libraries: the number of reads that reach the peak caller can be far below the number sequenced. Plan depth from the useful fragments, and compare samples on that number rather than on raw read counts.
What peaks tell you
A typical sample gives tens of thousands of peaks. Some are promoters, shared by many cell types; many others are enhancers specific to the cell type, which is what makes ATAC-seq so informative. Common next steps are:
- Differential accessibility. Count fragments in a shared set of peaks for every sample, just as you counted reads per gene, and test which regions open or close between conditions, using the same count-based statistics.
- Motif enrichment. Search the sequences of the changing peaks for transcription factor motifs, as in Protein–DNA binding with ChIP-seq: peaks and motifs, to suggest which factors drive the change.
- Footprinting. A protein sitting tightly on DNA protects a few bases from Tn5, leaving a small dip in the cut density in the middle of a peak. With deep data these footprints can point to the bound factor directly. Footprints are weak for factors that bind only briefly, so treat them as supporting evidence.
- Linking to genes. A peak near a gene's start is easy to assign; an enhancer may act on a gene far away, which is where the 3D genome, below, comes in.
Single-cell ATAC-seq applies the same chemistry to thousands of individual nuclei, each tagged with a barcode, as in Single-cell data: from counts to cell types. Each cell yields only a few thousand fragments, so the data are very sparse: for most peaks, most cells have zero reads. Cells are therefore grouped first, and accessibility is summarised per group. Kits that measure RNA and ATAC from the same nucleus let you link an open enhancer to the genes expressed in that very cell type.
The 3D genome
A human nucleus is a few micrometres across, yet holds about two metres of DNA. The folding is not random, and it decides which enhancers can reach which genes. The main method for measuring it is Hi-C. Cells are fixed so that DNA segments that touch are held together, the DNA is cut, the touching ends are joined, and the joined pieces are sequenced as read pairs. Each pair says that two places in the genome, possibly far apart or on different chromosomes, were close in space in some cell.
The result is a contact matrix: the genome is split into equal bins, perhaps 100,000 bases or 10,000 bases each, and each cell of the matrix counts the read pairs linking two bins. Smaller bins show finer detail but need far more reads, which is why Hi-C experiments are among the deepest in genomics. The matrix is balanced before use, a normalisation that corrects for bins that are simply easier to cut or map.
import cooler
import numpy as np
import matplotlib.pyplot as plt
clr = cooler.Cooler("hic.mcool::resolutions/100000")
mat = clr.matrix(balance=True).fetch("chr2:0-40000000")
plt.imshow(np.log10(mat), cmap="Reds")
plt.title("chr2, first 40 Mb, 100 kb bins")
plt.colorbar(label="log10 balanced contacts")
plt.show()What this does
- cooler is a Python package and file format for Hi-C matrices. An .mcool file stores the same matrix at several bin sizes; the part after :: picks the 100 kb version. The 4DN Data Portal and ENCODE offer processed Hi-C files in this format.
clr.matrix(balance=True).fetch(…)pulls out the balanced matrix for one region as a NumPy array, region by region, so the whole genome never has to fit in memory.- Contacts span several orders of magnitude, so the plot uses log10. Empty bins become missing values and show as blank.
The picture you see has a bright diagonal, because DNA close along the chromosome is almost always close in space. Moving away from the diagonal, contacts fade, and on top of that fade three kinds of structure appear.
Compartments, TADs and loops
- A/B compartments. At large scale, the matrix shows a checkerboard. The genome falls into two sets of regions that touch their own kind more than the other: A regions, gene-rich and active, and B regions, gene-poor and quiet, often near the edge of the nucleus. They are found from the main pattern of correlation in the matrix, a principal component of the kind you will meet in Module 7.
- TADs. At a finer scale, often hundreds of kilobases to a megabase, the diagonal breaks into squares: topologically associating domains, regions whose DNA contacts itself much more than its neighbours. Enhancers mostly act on genes within the same TAD. Their borders are often bound by the protein CTCF.
- Loops. Bright dots away from the diagonal mark two specific places held together. Many loops join two CTCF sites whose motifs point towards each other, consistent with a model in which a ring-shaped protein complex, cohesin, extrudes a growing loop of DNA until it meets CTCF. Some loops bring an enhancer to its target promoter.
These layers connect back to the rest of this module. When a variant from Calling germline variants: from BAM to VCF falls in an open enhancer, the 3D contacts suggest which gene it might affect. When a cancer genome rearrangement, as in Cancer genomes: somatic mutations, signatures and copy number, deletes a TAD border, an enhancer can reach a gene it never touched before and switch it on. Hi-C reads can even help to finish genomes: contacts fall off with distance, so they show which contigs sit near each other, the scaffolding idea from Finishing and sharing a genome.
Go deeper: Micro-C, single-cell Hi-C and targeted methods
Hi-C cuts DNA with a restriction enzyme, so its resolution is limited by how often the enzyme's site appears. Micro-C uses an enzyme that cuts between nucleosomes instead, giving near-nucleosome resolution and sharper loops. Single-cell Hi-C shows that each cell folds its chromosomes somewhat differently: TADs are clearest as an average over many cells, while in one cell a domain is often a range of shapes.
Because genome-wide Hi-C needs enormous depth for fine detail, targeted methods enrich the reads first. Capture Hi-C keeps only pairs that involve chosen regions, such as promoters, and HiChIP or PLAC-seq keep pairs bound by a chosen protein. Each trades the whole-genome view for depth where it matters.
ATAC-seq was introduced by Buenrostro et al. (2013, Nature Methods), and the improved Omni-ATAC protocol, which lowers mitochondrial reads, by Corces et al. (2017, Nature Methods). The MACS peak caller is Zhang et al. (2008, Genome Biology). Hi-C and the A/B compartments come from Lieberman-Aiden et al. (2009, Science), TADs were described by Dixon et al. (2012, Nature), and the high-resolution loop map with convergent CTCF sites by Rao et al. (2014, Cell). For ATAC-seq, report the aligner, filters, whether the Tn5 shift was applied, the peak caller and its settings, and the TSS enrichment and FRiP of each sample.
Common mistakes
- Comparing peak counts between samples sequenced to very different useful depths; deeper samples find more peaks.
- Calling peaks on each sample separately and then comparing the lists, instead of counting all samples in one shared set of peaks.
- Forgetting to remove mitochondrial reads and duplicates before peak calling.
- Assigning every enhancer to its nearest gene; the target may be further away, and 3D data or experiments are needed to show it.
- Reading a TAD or loop from a low-depth Hi-C matrix at a bin size it cannot support.
Key point
ATAC-seq shows where the genome is open; Hi-C shows which distant pieces touch. Read the quality signs special to each, such as mitochondrial reads, the fragment ladder and TSS enrichment for ATAC-seq, and depth for Hi-C, before you trust a peak or a domain.
This is the last lesson of Module 5. In the project Coverage and contiguity that closes it, you return to assembling a genome and finish by calling variants against the reference and overlapping intervals with its genes, the same steps used for real variants and peaks.
Further reading · Module 5The ENCODE ATAC-seq pipeline and standards: the processing steps and the quality thresholds used for ENCODE data. · The 4DN Data Portal: public Hi-C and Micro-C data, with processed matrices to explore. · All reading for this course
Check your understanding
1. Why are most ATAC-seq fragments from open chromatin or nucleosome linkers?
2. Why are reads on chrM removed in ATAC-seq?
3. In a Hi-C contact matrix, what is a TAD?