Differential-abundance analysis
Define a design-aware contrast, calculate fold changes and uncertainty, and apply multiple-testing adjustment to an explicit hypothesis family.
Write the contrast before running the test
Differential-abundance analysis estimates how a defined quantitative signal differs between conditions, then assesses uncertainty and multiple testing. It does not establish molecular identity or automatically imply causation. Start with a sentence such as “Estimate treated/control change in normalized protein signal across independent donors.” State the measured entity, sample denominator, reference condition, and target population. Reporting standards place design and preprocessing alongside statistical results. [1]
This Guide turns the principles in experimental design into an analysis checklist. All numbers below are invented teaching examples, not results from a biological study or recommended sample sizes.
Make the table match the independent units
Join abundances to verified metadata: biological origin, condition, pairing, preparation, batch, and injection. Technical replicates are repeated measurements of an existing unit. Summarize them with a justified rule or use a model that represents their correlation; do not count three reinjections as three independent donors. The unit of inference follows sampling and treatment assignment. [2]
For paired samples, preserve donor identifiers and estimate within-donor changes. For independent groups, use a suitable unpaired model. Additional batches or covariates may require a linear or hierarchical model. A design with controls only in batch A and treated samples only in batch B cannot separate condition from batch: adding both labels to software does not make the contrast identifiable.
Freeze a defensible preprocessing plan
Check quantitative usability, interference, and feature-to-molecule aggregation before testing. Record what each row represents; several adducts from one molecule are not independent molecular confirmations. Choose normalization from measurement evidence, not the number of significant results. Define filtering criteria and retain the tested-feature denominator. Filtering on the same apparent group difference later tested can invalidate inference.
Positive intensities are often analyzed on a log2 scale, but transformation does not guarantee normal residuals or constant variance. Inspect model diagnostics. Keep missing values visible and use an explicit missing-data strategy; an arbitrary pseudocount changes low-signal ratios. Do not generate biological p-values by replacing an entirely missing group with identical small constants.
Worked example: estimate a paired effect
| Donor | Control | Treated | Treated − control |
|---|---|---|---|
| A | 10 | 10.5 | 0.5 |
| B | 12 | 13 | 1.0 |
| C | 14 | 15.5 | 1.5 |
| D | 16 | 17 | 1.0 |
The four differences have mean 1 and sample standard deviation sqrt((0.25 + 0 + 0.25 + 0) / 3) ≈ 0.408. The standard error is 0.408 / sqrt(4) ≈ 0.204. Under independent, normally distributed donor differences, an ordinary paired t-test of mean difference zero gives t ≈ 4.899, 3 degrees of freedom, and two-sided unadjusted p ≈ 0.0163.
A model-based 95% confidence interval is 1 ± 3.182 × 0.204 ≈ [0.350, 1.650]. Exponentiating gives a treated/control fold-change estimate of 2^1 = 2, with interval approximately [1.275, 3.137]. This is the ratio of geometric means, equivalently the geometric mean of paired ratios, not generally the ratio of arithmetic means. Reversing the contrast changes log2 fold change to −1 and the fold ratio to 0.5.
The calculation uses four donor differences, not eight independent samples or extra technical injections. Its interval assumes the stated model and is not adjusted for selecting this feature from many tests. Multi-feature methods can borrow information to stabilize variance estimates; that changes the uncertainty calculation and must be reported. The limma documentation explains paired designs, contrasts, and moderated statistics; its expression-data examples are not an MS performance guarantee. [3]
Define what is being tested together
A raw p-value measures how incompatible the data are with a specified null model through its test statistic. It is not the probability that the null is true. Testing many features creates many opportunities for false positives. FDR concerns the expected false-discovery proportion of a procedure, with proportion zero when nothing is rejected. [4]
Define the testing family before selecting hits. Is it all eligible proteins for one planned contrast, or all feature-by-contrast hypotheses supporting a combined claim? Two contrasts across 1,000 features can represent 2,000 hypotheses. Adjustment within each contrast does not automatically control the combined claim. Do not adjust only the already significant rows or redefine families after seeing results. Record excluded, untestable, and successfully tested rows separately.
Worked example: calculate BH-adjusted p-values
In a separate hypothetical family of five tests, sort p-values and label rank i from 1 to m = 5. Calculate m × p(i) / i, then take cumulative minima from the largest rank backward and cap at 1. Restore original row order afterward. R provides this Benjamini–Hochberg adjustment through p.adjust(p, method = "BH"). [5]
| Rank i | Raw p | 5 × p / i | BH-adjusted p |
|---|---|---|---|
| 1 | 0.004 | 0.020 | 0.020 |
| 2 | 0.020 | 0.050 | 0.0417 |
| 3 | 0.025 | 0.0417 | 0.0417 |
| 4 | 0.200 | 0.250 | 0.250 |
| 5 | 0.800 | 0.800 | 0.800 |
The second adjusted value falls to 0.0417 because the third ranked value is smaller after scaling. At a prespecified 0.05 threshold, three tests pass. That does not assign each a 5% error probability. BH requires valid p-values and independence or suitable positive dependence, such as positive regression dependence on a subset (PRDS); arbitrary correlation is not a blanket justification. The more conservative Benjamini–Yekutieli modification covers general dependence under its conditions. [6]
Read the result beyond its threshold
Report effect direction, magnitude, confidence interval, actual sample counts, missingness, raw p-value, adjusted p-value, method, and family size. A nonsignificant result does not establish equivalence, and a small p-value need not imply an important effect. A volcano plot cannot reveal pairing failures or confounding.
An adjusted p-value is method-specific. Storey-style q-values estimate a related FDR-based quantity and commonly estimate the null proportion; they are not automatically interchangeable with BH-adjusted p-values. Neither is an individual posterior probability of being false. [7]
Check your understanding
Does log2 fold change −2 mean negative abundance?
No. With treated/control as the direction, it means a fold ratio of 2^(−2) = 0.25, or one quarter of the reference.
Can BH correction fix p-values computed from pseudoreplicates?
No. Multiple-testing adjustment requires valid underlying tests; it cannot repair incorrect independence or a confounded design.
References & further reading
- Goodacre et al. (2007). Proposed minimum reporting standards for data analysis in metabolomics. Metabolomics 3, 231–241.
MSI reporting recommendations. Publisher text supports recording design, acquisition scheduling, preprocessing, algorithms, validation splits, and blind testing. The batch-confounding example and modern audit checklist are explicitly pedagogical reasoning built on those principles.
- Lazic, Clarke-Williams & Munafò (2018). What exactly is N in cell culture and animal experiments? PLOS Biology 16, e2005282.
Original methodological study defining biological, experimental, and observational units and conditions for genuine replication. DOI: 10.1371/journal.pbio.2005282. Unit hierarchy is applied to independently constructed MS examples; study prevalence figures are not generalized.
- Smyth et al. limma: Linear Models for Microarray and RNA-Seq Data, User’s Guide.
Official guide inspected, revision 19 May 2026, especially paired samples (section 9.4.1), moderated statistics and multiple contrasts (chapter 13). Supports design matrices, contrasts, geometric/log-scale interpretation, and empirical-Bayes variance moderation. Teaching calculations use an ordinary paired t-test, not limma output; gene-expression examples are not MS validation.
- Benjamini & Hochberg (1995). Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. Journal of the Royal Statistical Society, Series B 57, 289–300.
Original definition of FDR as the expectation of the false-discovery proportion, with zero when there are no discoveries. Publisher metadata and abstract verified. The Guide illustrates the definition without prescribing the BH procedure or assuming arbitrary dependence is allowed.
- R stats package. p.adjust: Adjust P-values for Multiple Comparisons.
Official documentation inspected 2026-10-07. Confirms BH/fdr, BY and family-wise error methods and family-size semantics. Both numerical BH examples are independently calculated, with backward cumulative minima and capping at one, not copied software output.
- Benjamini & Yekutieli (2001). The control of the false discovery rate in multiple testing under dependency. Annals of Statistics 29(4), 1165–1188.
Authors’ Tel Aviv University record and full abstract inspected; official R documentation independently confirms BY general-dependence adjustment. Supports BH under suitable positive regression dependence and a distinct conservative modification for general dependence. Direct publisher page yielded no text and author PDF timed out; no claim that arbitrary feature correlation suffices for BH is made.
- Storey & Tibshirani (2003). Statistical significance for genomewide studies. Proceedings of the National Academy of Sciences 100(16), 9440–9445.
Primary full text inspected at PMC170937, including the q-value construction and null-proportion estimation. Used to distinguish Storey-style estimated q-values from BH-adjusted p-values and from individual posterior error probabilities. No genomewide biological findings or performance claims are transferred to MS.