RNA-seq Differential Expression — Transcriptomic DE Analysis

Research
Introduced by
Multiple groups; foundational methods from Anders & Huber (DESeq, 2010), Robinson, McCarthy & Smyth (edgeR, 2010)
Year
2008–2010 (RNA-seq DE methodology established)
Type
Quantitative genomics pipeline
Family
Bioinformatics / omics

What does it do?

RNA-seq differential expression (DE) analysis identifies genes whose transcript abundance differs significantly between two or more biological conditions — for example, treated versus control, or diseased versus healthy tissue.

Starting from raw sequencing reads, the pipeline moves through alignment, count-based normalization, statistical modeling of count dispersion, hypothesis testing, and multiple-testing correction to produce a ranked list of differentially expressed genes accompanied by fold-change estimates and adjusted p-values.

The intuition behind the method

Think of each gene as a faucet whose flow you measure under different experimental conditions. When cells are treated with a drug, some faucets open wider and others close down. RNA-seq counts the flow (transcript reads) for tens of thousands of faucets at once, and DE analysis then separates changes that are real from the random fluctuation expected in low-count, high-variance sequencing data. Because genes with near-zero counts behave very differently from highly expressed genes, count models such as DESeq2 and edgeR estimate gene-specific variability before testing, which is more appropriate than applying a t-test directly to raw counts.

History

Count-based differential expression methods for RNA-seq emerged around 2008, as sequencing began to be used for transcript quantification. DESeq2 (Love, Huber & Anders, 2014) introduced shrinkage of dispersion and fold-change estimates to improve the stability and interpretability of results from experiments with small replicate numbers. edgeR (Robinson, McCarthy & Smyth) is a Bioconductor package for differential expression of replicated digital gene expression counts that uses empirical Bayes moderation of overdispersion.

When to use it

Use RNA-seq DE analysis when you have bulk RNA sequencing counts from two or more biological conditions and want to identify genes whose expression changes in a statistically controlled way. The design needs biological replicates: at least 3 per condition (6 in total) are recommended to estimate dispersion reliably, 3–5 per condition is the practical minimum for most designs, and 5–8 per condition gives substantially better power. edgeR's framework can operate with minimal replication when at least one condition is replicated, but such designs leave dispersion poorly constrained and their results should be interpreted with caution. Do not use this pipeline for single-cell RNA-seq, which has different sparsity and zero-inflation and calls for single-cell tools such as Seurat or Scanpy. Avoid it when the replicates are technical rather than biological, when RNA input may be very low (a high ERCC spike-in fraction can signal low endogenous RNA content, so check other library QC metrics before testing, because the endogenous signal may be too weak for reliable count-based testing), or when batch is fully confounded with treatment, because then batch and treatment effects cannot be separated and the results cannot be interpreted. Batch that is only partly crossed with treatment can instead be included as a term in the design model.

Limitations and considerations

  • Requires biological replicates: pseudo-replication, such as technical replicates alone, underestimates the variance between independent units and inflates false positives.
  • Bulk RNA-seq averages expression across all cells in a sample, so cell-type-specific changes can be masked unless cell composition is estimated or deconvolved.
  • Low-count transcripts have high relative variability and little statistical power, which is why they are usually filtered before testing.
  • Results depend on upstream choices: the aligner, the quantification strategy and the normalization (median-of-ratios in DESeq2 or TMM in edgeR, both of which rely on the assumption that most genes are not differentially expressed) all change the count matrix that is tested.
  • Controlling FDR at 0.05 means that, on average, about 5% of the genes called significant are expected to be false positives. This is a property of the list as a whole and is not a guarantee for any individual gene.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Genome-wide, unbiased survey: all expressed genes are tested without a prior choice of candidate genes.
  • Empirical Bayes moderation (edgeR) and shrinkage (DESeq2) of dispersion and fold-change estimates borrow information across genes, which stabilises results when there are few replicates.
  • edgeR's framework, as described in its package paper, can be applied with minimal replication provided at least one condition is replicated; for routine studies, the 3-per-condition guideline above still applies.
  • The GLM design formula accommodates batch terms, paired samples and interaction terms in a single model, so batch can be adjusted for within the model rather than removed by hand.
  • Each gene receives a log2 fold-change estimate alongside its p-value, so the size of an effect can be weighed together with its statistical significance.

Applications

  • Identifying drug-responsive genes in pharmacogenomics or drug-discovery screens.
  • Characterizing transcriptomic differences between tumor and adjacent normal tissue in cancer genomics.
  • Profiling host immune response to infection by comparing infected versus uninfected samples over time.
  • Studying developmental or differentiation transitions — e.g., stem cell to progenitor to differentiated cell type.
  • Functional annotation of non-model organism genomes by comparing expression across developmental stages.
  • Validating CRISPR or RNAi knockouts and knock-ins by confirming target gene silencing and assessing off-target effects.

How it works

How it works

1

Raw FASTQ reads are quality-trimmed and aligned to a reference genome or transcriptome using a splice-aware aligner such as STAR or HISAT2. Aligned reads overlapping annotated gene features are then counted per gene per sample using tools such as featureCounts or HTSeq, producing a count matrix (genes × samples).

2

Raw counts are not directly comparable across samples because sequencing depth differs. Library-size normalization methods — DESeq2's median-of-ratios or edgeR's TMM — scale counts so that inter-sample comparisons reflect biological differences rather than technical variation in total read output.

3

Read counts vary more between biological replicates than a simple Poisson model predicts. DESeq2 represents them with a negative-binomial distribution and estimates a gene-level dispersion parameter that captures biological variability beyond sampling noise. edgeR, as described in its package paper, uses an overdispersed Poisson framework in which empirical Bayes methods moderate dispersion across transcripts. In both tools, gene-wise estimates are shrunk toward a shared trend so that experiments with few replicates remain stable.

4

For each gene a generalized linear model (GLM) is fitted with condition as a factor. DESeq2 applies a Wald test (or likelihood-ratio test for complex designs); edgeR uses a quasi-likelihood F-test or exact test. The output is a per-gene log2 fold change and a raw p-value under the null hypothesis that the fold change equals zero.

Formula
H_0: \log_2(FC) = 0 \text{ vs. } H_1: \log_2(FC) \neq 0
5

Because tens of thousands of tests are performed simultaneously, raw p-values are adjusted for multiple comparisons using the Benjamini–Hochberg procedure to control the false discovery rate (FDR). Genes with adjusted p-value below a threshold (commonly 0.05) and an absolute log2 fold change above a minimum (often 1) are called differentially expressed.

Formula
p_{adj} = \text{BH}(p_i)
6

The filtered DE gene list is visualised using volcano plots and MA plots, then interpreted biologically through downstream analyses such as Gene Ontology enrichment, KEGG pathway analysis, or gene set enrichment analysis (GSEA) to understand which biological processes are perturbed between conditions.

Common pitfalls

  • Using fewer than 3 biological replicates per condition — dispersion cannot be estimated reliably with n=1 or n=2, producing either inflated false positives or no detectable DE genes.
  • Confounding batch with treatment — if all control samples come from batch A and all treated samples from batch B, batch and treatment effects cannot be separated and downstream results are uninterpretable.
  • Applying standard bulk DE tools (DESeq2, edgeR) directly to single-cell count matrices — the sparsity and zero-inflation of scRNA-seq data violate the assumptions of bulk negative-binomial models.
  • Reporting only p-values without fold-change thresholds — statistically significant but biologically negligible changes (e.g., log2FC < 0.5) inflate gene lists and mislead enrichment analyses.
  • Skipping pre-filtering of very low-count genes — including near-zero count genes wastes statistical power on uninformative tests and inflates the multiple-testing burden.

Frequently asked questions

DESeq2 or edgeR — which should I use?

Both are widely used and documented. DESeq2's shrinkage estimators for dispersion and fold change were designed for situations with small replicate numbers, and they improve the stability and interpretability of effect-size estimates, so that the strength of an effect can be assessed rather than only its presence. edgeR's quasi-likelihood pipeline is flexible for complex designs. Running both and comparing results is a common check. The choice matters less than having adequate replication and a well-documented pipeline.

How many replicates do I need?

A minimum of 3 biological replicates per condition is necessary to estimate dispersion; 3 is workable but underpowered for lowly expressed genes. Power analyses (e.g., using the RnaSeqSampleSize or RNASeqPower R packages) should guide design. For rare-event detection or subtle fold changes, 5–8 replicates per condition provide substantially better sensitivity.

What is the difference between biological and technical replicates?

Biological replicates are independent samples from different individuals or culture wells — they capture true biological variability. Technical replicates are repeated measurements of the same biological material. DE analysis requires biological replicates because it aims to generalize beyond a single sample. Using technical replicates as if they were biological replicates severely underestimates variance and inflates false positives.

My gene list is huge (thousands of DE genes) — is something wrong?

Not necessarily, but it warrants scrutiny. A very large DE gene list can result from a strong biological effect (e.g., a drastic treatment), but also from batch confounding, failure to apply fold-change filtering, or overly liberal FDR thresholds. Inspect your PCA plot: if PC1 separates conditions cleanly and accounts for a large fraction of variance, a large DE list may be genuine. Also apply a minimum absolute log2 fold change threshold (e.g., |log2FC| > 1) alongside the FDR cutoff.

Can I use RNA-seq DE analysis for single-cell data?

Standard bulk tools (DESeq2, edgeR) should not be applied directly to raw single-cell count matrices because single-cell data are far sparser and zero-inflated. Pseudo-bulk approaches — aggregating single-cell counts to the sample level and then running bulk DE tools — are commonly used for differential expression between conditions in scRNA-seq experiments. Within-dataset cluster marker detection uses different methods (Wilcoxon rank-sum, MAST, etc.) that are designed for single-cell sparsity.

Related methods

Sources

  1. Love, M. I., Huber, W., & Anders, S. (2014). Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biology, 15(12), 550.

    Open DOI reference
  2. Robinson, M. D., McCarthy, D. J., & Smyth, G. K. (2010). edgeR: a Bioconductor package for differential expression analysis of digital gene expression data. Bioinformatics, 26(1), 139–140.

    Open DOI reference