Tutorials

Multiple testing and FDR for biologists

Why testing thousands of genes inflates false positives, how Benjamini-Hochberg controls the false discovery rate, and how to report adjusted p-values.

A differential-expression table contains one p-value per gene, and an RNA-seq experiment usually tests around twenty thousand genes. If you treat each test as if it were the only one, roughly a thousand genes will pass a raw p-value threshold of 0.05 even when nothing in the experiment has changed. Multiple-testing correction exists to stop that, but the language around it is often vague. This article explains what the false discovery rate is, how the Benjamini-Hochberg procedure controls it, and what the resulting numbers do and do not mean.

The problem in one example

Suppose you test twenty thousand genes and, in truth, none of them differ between conditions. Each test still has a five per cent chance of producing p < 0.05, so about one thousand genes will cross the line. If you report those thousand as findings, you have reported noise with a straight face.

The same arithmetic applies to any large screen: variants in a GWAS, metabolites, taxa or clinical endpoints. The more tests you run, the more false positives you should expect. Correction is the difference between a result and a coincidence.

What a p-value means

A p-value is the probability of observing data at least as extreme as yours, assuming the null hypothesis is true. It is not the probability that the null hypothesis is true, and it is not the probability that your finding is wrong. Those are different quantities, and confusing them leads to bad decisions.

A small p-value says the data are unlikely under the null. It says nothing about how large the effect is, whether it matters biologically, or how many other tests you ran. The last point is precisely what correction addresses.

Family-wise error: Bonferroni and Holm

The strictest approach controls the family-wise error rate, the probability of making at least one false rejection across the whole family of tests. You set a desired rate, usually 0.05, and divide it by the number of tests. With twenty thousand genes, each test must reach p < 0.05 / 20,000, which is 2.5 × 10⁻⁶.

Bonferroni is simple and needs almost no assumptions, but it is conservative, especially when many tests are correlated, as genes in the same pathway usually are. The Holm procedure is a step-down version that is uniformly more powerful while still controlling the family-wise error rate, and it is a sensible default when any false positive would be costly.

The false discovery rate

Most discovery work does not need to avoid every false positive. It needs to keep the proportion of false positives among the reported findings under control. That is the false discovery rate: the expected fraction of rejections that are actually null.

If you call 200 genes at an FDR of 5 per cent, you should expect about 10 of them to be false discoveries. You do not know which ten. That is a different promise from Bonferroni, and for exploratory screens it is usually the more useful one.

Benjamini-Hochberg in practice

The Benjamini-Hochberg procedure works like this:

  1. Rank the p-values from smallest to largest.
  2. For each rank i out of m tests, compare the p-value with i / m × α.
  3. Find the largest rank where the p-value is below that line, and declare every test up to that rank significant.

The adjusted p-value reported by most tools is the smallest FDR at which that test would be called. This is why an adjusted p-value can be larger than 1 in principle and is capped at 1 in practice, and why the adjusted values are not simply the raw values multiplied by the number of tests.

The procedure controls the FDR when the tests are independent or positively dependent, which covers most gene-expression settings. For arbitrary dependence, the Benjamini-Yekutieli variant controls the FDR under any dependency structure at the cost of being more conservative.

Adjusted p-values and q-values

An adjusted p-value answers: if I set my threshold here, what is the smallest FDR at which this test is still called? Reporting adjusted p-values is the cleanest way to present a screen, because the reader can apply any threshold they like.

A q-value is a related but distinct quantity. It estimates the FDR associated with calling a particular test significant, using an estimate of the proportion of true null hypotheses in the dataset. When many genes are truly differentially expressed, the q-value approach can gain power over Benjamini-Hochberg. The difference is modest in most RNA-seq datasets, and the method should be stated rather than assumed.

Neither number is the probability that a particular gene is a false discovery. That probability cannot be computed from the p-value alone, because it depends on how many true effects exist and on their effect sizes.

Choosing a threshold

There is no universal cut-off. A few conventions are common:

ContextTypical approach
Exploratory differential expressionBenjamini-Hochberg at 0.05, sometimes 0.1 for hypothesis generation
Confirmatory gene listBenjamini-Hochberg at 0.05 plus a fold-change threshold
GWASGenome-wide significance around 5 × 10⁻⁸, a family-wise convention
Clinical or regulatory endpointsFamily-wise control, often Holm or Bonferroni
Enrichment analysisCorrect within the set of pathways tested, and say which set

A fold-change threshold is not a multiple-testing correction. It filters for effect size, which is a separate and useful thing, but it does not fix the false-positive problem. Report both.

Common mistakes

Reporting raw p-values in a screen. If the methods say twenty thousand genes were tested, the results need adjusted values, or an explicit statement that they are unadjusted and exploratory.

Mixing thresholds. Calling genes at adjusted p < 0.05 and then describing them with raw p-values in the text is inconsistent, and reviewers notice.

Filtering before correction without saying so. DESeq2 applies independent filtering, which removes low-count genes before correction and can increase power. That is legitimate, but the number of tests used for correction should be reported.

Correcting when no correction is needed. A single pre-specified hypothesis does not require a multiple-testing correction. Applying one anyway costs power for no benefit.

Treating FDR as a per-gene error rate. An FDR of 5 per cent does not mean each gene has a 5 per cent chance of being wrong. It describes the list, not the individual entries.

Forgetting the other screens in the project. If you test three cell lines, four time points and two tissues, the family of tests is larger than any single table suggests. Decide what counts as a family before the analysis.

Reporting it

State the number of tests, the correction method, the threshold and whether any filtering happened before correction. A sentence such as "DESeq2 was run on all genes passing independent filtering; p-values were adjusted with Benjamini-Hochberg and genes with adjusted p < 0.05 were reported" tells a reader everything needed to reproduce the decision.

If you use a different method, name it and cite it. If you report both raw and adjusted values, say which one the conclusions rest on.

Key points

  • Testing thousands of features at p < 0.05 produces false positives even under a global null.
  • The family-wise error rate controls the chance of any false positive; Bonferroni and Holm do this.
  • The false discovery rate controls the expected proportion of false positives among reported findings.
  • Benjamini-Hochberg is the standard FDR procedure and assumes independence or positive dependence.
  • Benjamini-Yekutieli controls FDR under arbitrary dependence but is more conservative.
  • An adjusted p-value is the smallest FDR at which a test is called; a q-value additionally estimates the null proportion.
  • FDR describes a list, not the probability that an individual gene is wrong.
  • Report the number of tests, the method, the threshold and any pre-filtering.

When to ask for help

If two analyses of the same data give different gene lists and you suspect the correction or filtering is responsible, an analyst can reproduce both and show where they diverge. You can order an analysis or discuss the design through our RNA-seq analysis service. The article on counts, TPM and FPKM explains which values should enter the test in the first place, and the amplicon marker guide covers the related problem of testing many taxa at once.

Sources

When to ask for help. If your data or design do not fit a tutorial, order an analysis and we will reply with a fixed price.

Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.