Differential Expression Testing is the statistical process of identifying genes whose mRNA transcript abundance differs significantly between two or more biological conditions or cell populations. It applies hypothesis testing frameworks—typically negative binomial models for raw counts or non-parametric tests—to single-cell or bulk RNA-seq data, generating a ranked list of up-regulated and down-regulated genes with associated p-values and fold-change estimates.
Glossary
Differential Expression Testing

What is Differential Expression Testing?
A foundational computational method for comparing gene expression levels between distinct cell groups or experimental conditions to identify transcripts with statistically significant changes in abundance.
The core challenge lies in modeling the overdispersed count nature of sequencing data while controlling for multiple testing burden across tens of thousands of genes. Modern tools like DESeq2, edgeR, and MAST employ shrinkage estimators to stabilize variance estimates for lowly expressed genes. In single-cell contexts, methods must additionally account for the zero-inflation characteristic of sparse count matrices, where dropout events can mask true biological signal.
Key Statistical Considerations
The statistical frameworks that distinguish biological signal from technical noise when comparing transcriptomes between cell groups or conditions.
The Null Hypothesis & Multiple Testing Burden
Differential expression testing operates by attempting to reject the null hypothesis—the assumption that the mean expression of a gene is identical between two groups. In single-cell experiments, this test is performed independently for 20,000+ genes, creating a severe multiple testing problem. Without correction, a p-value threshold of 0.05 would yield ~1,000 false positives per experiment purely by chance.
- Family-Wise Error Rate (FWER) control via Bonferroni correction is often too conservative for exploratory genomics.
- False Discovery Rate (FDR) control, typically using the Benjamini-Hochberg procedure, is the standard approach, accepting a controlled proportion of false positives among all discoveries.
Statistical Models for Count Data
Single-cell expression data is fundamentally count-based and exhibits overdispersion—the variance exceeds the mean, violating Poisson assumptions. Standard models include:
- Negative Binomial (NB) distribution: The workhorse of bulk RNA-seq, modeling counts with a dispersion parameter. Used by DESeq2 and edgeR.
- Zero-Inflated Negative Binomial (ZINB): Extends NB to explicitly model dropout events—zeros caused by technical failure to capture transcripts rather than true absence. Used by MAST and scDD.
- Wilcoxon Rank-Sum test: A non-parametric alternative that makes no distributional assumptions, widely used in single-cell tools like Seurat for its computational speed and robustness to outliers.
Pseudoreplication & Biological Replicates
A critical statistical pitfall is treating individual cells as independent replicates, a form of pseudoreplication that inflates statistical power and produces spuriously significant results. Cells from the same donor or sample are not independent observations.
- True biological replicates are the independent experimental units (e.g., different patients, animals, or cultures).
- Pseudobulk aggregation sums counts across cells within each sample to create one observation per gene per replicate, then applies bulk RNA-seq tools like DESeq2 or edgeR.
- Mixed-effects models (e.g., muscat, dream) incorporate sample identity as a random effect, modeling within-sample correlation while retaining single-cell resolution.
Effect Size vs. Statistical Significance
In high-dimensional single-cell data, statistical significance (p-value) and biological significance (effect size) often diverge. With thousands of cells, even trivially small expression differences can achieve extreme statistical significance.
- Log2 Fold Change (log2FC) quantifies the magnitude of expression difference between groups. A gene with log2FC of 0.1 may be statistically significant but biologically irrelevant.
- Minimum effect size thresholds (e.g., |log2FC| > 0.5 or 1.0) are commonly applied to filter results.
- Percentage of cells expressing the gene in each group (% detected) provides orthogonal evidence that a difference reflects a population-level shift rather than a handful of outlier cells.
Batch Effects as Confounders
Batch effects—systematic technical variation from different experimental runs, sequencing lanes, or sample processing dates—can confound differential expression results if they correlate with the condition of interest. A gene may appear differentially expressed due to batch artifacts rather than biology.
- Diagnostic checks: Principal component analysis colored by batch and condition can reveal confounding before testing.
- Blocking strategies: Including batch as a covariate in the statistical model (e.g.,
~ batch + conditionin DESeq2) adjusts for additive batch effects. - Data integration methods like Harmony or scVI remove batch effects prior to testing but must be applied cautiously to avoid removing true biological signal.
Single-Cell Specific Challenges
Differential expression in single-cell data faces unique statistical challenges absent in bulk RNA-seq:
- Sparsity: Typical scRNA-seq datasets have >90% zeros, driven by both biological absence and technical dropouts, challenging distributional assumptions.
- Zero inflation: The excess of zeros beyond what standard count distributions predict requires specialized models or data imputation.
- Dynamic expression: In trajectory or pseudotime analyses, differential expression is not between discrete groups but along a continuous path, requiring methods like tradeSeq or monocle3's graph-autocorrelation tests.
- Subject-specific variability: In human studies, inter-individual variation often dominates the signal, requiring careful modeling of donor effects.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about statistical comparison of gene expression in single-cell and bulk transcriptomics.
Differential expression testing is a statistical framework that identifies genes whose expression levels differ significantly between two or more biological conditions or cell groups. The process begins with a count matrix of transcript abundances, applies normalization to account for sequencing depth, and then fits a statistical model—typically a negative binomial generalized linear model (GLM)—to each gene. The model estimates a log-fold change and computes a p-value testing the null hypothesis of no difference. Because tens of thousands of genes are tested simultaneously, multiple testing correction (e.g., Benjamini-Hochberg) is applied to control the false discovery rate. The output is a ranked list of genes with adjusted p-values and effect sizes, enabling researchers to prioritize transcripts for downstream validation and biological interpretation.
Pseudobulk vs. Single-Cell DE Methods
Comparison of statistical frameworks for identifying differentially expressed genes between conditions in single-cell experiments.
| Feature | Pseudobulk Aggregation | Single-Cell Mixed Models | Wilcoxon Rank-Sum Test |
|---|---|---|---|
Statistical Unit | Sample/Replicate | Individual Cell | Individual Cell |
Accounts for Replicate Variability | |||
Handles Zero-Inflation | |||
Type I Error Control | Well-calibrated | Conservative to well-calibrated | Inflated with pseudoreplication |
Computational Speed | Fast (seconds to minutes) | Slow (hours for large datasets) | Fast (seconds to minutes) |
Minimum Replicates Required | ≥ 3 per group | ≥ 2 per group | ≥ 3 per group |
Output Effect Size | Log2 Fold Change | Log2 Fold Change | Log2 Fold Change |
Suitable for Large Atlas-Scale Data |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Master the statistical and computational ecosystem surrounding differential expression testing in single-cell analysis.
Normalization
The process of scaling raw count data to adjust for differences in sequencing depth and capture efficiency between cells. Without proper normalization, differential expression results are dominated by technical artifacts rather than biological signal. Common methods include library-size scaling, deconvolution (scran), and regularized negative binomial regression (sctransform).
Batch Effect
Non-biological systematic variation introduced by technical factors like different experimental runs, reagents, or sequencing lanes. Batch effects confound differential expression testing by creating false-positive group differences. Data integration methods like Harmony or MNN correct for these effects before statistical testing.
Pseudobulk Analysis
A strategy that aggregates counts from cells within the same biological replicate and cell type before testing. This approach avoids the inflated false-positive rates of single-cell-level tests by treating the replicate, not the cell, as the unit of observation. Tools like DESeq2 and edgeR are applied to pseudobulk profiles.
Marker Gene
A gene whose expression is highly specific to a particular cell type or state. Differential expression testing identifies marker genes by comparing one cluster against all others (one-vs-all). Key metrics include log fold-change and specificity score. Validated markers are used for cell type annotation and diagnostic classification.
Multiple Testing Correction
A statistical adjustment required when testing thousands of genes simultaneously. Without correction, the probability of false positives inflates dramatically. The Benjamini-Hochberg procedure controls the false discovery rate (FDR) and is the standard in single-cell workflows. Adjusted p-values below 0.05 are typically considered significant.
Count Matrix
A sparse numerical matrix where rows represent genes and columns represent cell barcodes, storing the number of transcripts detected per gene in each cell. This is the fundamental input for differential expression testing. The matrix is typically stored in formats like h5ad (AnnData) or h5 (10x Genomics) and filtered for highly variable genes before analysis.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us