DESeq2 and edgeR are both Bioconductor packages for testing count data from bulk RNA-seq. They share a negative-binomial foundation, but they differ in normalisation, dispersion estimation and the way results are summarised. Neither is universally better; the right choice depends on the design and on what you need downstream.
What each approach is
DESeq2
DESeq2 fits a negative-binomial generalised linear model to counts, estimates size factors for normalisation and shrinks dispersion estimates across genes. It also shrinks log2 fold changes, which is useful when ranking genes or drawing heatmaps, and it supports Wald tests and likelihood-ratio tests for complex designs.
edgeR
edgeR also fits negative-binomial models, using TMM normalisation by default and empirical Bayes moderation of dispersion. Its quasi-likelihood framework accounts for uncertainty in the dispersion estimate, and it offers an exact test for simple two-group comparisons as well as general linear models for more complex designs.
How they differ
| Aspect | DESeq2 | edgeR |
|---|---|---|
| What it is | An R package for negative-binomial modelling and differential expression of count data. | An R package for negative-binomial modelling, with exact and quasi-likelihood tests. |
| Typical use | Bulk RNA-seq, ChIP-seq or other counts with a designed experiment and replicates. | Bulk RNA-seq and other counts, from simple two-group comparisons to multi-factor designs. |
| Normalisation | Size factors estimated from the median ratio of each gene to its geometric mean. | TMM by default, with other normalisation options available. |
| Strengths | Shrunken fold changes, a consistent results table and a familiar interface for complex designs. | A flexible GLM framework, quasi-likelihood tests and a long-standing exact test for simple designs. |
| Limits | Requires counts, not TPM or FPKM; results depend on the design formula and filtering. | Requires counts; the choice between exact, GLM and quasi-likelihood tests needs to match the design. |
| When to choose | You want shrunken effect sizes for ranking and plots, and a single coherent results table. | You want the quasi-likelihood framework or an exact test for a simple comparison. |
In practice
In a typical bulk RNA-seq analysis, both packages sit at the same point in the workflow. Reads have already been quantified to a gene-level count table, and low-count genes have been filtered. The practical difference appears when the design has covariates. DESeq2 users usually write a design formula with the condition and the batch term, then inspect dispersion estimates and a mean-dispersion plot. edgeR users often begin with a DGEList, apply TMM normalisation and choose between the exact test and a general linear model. Neither route removes the need to check library sizes, sample clustering and the effect of the batch term.
Reporting is part of the choice. DESeq2 produces a results table with shrunken log2 fold changes when the user asks for them. Many readers expect that table in a paper. edgeR reports coefficients and contrasts, and its quasi-likelihood route gives a different test statistic. Whichever package you use, record the filtering rule, the design formula, the normalisation and the multiple-testing method. If a collaborator needs to reproduce the result, a saved script and session information are more useful than a sentence naming the package.
How to decide
1. What is the experimental design?
For a simple two-group comparison, either package works. For paired samples, repeated measures or several factors, write the design formula first and check that the package supports the terms you need. Both do, but the way the model is specified differs.
2. Do you need shrunken fold changes?
DESeq2 shrinks log2 fold changes by default, which stabilises ranking when counts are low. edgeR can also shrink, but the default workflow reports model estimates. If your figures depend on effect sizes, decide whether shrinkage is part of your story.
3. How many replicates do you have?
With very few replicates, dispersion estimation is uncertain. Both packages borrow information across genes, and edgeR offers a quasi-likelihood route that propagates that uncertainty. With many replicates, the difference in approach matters less than the design and data quality.
4. What does the rest of your pipeline expect?
If downstream tools or collaborators expect a particular results table, use that package rather than converting formats. Record the package, the design formula, the normalisation and the filtering rule so the analysis can be repeated.
What this comparison does not settle
Both methods assume that counts are measured on comparable features and that samples are independent unless the model says otherwise. Neither fixes a confounded batch, a failed sample or a library preparation bias. A significant result is also not proof of a biological mechanism.
What to record
Write down the count source, the annotation release, the filtering rule, the design formula, the normalisation method, the test used and the false-discovery threshold. Record the package version in the analysis environment, not as a claim about which version is current.
Try it yourself, free
This tool runs free in your browser on Solagene, with a small example dataset. Nothing is uploaded.
Sources
Related pages
Related reading
Last reviewed: . This is an editorial summary, not a benchmark. If a tool or method has changed, tell us and we will update the page.