8 Signal tracks and the genome browser
A signal track shows the signal of a sample along the genome, and a genome browser shows these tracks together with peaks and genes. Numbers and tables can hide problems that are easy to see in a track. Looking at the signal along the genome is therefore one of the best checks of any analysis. This chapter explains signal tracks, what their units mean, how to read profiles and heatmaps, and how to use a genome browser.
- what a coverage track is, and how tracks are normalised for sequencing depth;
- what ratio tracks, profiles, heatmaps and sample correlations show;
- what to look for in a genome browser, and why each track’s scale matters;
- why tracks can check an analysis but cannot prove a difference between conditions.
8.1 The question
What does the signal look like, and can you compare it between samples? A track shows how many reads cover each position of the genome. However, the raw number depends on how deeply each library was sequenced. Tracks must therefore be normalised before you compare them, and the choice of normalisation changes what the comparison means.
8.2 How it works
Coverage tracks
A coverage track counts the reads that cover each small window of the genome, called a bin. For single-end reads, each read is first extended to the length of the original fragment, so that the signal covers the whole fragment and not only the read. The result is saved as a bigWig file (Kent et al. 2010).
Normalisation of tracks
Raw counts depend on sequencing depth: a library with twice as many reads as another has twice its signal. The deepTools package offers several ways to correct for this (Ramírez et al. 2016; deepTools developers 2024):
| Method | Formula (per bin) | Use |
|---|---|---|
| RPKM (reads per kilobase per million mapped reads) | reads ÷ (million mapped reads × bin length in kb) | Compare samples of different depth |
| CPM (counts per million) | reads ÷ million mapped reads | Same, without the bin length |
| BPM (bins per million) | reads ÷ (sum of all bin counts, in millions) | Like TPM (transcripts per million) in RNA-seq |
| RPGC (reads per genomic content) | reads ÷ the factor that gives 1× average coverage | Coverage relative to the genome |
All these methods assume that the total amount of signal is similar in all samples. When a treatment changes a mark everywhere, this assumption does not hold, and a spike-in is needed to scale the tracks (Chapter 10).
Ratio tracks
A ratio track divides the ChIP signal by the input signal in each bin, usually on a log2 scale. A value of 1 means twice as many reads as in the input, and a value of 0 means the same number of reads as in the input. Ratio tracks remove background that is also present in the input. However, in regions with very few input reads, the ratio can change sharply from one bin to the next.
Profiles and heatmaps
A profile (also called a metagene plot) shows the average signal around many regions at once, for example around all peak summits. A heatmap (or tornado plot) shows the same regions one row at a time. A profile shows the typical shape of the signal, whereas a heatmap shows how much the regions differ from each other.
Sample correlation
A sample correlation shows which samples are similar. To compute it, count the reads in large bins across the whole genome, and then compute the correlation between each pair of samples. Replicates should correlate well with each other. Samples should group by condition, not by batch.
Tracks. For each sample, EpiNexus makes a coverage track with deepTools bamCoverage: RPKM, in bins of 10 bp, with reads extended to 200 bp for single-end data. When a sample has an input, EpiNexus also makes a ratio track: log2(ChIP / input), scaled by the number of reads. For ATAC-seq, the tracks use the shifted reads (Chapter 5). When spike-in normalisation is used, the spike-in scale replaces RPKM.
Signal Profiles page. For each mark, EpiNexus takes the peak summits of the ChIP samples and merges summits that lie within 1 kb of each other. If there are more than 20,000, it uses a random but repeatable set of 20,000. It then computes the signal around them with deepTools computeMatrix:
- histone marks: ±5 kb around each summit, in bins of 100 bp;
- transcription factors and ATAC-seq: ±2 kb, in bins of 50 bp.
All samples of a mark use the same regions, the same row order and the same colour scale. You can therefore compare them directly. Inputs are shown next to their ChIP samples. The heatmap has 200 rows; each row is the average of a block of neighbouring regions in this order. The page has three tabs: Metagene (the profile), Tornado (the heatmaps) and Sample Correlation (Figure 8.1).
Correlation. EpiNexus summarises each sample’s signal track in 10 kb bins across the genome (deepTools multiBigwigSummary) and computes the Spearman correlation between samples.
8.3 The genome browser
A genome browser shows tracks, peaks and genes along the genome. You can zoom in on a gene and see whether the signal looks real. Two common browsers are the Integrative Genomics Viewer (IGV), which also runs inside web pages as igv.js (Robinson et al. 2023), and the UCSC Genome Browser (Kent et al. 2002).
What to look for:
- Peaks have a clear shape. A real peak stands out from its surroundings and is absent or weak in the input.
- Replicates agree. The same peaks appear in each replicate of a condition.
- Known genes behave as expected. Pick a gene that you know is active in your cells. Its promoter should carry H3K4me3 and H3K27ac, and should be open in ATAC-seq.
- Empty regions may be unmappable. Repeats lose their reads during filtering (Chapter 5). A gap in all samples, including the input, is often a repeat.
The Genome Browser page shows the run’s tracks in igv.js: coverage tracks, ratio tracks and peaks. Aligned reads (BAM files) are large and are therefore not shown by default, but you can add them. The page also offers:
- IGV session: a file that opens the same tracks in the IGV desktop application. Its links work for 24 hours.
- Open in UCSC: opens the tracks in the UCSC Genome Browser. Anyone who has these links can use them for 24 hours. Therefore, do not use this option for data that you may not share. BAM files are never sent to UCSC.
The genome browser shows our example near the gene Atp1a2 (Figure 8.2). Each H3K27ac library has a signal track, a ratio track and its peaks, and the gene track is at the bottom. Look at the numbers at the left of each signal track: 178 and 190 for the two knockout libraries, and 311 and 440 for the two controls. The browser scaled each track to its own maximum, and the peaks therefore look about equally high. This is the autoscale pitfall described below. To compare tracks by eye, use the gear button at the right of each track to give all tracks the same data range.
8.4 Reading the result: GSE155100
A profile shows the average H3K27ac signal around the peak summits of our example (Figure 8.3).
Three results stand out:
- The signal was centred on the summits. All four H3K27ac libraries rose sharply at the summit, from about 27–30 RPKM at the edges to 125–145 RPKM. The signal stayed above the input for several kilobases on each side.
- The inputs were flat. All four inputs stayed at about 9 RPKM. This indicates that the peaks are not caused by background that is also in the input.
- One library was higher than the others. Control replicate 2 rose higher than the other three libraries. It also had the highest fraction of reads in peaks (FRiP): 44.6 % (Table 6.2). This indicates a difference between libraries, not between conditions: the other control replicate reached the same height as the two knockout libraries.
Point 3 is important. RPKM corrects for depth, but not for how well each pull-down worked. If you compared conditions by eye on RPKM tracks, one strong library could make a whole condition look higher. A differential analysis handles this with normalisation and replicates (Chapter 9).
8.5 Pitfalls
Tracks are useful for checking data, but not for proving a difference. Differences in pull-down efficiency between libraries look like differences in signal. Use a differential analysis to test differences.
Genome browsers often scale each track to its own maximum. Two tracks can then look equally high even when one has much more signal than the other. Set the same scale for all tracks you compare.
RPKM assumes that the total signal is the same in all samples. If a treatment removes a mark everywhere, RPKM hides the loss. Use spike-in scaled tracks in that case (Chapter 10).
Key points
- A coverage track counts the reads in small bins along the genome, and tracks must be normalised for depth before you compare samples.
- RPKM and the other depth methods assume that the total signal is similar in all samples; after a global change, tracks need spike-in scaling.
- A ratio track divides the ChIP signal by the input signal, but it is unstable where the input has very few reads.
- A profile shows the typical shape of the signal around many regions, whereas a heatmap shows how much the regions differ.
- In a genome browser, check that peaks have a clear shape, that replicates agree and that known genes behave as expected; give all tracks the same scale before you compare them.
- In the GSE155100 example, one control library was higher than the other libraries, which shows why tracks can check data but cannot prove a difference between conditions.