Workflows

Normalising RNA-seq counts: library size and composition

Why raw counts mislead, how CPM, TMM and median-of-ratios differ, when TPM is appropriate and how to check a normalisation.

Normalising RNA-seq counts adjusts for differences in sequencing depth and sample composition so that samples can be compared. The right method depends on what you want to compare and what you assume about the data.

Why raw counts cannot be compared directly

A sample sequenced more deeply has more reads for every expressed gene. A sample with a large fraction of reads from a few highly expressed genes has fewer reads for everything else. Raw counts therefore reflect both biology and technical composition.

Normalisation tries to remove the technical part while preserving the biological part. No method can separate the two perfectly, because the data do not identify which changes are technical and which are biological.

Library size normalisation

The simplest method divides each count by the total number of reads in the sample, then multiplies by a constant such as one million. This gives counts per million (CPM).

CPM corrects for depth but not for composition. If one gene increases enormously, it can consume a large share of the library, and CPM for the other genes will fall even if their absolute expression is unchanged. This is the composition problem.

Median-of-ratios and TMM

Methods such as the median-of-ratios used by DESeq2 and the trimmed mean of M-values (TMM) used by edgeR estimate a scaling factor from the bulk of genes. The idea is that most genes are not differentially expressed, so their counts can be used to estimate the technical scaling.

These methods are more robust to a few highly expressed genes than total-count normalisation. They still assume that the majority of genes are not changing, which can fail in a very targeted experiment or in a sample with a strong global shift.

Gene length and effective length

Comparing expression of different genes within a sample requires accounting for gene length. A longer gene produces more reads per transcript molecule. RPKM and FPKM divide by gene length and by depth. TPM divides by length first, then by the sum, so that the values sum to a constant.

TPM and FPKM are useful for describing the composition of a sample and for some visualisations. They are not ideal for differential expression, because the length correction introduces a dependence between genes and the variance is not well modelled. For differential expression, use counts with a count-based model.

Effective length and transcript quantification

Transcript-level quantification tools estimate effective length, which accounts for the number of positions from which a fragment could be generated. Two isoforms of different lengths can produce similar read counts even if their molar abundance differs.

If the question is about isoforms, transcript-level estimates and a method that propagates uncertainty are needed. Gene-level aggregation can hide isoform switches.

When to use which scale

  • Differential expression: raw counts with a count-based model such as DESeq2 or edgeR.
  • Sample-level visualisation: log-transformed CPM or TPM, with a clear statement of the scale.
  • Gene-level comparison within a sample: TPM or FPKM, with the caveat that they are compositional.
  • Batch correction: apply to a suitable transformed scale, not to raw counts without thought.

Composition and spike-ins

A global shift in expression can be biological. If a treatment shuts down most transcription, the remaining genes may appear up-regulated under a composition-based normalisation because they make up a larger fraction of a smaller library.

Spike-in controls can help estimate absolute changes, but they add experimental complexity and their own assumptions. For most experiments, the practical approach is to inspect the distribution of counts and the fraction of reads in top genes, and to interpret global shifts cautiously.

Checking a normalisation

Plot the distributions of normalised values across samples. They should be similar if the normalisation is working. Plot the fraction of reads in the top expressed genes. A sample with a very different composition may need a different approach or may be an outlier. Check whether the difference is driven by a few genes, by a global shift or by a technical problem before choosing a method.

Use MA plots to see whether the normalisation has removed a global trend. A curve in the MA plot suggests that the scaling is not adequate. A cloud centred on zero is more reassuring.

Normalisation is not batch correction

Normalisation adjusts for depth and composition. It does not remove batch effects, which are systematic differences between groups of samples processed separately. Batch correction is a separate step and should be designed into the model when possible.

If batch is confounded with the condition, no statistical method can fully separate them. The design should avoid confounding, or the limitation should be stated.

Reporting

Report the quantification method, the reference transcriptome, the normalisation method, the model and the software. State whether counts, CPM, TPM or another scale were used for each figure. A figure with an unlabelled y-axis is not reproducible.

If a transformation was applied for visualisation, say so. A log transformation changes the apparent size of differences and should not be confused with a normalisation step.

Key points

  • Raw counts reflect depth and composition as well as biology.
  • CPM corrects depth but not composition.
  • Median-of-ratios and TMM estimate scaling from most genes.
  • TPM and FPKM are compositional and length-corrected.
  • Differential expression should use counts with a count model.

Common mistakes

  • Comparing CPM between samples with very different composition.
  • Using TPM for differential expression without a count model.
  • Treating normalisation as batch correction.
  • Forgetting to state the scale on a figure.
  • Assuming a global shift is technical when it may be biological.

When to ask for help

If samples have very different composition, if a global shift is plausible, or if the design is confounded with batch, ask for a review before interpreting the results. You can order an analysis or read the TPM, FPKM and counts guide. The RNA-seq Data Analysis course covers count models, and the RNA-seq workflow shows where normalisation fits.

Sources and further reading

When to ask for help. If your data or design do not fit a tutorial, order an analysis and we will reply with a fixed price.

Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.