limma vs DEqMS for Proteomics — When to Use Which (Measured at n=3 on Known Ratios)
Both limma and DEqMS provide moderated t-statistics for proteomics differential expression. limma was built for microarrays; DEqMS adds a proteomics-specific variance prior tied to peptide count. This guide scores both, plus the t-test, on a known-ratio benchmark at n=3 per group, with recommendations on when DEqMS's extra step is worth it and why a fold-change threshold matters.
Corrected on 23 November 2026. Two of the six raw files from my first download were damaged (a server error message of about 200 bytes replaced one spectrum in each), so I re-ran the MaxQuant search on verified copies with the same settings and updated the benchmark numbers in this post; the conclusions are unchanged (release v1.0.6).
Correction (15 October 2026): an earlier version promised comparisons at n = 10 and n = 20, which this post never had; it measures n = 3 only. It also said an FDR of 0.05 means roughly 5% false discoveries and called DEqMS "the right default", both contradicted by the benchmark below. Those lines are fixed.
The Question That Comes Up Every Proteomics Paper
You have a DIA-NN or MaxQuant output. 4,000 quantified proteins. n=3 per group. Reviewer 2 says: "Why did you use t-test instead of limma?" Co-author says: "Why didn't you use DEqMS specifically for proteomics?"
Both are reasonable points. The difference between limma and DEqMS in 2026 proteomics is not large, but it isn't zero, and the right choice depends on whether your data has the metadata DEqMS needs (peptide counts per protein) and whether the small-effect-size proteins matter for your conclusions.
This guide is the practical comparison: when DEqMS's proteomics-specific variance prior actually helps, when it's noise compared to plain limma, and when even an unmoderated Welch's t-test would be fine.
What Each Tool Actually Does
Plain Welch's t-test
Per protein: compute t-statistic on log2 intensities, two-sided p-value, BH-FDR across all proteins.
- Strength: simple, no assumptions about cross-protein structure
- Weakness: with small n (n=3), the per-protein variance estimate is unstable — a few proteins with accidentally tiny variance get inflated t-statistics → false positives
limma (Smyth, 2004)
Empirical Bayes shrinkage of variance. Borrows information across all proteins to stabilize per-protein variance estimates, then computes moderated t-statistics. Originally designed for microarrays, it is now routinely used for proteomics.
- Strength: a large improvement over the t-test at small n. In my known-answer benchmark below (n=3 per group), limma found 98% of the truly changed proteins; the t-test found 56%
- Weakness: doesn't know proteins differ in measurement quality (a protein quantified by 1 peptide is noisier than one with 20 peptides)
DEqMS (Zhu et al., 2020)
Builds on limma but adds a peptide-count-dependent variance prior: proteins with more peptides get smaller residual variance estimates (a real proteomics property). The result is a proteomics-aware moderated t-statistic.
- Strength (by design): better calibration of significance for low-peptide proteins (single-peptide IDs are downweighted). The benchmark below could not test this; see the note after the results
- Weakness: requires per-protein peptide count metadata, which DIA-NN and MaxQuant both provide but you have to wire it up
When Each Wins — A Practical Decision Tree
Small n (3-10 per group)?
→ Don't use the plain t-test; use limma or DEqMS.
Do you have peptide-count per protein in your output?
YES → DEqMS is worth trying, always with a fold-change threshold
(without one it gave the most false calls in the benchmark below)
NO → limma is the right default (or compute peptide counts and use DEqMS)
Are your DEPs heavily weighted toward single-peptide proteins?
YES → DEqMS will materially change conclusions
NO → limma and DEqMS give very similar lists
For most modern proteomics outputs (MaxQuant proteinGroups.txt, DIA-NN report.pg_matrix.tsv + the main report) you do have peptide counts, so DEqMS is easy to add. Whether it helps depends on your data; in the known-answer benchmark I ran (next sections) its extra power also picked up a normalisation offset, so pair it with a fold-change threshold.
Side-By-Side Code
Setup
library(limma)
library(DEqMS)
library(readr)
# Load MaxQuant proteinGroups.txt (or DIA-NN pg_matrix.tsv with peptide count joined)
pg <- read_tsv("proteinGroups.txt")
# Standard filters. MaxQuant 2.8 renamed "Reverse" to "Decoy"; on a 2.8 file the old
# pg$Reverse != "+" filter silently returns zero rows. This version works on both:
flag <- function(col) if (col %in% names(pg)) pg[[col]] %in% "+" else FALSE
pg <- pg[!(flag("Reverse") | flag("Decoy") | flag("Potential contaminant") | flag("Only identified by site")), ]
# Identify intensity columns (LFQ or iBAQ)
lfq_cols <- grep("^LFQ intensity ", colnames(pg), value = TRUE)
mat <- as.matrix(pg[, lfq_cols])
rownames(mat) <- pg$`Majority protein IDs`
# Replace zeros with NA, log2 transform
mat[mat == 0] <- NA
mat <- log2(mat)
# Group assignments
group <- factor(c("Treat","Treat","Treat","Treat","Ctrl","Ctrl","Ctrl","Ctrl"))
design <- model.matrix(~0 + group)
colnames(design) <- levels(group)
contrast <- makeContrasts(Treat - Ctrl, levels = design)
limma path
fit <- lmFit(mat, design)
fit <- contrasts.fit(fit, contrast)
fit <- eBayes(fit)
limma_results <- topTable(fit, number = Inf, adjust.method = "BH")
DEqMS path (adds 3 lines)
fit <- lmFit(mat, design)
fit <- contrasts.fit(fit, contrast)
fit <- eBayes(fit)
# DEqMS extension: peptide count per protein, aligned to the rows of the fit.
# As in the DEqMS vignette: the minimum "Razor + unique peptides" across samples, plus 1.
pep <- as.matrix(pg[, grep("^Razor \\+ unique peptides ", colnames(pg))])
rownames(pep) <- pg$`Majority protein IDs`
fit$count <- apply(pep, 1, min)[rownames(fit$coefficients)] + 1
deq <- spectraCounteBayes(fit)
deqms_results <- outputResult(deq, coef_col = 1)
That's the actual delta — three extra lines that link variance modeling to per-protein measurement quality.
A Known-Answer Comparison (n = 3 vs 3)
[Rewritten October 2026. An earlier version showed a results table (312 / 416 / 397 DEPs) without a dataset or code behind it. It is replaced by a run whose right answer is known.]
The data: the public three-species benchmark PXD028735 (Van Puyvelde et al., Sci Data 2022), six Orbitrap DDA runs processed with MaxQuant 2.8.1 with match-between-runs, the same run as my MaxQuant benchmark post. Between the two conditions, human proteins do not change (log2 ratio 0), yeast proteins halve (−1) and E. coli proteins quadruple (+2). So every called human protein is a false positive, and every yeast or E. coli protein should be called.
I kept the 3,531 proteins quantified in all three samples of both groups (2,626 human, 797 yeast, 108 E. coli), so all three methods test exactly the same proteins. LFQ intensities, log2. DEqMS used the minimum razor + unique peptide count, as in its vignette.
adj. p < 0.05, no fold-change cut-off:
| Method | Changed proteins found (of 905) | Human proteins called (false) | False discovery proportion |
|---|---|---|---|
| Welch's t-test | 508 (56%) | 67 | 11.7% |
| limma | 889 (98%) | 101 | 10.2% |
| DEqMS | 891 (98%) | 275 | 23.6% |
adj. p < 0.05 and |log2FC| ≥ 0.5:
| Method | Changed proteins found (of 905) | Human proteins called (false) | False discovery proportion |
|---|---|---|---|
| Welch's t-test | 504 (56%) | 2 | 0.4% |
| limma | 873 (96%) | 10 | 1.1% |
| DEqMS | 877 (97%) | 13 | 1.5% |
Three things stand out.
- At n = 3 the t-test misses almost half of the real changes. limma's variance shrinkage recovers nearly all of them. This is the strongest argument in the post, and now it is measured.
- DEqMS called almost three times as many human proteins as limma without a fold-change cut-off. They are not random: 99% of them went up, and the human proteins as a whole sat at a median log2 ratio of +0.144 instead of 0. LFQ normalisation assumes most proteins do not change, and in this mixture a third of the proteome does, so the human background shifted a little. Human proteins are abundant and well covered by peptides, which is exactly where DEqMS gives the most power, so it declared that small, real, but meaningless shift significant.
- With a modest fold-change threshold the three methods agree on false positives and limma and DEqMS find the same changes.
So the practical rule from this run: use limma or DEqMS, never the plain t-test at n = 3, and always pair the FDR with a fold-change threshold or a check that your normalisation left the unchanged background centred on zero.
What this run does not test is DEqMS's main selling point. After requiring three of three values per group, only 8 single-peptide proteins remained, so there was nothing for its peptide-count prior to down-weight. Data with many single-peptide proteins may favour DEqMS more than this benchmark shows.
Sample Size Effects
The benchmark above is n = 3, where the difference is largest. As n grows, each protein's own variance estimate becomes stable, so the empirical-Bayes shrinkage in limma (and the peptide-count prior in DEqMS) matters less, and all three methods converge. I have not measured where that happens on proteomics data, so I won't give you a threshold; if your n is large, run limma anyway. It costs nothing and does no harm.
Common Pitfalls
1. Forgetting log2 transformation
Both limma and DEqMS expect log-transformed intensities. Run them on raw LFQ and the results are nonsense — yet no error message will warn you. Always log2 transform first.
2. NA handling
# Bad — discards entire protein if any sample missing
mat_complete <- mat[complete.cases(mat), ]
# Better — limma handles NAs within group as long as ≥2 per group
# (use Valid-Value filter explicitly per [the cross-species pillar])
See Reproducing Park et al. 2026 for the valid-value filter pattern.
3. Using LFQ when iBAQ is more appropriate (or vice versa)
- LFQ (Label-Free Quantification): MaxQuant's normalized intensity, designed for cross-sample comparison
- iBAQ: summed intensity divided by the number of theoretically observable peptides, designed for comparing abundance between proteins within a sample
For most differential expression with MaxQuant, LFQ is the right starting point. DIA-NN's PG.MaxLFQ is the equivalent. Don't run limma/DEqMS on raw Intensity columns.
4. Wrong peptide count column in DEqMS
DEqMS's fit$count expects the number of peptides quantifying each protein. For MaxQuant proteinGroups.txt, the DEqMS vignette uses the minimum Razor + unique peptides count across samples, plus 1, as in the code above. In DIA-NN, count unique stripped peptide sequences per Protein.Group:
# For DIA-NN
library(dplyr)
peptide_counts <- diann_report %>%
group_by(Protein.Group) %>%
summarize(count = n_distinct(Stripped.Sequence))
# join into pg_matrix
If the count does not reflect the peptides that actually quantify each protein, DEqMS will run but its variance modeling will be wrong.
5. FDR interpretation
Both limma and DEqMS report adjusted p-values (BH-FDR). An FDR of 0.05 does not guarantee 5% false discoveries: in the benchmark above, the observed false discovery proportion at adjusted p < 0.05 was 10.2% for limma and 23.6% for DEqMS, because the normalisation left a small systematic offset that FDR control cannot see. Pair the FDR with a fold-change threshold and check that the unchanged background is centred on zero. For high-stakes claims (biomarker proposals, drug targets), apply tighter cutoffs (FDR 0.01) and confirm with orthogonal methods.
When Neither Is Enough
Some scenarios where you need to go beyond limma/DEqMS:
- Batch effects: use
removeBatchEffect()first, or include batch as a covariate in the limma design matrix - Repeated measures / paired samples: use
duplicateCorrelation()in limma - Multiple groups with interactions: standard limma design matrix syntax handles this
- Heavy-tailed distributions (some PTM datasets): consider non-parametric (Wilcoxon) or robust regression
- Highly non-uniform missingness: model MNAR explicitly (see the missing values post)
What If You Don't Have R?
DEqMS is R-only. Python alternatives:
statsmodelsfor plain Welch's t-test + BHlimmavia rpy2 — call R from Python (annoying but works)- Custom moderated t-test in Python: possible but not standard practice; defaults to plain t-test for most Python users
For proteomics specifically, R is still the lingua franca for differential expression. If your pipeline is Python-heavy, consider switching to R just for the DEP step, then back to Python for downstream.
Code and outputs: the scripts and result tables for this post are on GitHub in sbmlab-benchmarks/limma-deqms-hye.
Preprint: this benchmark, from search engine to enrichment background, is written up as a preprint: Kang B. (2026), Scoring the downstream chain of small-n label-free proteomics against known ratios, Research Square, doi:10.21203/rs.3.rs-11370244/v1. It has not been peer reviewed.
Related on This Site
- Differential Expression Analysis in Proteomics: A Complete R Pipeline — the full workflow around the test you just chose
- Handling Missing Values in Proteomics — small n makes the imputation choice matter more, not less
- DESeq2 vs edgeR vs limma-voom — the same question for RNA-seq counts
FAQ
Q: Is DEqMS just better than limma for proteomics, period? Not in my benchmark. DEqMS found the same changes as limma, but without a fold-change threshold it also flagged a small normalisation shift as significant. Where it should help most is data with many single-peptide proteins. For datasets where you've filtered to multi-peptide proteins, the difference is small.
Q: What about MSstats or ProteoMM?
- MSstats: more general framework, handles paired designs and protein-level inference from peptide-level data. Heavier but well-validated.
- ProteoMM: handles missing data with mixture models. Niche use cases.
For most proteomics, DEqMS or MSstats are the two serious choices. DEqMS is simpler when you start from a protein-level intensity matrix; MSstats is preferred when you have peptide-level data and complex designs.
Q: Can I use DEqMS for DIA-NN output?
Yes. The trick is computing peptide counts per protein from DIA-NN's report.tsv (it's peptide-level) and joining to report.pg_matrix.tsv (protein-level). 10 lines of dplyr or pandas.
Q: limma's voom() — should I use that?
voom() is for RNA-seq count data (mean-variance modeling for counts). Proteomics intensities are continuous after log2, not counts. Don't use voom for proteomics. Use lmFit + eBayes directly.
Q: What FDR threshold should I use? 0.05 is conventional. For pilot/discovery work where downstream validation will filter, 0.10 is sometimes used. For biomarker proposals or any claim that goes into a paper without orthogonal validation, 0.01 is safer. Discuss with reviewers in your field.
Q: My DEqMS gives weird variance plots with VarianceBoxplot() — what's that mean?
DEqMS expects a monotonic decreasing relationship between peptide count and variance (more peptides → lower variance). If your boxplot doesn't show this trend, something is off — usually a normalization or contaminant issue. Fix upstream, then rerun.
Closing — One-Line Answer
At small n, use limma or DEqMS, not the plain t-test, and always add a fold-change threshold. In the known-answer test I ran above (PXD028735, MaxQuant 2.8.1, n = 3), the t-test missed 44% of real changes, and without a fold-change cut-off the most powerful method flagged a normalisation artefact.
Related posts:
- Reproducing Park et al. 2026 — Cross-Species ECM Proteomics, Three Iterations
- From DIA-NN Output to Paper Draft: AI-Assisted Proteomics Workflow
- FragPipe vs MaxQuant, measured
- LC-MS/MS Proteomics Complete Workflow Guide 2026
References:
- Smyth, G. K. (2004). Linear models and empirical Bayes for microarray. Statistical Applications in Genetics and Molecular Biology, 3, Article 3.
- Zhu, Y. et al. (2020). DEqMS: a method for accurate variance estimation in proteomics. Molecular & Cellular Proteomics, 19, 1047-1057.
- Ritchie, M. E. et al. (2015). limma powers differential expression analyses. Nucleic Acids Research, 43, e47.
- Choi, M. et al. (2014). MSstats: an R package for statistical analysis of quantitative mass spectrometry. Bioinformatics, 30, 2524-2526.
Related
Best Bioinformatics Tools in 2026, Installed and Timed: What I Actually Ran This Month
Oct 14 · 7 min read
ProteomicsIs 1% FDR Really 1%? I Hid 14,567 Arabidopsis Proteins in MaxQuant, FragPipe and DIA-NN Searches
Nov 14 · 14 min read
ProteomicsProteomics CV: What Replicate CVs Look Like in MaxQuant, FragPipe and DIA-NN (Measured on a Known-Ratio Benchmark)
Oct 16 · 9 min read
ProteomicsDIA-NN 2.3 on a Known-Answer Benchmark: How It Compares With MaxQuant and FragPipe (and Why the Comparison Has a Catch)
Oct 13 · 13 min read