edgeR implements statistical methodology for analyzing digital gene expression data from RNA-seq, ChIP-seq, and other count-based technologies. The package models read counts using a negative binomial distribution to account for both biological and technical variability, employing empirical Bayes shrinkage to stabilize dispersion estimates across genes with low counts. Its core functions include the exact test for simple two-group comparisons and generalized linear models for complex experimental designs.
Glossary
edgeR

What is edgeR?
edgeR is an R/Bioconductor software package for performing differential expression analysis of digital gene expression data using empirical Bayes methods and exact tests based on the negative binomial distribution.
The package's trimmed mean of M-values (TMM) normalization method corrects for compositional biases in library size, while the quasi-likelihood F-test provides robust error rate control even when the dispersion model is misspecified. edgeR is widely adopted in biomarker discovery pipelines for its statistical rigor in identifying differentially expressed genes between conditions, making it a foundational tool in genomics research alongside DESeq2 and limma-voom.
Key Features of edgeR
edgeR implements a robust statistical framework for differential expression analysis of digital gene expression data, leveraging the negative binomial distribution and empirical Bayes methods to deliver reliable results even with minimal biological replicates.
Empirical Bayes Dispersion Estimation
edgeR's core innovation is its use of empirical Bayes shrinkage to estimate gene-specific dispersions. This approach borrows information across all genes to stabilize estimates, particularly for genes with low counts where variability is poorly estimated from data alone.
- Estimates a common dispersion across all genes
- Shrinks gene-wise dispersions toward a weighted likelihood empirical Bayes trend
- Dramatically improves power when biological replicates are limited
- Uses the quantile-adjusted conditional maximum likelihood (qCML) method for single-factor experiments
Exact Test for Two-Group Comparisons
For simple two-group experimental designs, edgeR provides an exact test based on the negative binomial distribution. This test is analogous to Fisher's exact test but adapted for overdispersed count data.
- Computes exact p-values without asymptotic approximations
- Models the total count sum as an ancillary statistic
- Provides reliable Type I error control even at very small sample sizes
- Suitable for case-vs-control and treated-vs-untreated comparisons
Generalized Linear Model Framework
For complex multi-factor experiments, edgeR offers a GLM-based approach that extends its methodology to arbitrary experimental designs. This framework supports additive and interaction models, continuous covariates, and blocking factors.
- Uses likelihood ratio tests or quasi-likelihood F-tests for hypothesis testing
- Handles batch effects and paired designs through the design matrix
- Supports time-course experiments and dose-response studies
- The quasi-likelihood (QL) pipeline adds an extra dispersion parameter to account for gene-specific variability beyond the negative binomial assumption
TMM Normalization Method
edgeR introduced the Trimmed Mean of M-values (TMM) normalization, which corrects for compositional biases in RNA-seq libraries. TMM assumes that the majority of genes are not differentially expressed and computes scaling factors accordingly.
- Trims genes with extreme log-fold changes (default 30%)
- Trims genes with extreme absolute expression (default 5%)
- Produces effective library sizes used as offsets in the model
- Robust to the presence of highly differentially expressed genes
- Outperforms simple total-count normalization when library composition varies
Gene-Specific Filtering and Testing
edgeR implements intelligent filtering strategies to increase detection power by removing genes that are unlikely to be differentially expressed before multiple testing correction.
- Filter by expression: Remove genes with consistently low counts across all samples
- Filter by count-per-million (CPM): Retain genes with a minimum CPM in a sufficient number of samples
- Reduces the multiple testing burden, increasing the number of discoveries
- Integrates with the Benjamini-Hochberg procedure for FDR control
- Provides functions like
filterByExpr()for automated, data-driven filtering
Multi-Factor and Interaction Testing
The GLM framework in edgeR enables testing of interaction effects and complex contrasts, allowing researchers to answer nuanced biological questions beyond simple two-group comparisons.
- Test whether treatment effects differ between genotypes (interaction)
- Compare specific condition combinations using contrast matrices
- Perform ANOVA-like tests for multi-level factors
- Extract coefficients and their standard errors for downstream analysis
- Compatible with the
limmapackage'smakeContrasts()function for contrast specification
edgeR vs. DESeq2 vs. limma-voom
Technical comparison of the three primary Bioconductor packages for RNA-seq differential expression analysis
| Feature | edgeR | DESeq2 | limma-voom |
|---|---|---|---|
Statistical model | Negative binomial GLM | Negative binomial GLM | Linear model on precision-weighted log-CPM |
Dispersion estimation method | Empirical Bayes (tagwise) | Empirical Bayes (gene-wise) | Mean-variance trend modeling |
Normalization method | TMM (Trimmed Mean of M-values) | Median of ratios (RLE) | TMM or quantile normalization |
Handles complex designs | |||
Exact test for two-group comparison | |||
Supports random effects | |||
Default hypothesis test | Likelihood ratio test or quasi-likelihood F-test | Wald test | Moderated t-statistic |
Single-cell pseudobulk compatible |
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.
Frequently Asked Questions
Clear, technically precise answers to the most common questions about the edgeR package for differential gene expression analysis of digital count data.
edgeR is an R/Bioconductor software package designed for differential expression analysis of digital gene expression data, such as RNA-seq, ChIP-seq, and SAGE. It models count data using the negative binomial distribution to account for both biological and technical variability. The core workflow involves: (1) normalizing raw counts using the Trimmed Mean of M-values (TMM) method to correct for compositional biases between libraries; (2) estimating a common dispersion parameter across all genes, then gene-specific dispersions using an empirical Bayes shrinkage procedure to stabilize estimates for genes with low counts; and (3) fitting a generalized linear model (GLM) and performing exact tests or likelihood ratio tests to identify genes with statistically significant changes between experimental conditions. Unlike older methods that rely on normal approximations, edgeR's negative binomial framework properly handles the mean-variance relationship inherent in count data, where the variance grows quadratically with the mean.
Related Terms
Explore the core statistical concepts, competing methodologies, and diagnostic visualizations that form the analytical ecosystem surrounding edgeR for robust differential expression analysis.
Negative Binomial Distribution
The foundational probability model underlying edgeR's statistical framework. RNA-seq count data exhibits overdispersion, where the variance exceeds the mean due to biological and technical variability. The negative binomial distribution models this by introducing a dispersion parameter that captures the extra-Poisson variation. edgeR estimates this gene-specific dispersion using a quantile-adjusted conditional maximum likelihood method, enabling accurate modeling of count variability.
Trimmed Mean of M-values (TMM)
The default normalization method implemented in edgeR to correct for differences in RNA composition between samples. TMM works by:
- Computing log-fold changes (M-values) and absolute expression levels (A-values) for each gene between a reference and test sample
- Trimming genes with extreme M-values (typically 30%) and extreme A-values (5%)
- Calculating a weighted mean of the remaining M-values to derive a scale factor This robust approach prevents highly differentially expressed genes from skewing normalization.
Exact Test
The original statistical test implemented in edgeR for simple two-group comparisons. Based on the negative binomial distribution, it computes an exact p-value by summing the probabilities of all possible outcomes with likelihoods less than or equal to the observed data under the null hypothesis. While computationally intensive, this test provides accurate p-values even for genes with very low counts, making it suitable for experiments with no biological replicates when a common dispersion is assumed.
Generalized Linear Model (GLM) Framework
The more flexible statistical engine in edgeR for complex experimental designs involving multiple factors, covariates, or time-series data. The GLM approach uses:
- A design matrix to encode the experimental structure
- Log-link function to relate the linear predictor to the expected count
- Likelihood ratio tests or quasi-likelihood F-tests to assess differential expression This framework handles batch effects, paired designs, and multi-group comparisons that the exact test cannot accommodate.
Volcano Plot
A standard diagnostic visualization for edgeR results that plots the log2 fold change on the x-axis against the -log10 adjusted p-value on the y-axis. This creates a characteristic 'volcano' shape where:
- Points in the upper corners represent genes with both large magnitude changes and high statistical significance
- Horizontal cutoff lines indicate the chosen FDR threshold (e.g., 0.05)
- Vertical cutoff lines mark the biological significance threshold (e.g., |log2FC| > 1) The plot enables rapid identification of top candidate biomarkers.

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