Tutorials › Statistical Genetics › Multiple Testing Across Variants And Molecular Traits

Molecular QTL Mapping · Tutorial 903 of 989

Multiple Testing Across Variants And Molecular Traits

Set a defensible testing family, apply false-discovery procedures, and interpret gene-level and study-wide error rates and q-values under dependence.

Advanced 14 min read

What You'll Learn

  • Define the hypothesis family for variant–molecular-trait analyses.
  • Apply the Benjamini–Hochberg procedure and calculate adjusted p-values.
  • State the dependence conditions required for false discovery rate control.
  • Distinguish gene-level false discovery rate from study-wide error rates.
  • Interpret estimated q-values without treating them as probabilities that individual discoveries are false.
  • Recognize when arbitrary-dependence procedures or permutation calibration are needed.

Why the Testing Family Matters

A molecular QTL analysis can test thousands of variants against many molecular traits. A small p-value is evidence against one test's null hypothesis, but it does not by itself say how many of the reported findings are false. That depends on the family of hypotheses being considered and on the error rate the analysis is designed to control. For example, adjusting tests separately for each gene addresses a different error question from adjusting all variant–trait tests across the study.

The key challenge is not simply that the tests are numerous. Tests may be dependent because variants are in linkage disequilibrium, molecular traits are correlated, or tests reuse the same participants and measurements. A multiple-testing procedure must therefore be chosen and described in relation to both the family of claims and the dependence conditions it requires.

Definition: For a specified family of \(m\) hypotheses, let \(R\) be the number rejected and \(V\) the number of rejected hypotheses that are in fact null. The false discovery proportion is \(V/\max(R,1)\). The false discovery rate (FDR) is its expectation, \(E[V/\max(R,1)]\). The family is the complete set of hypotheses to which this error-rate claim applies.

The FDR is not the probability that any false discovery occurs; that is the family-wise error rate, \(P(V\geq 1)\). When every hypothesis in a family is null, FDR equals the probability of at least one rejection, because any nonzero number of rejections then consists entirely of false discoveries. When some hypotheses are non-null, FDR instead averages the fraction of rejected hypotheses that are false, with a value of zero when there are no rejections.

Benjamini–Hochberg Across a Defined Family

The Benjamini–Hochberg (BH) procedure controls FDR by comparing ordered p-values with ordered thresholds. Let \(p_1,\ldots,p_m\) be p-values for the specified family, and order them as \(p_{(1)}\leq \cdots \leq p_{(m)}\). At target level \(\alpha\), find the largest index \(k\) for which \(p_{(k)}\leq k\alpha/m\). If such an index exists, reject the hypotheses corresponding to \(p_{(1)},\ldots,p_{(k)}\). If none exists, reject none. Each p-value must be valid under its null: in particular, a null p-value is super-uniform, meaning \(P(p_i\leq u)\leq u\) for every \(0\leq u\leq1\).

$$ k=\max\left\{i:p_{(i)}\leq \frac{i\alpha}{m}\right\}, \qquad \text{reject } H_{(1)},\ldots,H_{(k)}. $$

The BH guarantee depends on the joint behavior of the p-values, not only on each p-value's marginal validity. A standard sufficient condition is that all p-values are mutually independent and the true-null p-values are valid. Under that condition, BH controls FDR at no more than \((m_0/m)\alpha\), where \(m_0\) is the number of true null hypotheses. More generally, a standard sufficient dependence condition is positive regression dependence on the subset of true nulls (PRDS), together with valid true-null p-values. Merely saying that the true-null p-values are mutually independent is not enough: a true-null p-value may still be dependent on the remaining p-values, including non-null p-values, in a way that invalidates the usual bound.

Theorem: If all \(m\) p-values are mutually independent and every true-null p-value is super-uniform, the BH procedure at level \(\alpha\) has \(FDR\leq(m_0/m)\alpha\leq\alpha\). BH also controls FDR under suitable positive dependence, including PRDS on the true-null subset. Under arbitrary dependence, this guarantee does not generally follow.

A short argument explains why the independence condition must cover the relationship between null and non-null p-values. For a true-null test \(i\), condition on all the other p-values. Under mutual independence, its p-value remains super-uniform after conditioning. The BH step-up rule implies that the expected contribution of this test to the false discovery proportion is at most \(\alpha/m\). Summing that bound over the \(m_0\) true nulls gives the theorem.

$$ E\!\left[\frac{V}{\max(R,1)}\right] =\sum_{i\in\mathcal{H}_0}E\!\left[\frac{I(i\text{ is rejected})}{\max(R,1)}\right] \leq \sum_{i\in\mathcal{H}_0}\frac{\alpha}{m} =\frac{m_0}{m}\alpha . $$

The conditional step is where independence matters: it lets the null p-value retain its super-uniform distribution given the others, while the rejection threshold depends on the whole set of p-values. Without that condition or another suitable dependence condition, the argument does not establish the stated FDR bound. For valid p-values under arbitrary dependence, the Benjamini–Yekutieli procedure uses the more conservative level \(\alpha/H_m\) in the BH thresholds, where \(H_m=\sum_{j=1}^{m}1/j\). This provides FDR control without requiring independence, though often at a substantial cost in power.

Worked Example: Applying BH to Eight Variant–Trait Tests

Suppose a hypothetical analysis tests eight specified variant–trait hypotheses for one molecular trait. The ordered p-values are \(0.001, 0.006, 0.012, 0.018, 0.040, 0.110, 0.400,\) and \(0.800\). Assume each p-value is valid, and assume mutual independence for this example. Find the BH rejections at \(\alpha=0.05\).

Here \(m=8\), so the thresholds at ranks 1 through 8 are \(i(0.05/8)\): \(0.00625, 0.01250, 0.01875, 0.02500, 0.03125, 0.03750, 0.04375,\) and \(0.05000\). At rank 4, \(0.018\leq0.025\); at rank 5, \(0.040>0.03125\). No later rank satisfies its threshold. Thus \(k=4\), and BH rejects the first four hypotheses. The procedure controls the FDR for this eight-test family at no more than \(0.05\) under the stated independence and validity assumptions; it does not establish that each rejected association has a 5% probability of being false.

Gene-Level and Study-Wide Error Rates

A testing family should match the scope of the scientific claim. In cis-QTL analyses, one possible family consists of all variant–trait tests for one gene or molecular feature. Another consists of all such tests across every gene and feature in the study. Adjusting separately within each gene can control FDR within each gene's family under the procedure's assumptions, but does not generally control FDR or family-wise error across all genes.

A second route is to make one gene-level hypothesis per gene, such as “this gene has at least one cis-QTL association.” The p-value for that hypothesis must be calibrated for the search across variants for that gene. A raw minimum p-value is not generally a valid gene-level p-value: even if every individual p-value is valid, searching many variants makes the minimum small more often under the gene-level null. Permutation calibration or another valid method can account for that within-gene search. Once calibrated gene-level p-values are available, a multiple-testing procedure can be applied across genes. A gene-level rejection supports a claim about the gene, but does not by itself identify which variant is responsible.

Analysis familyClaim being testedWhat the error-rate statement covers
Variant–trait tests within one geneWhich variants are associated with this feature?Discoveries in that gene's specified family
Calibrated gene-level tests across genesWhich genes have at least one association?Gene-level rejections across the study
All variant–trait tests across the studyWhich specific pairs are associated?Rejections across the complete study-wide family

Worked Example: Per-Gene Control Does Not Imply Study-Wide Control

Consider a hypothetical study of 20 genes. Suppose each gene has a separate family of 100 variant tests, and the investigators apply BH at \(\alpha=0.05\) within every gene. Assume, just for this illustration, that all hypotheses are null and that the results from the 20 gene families are independent. For each gene, its FDR is then the probability of at least one rejection, and the stated per-gene guarantee bounds that probability by \(0.05\).

The probability of no rejection in any one gene is at least \(1-0.05=0.95\). Under the illustrative independence assumption, the probability of no rejection in all 20 genes is at least \(0.95^{20}\). Consequently, the probability of at least one false rejection anywhere in the study can be as high as \(1-0.95^{20}\approx0.6415\). This calculation is a family-wise error illustration under the stated assumptions; it is not a general formula for study-wide FDR under arbitrary dependence. It shows why a per-gene guarantee cannot be reported as a study-wide guarantee.

If the study's claim concerns discoveries across all 2,000 variant–gene tests, the family should include all 2,000 tests and the chosen procedure must address their dependence. Alternatively, if the claim concerns which genes have any association, first form valid gene-level p-values that account for each gene's internal variant search, then adjust across the 20 genes. These procedures answer different questions and may yield different discoveries.

Adjusted p-Values and q-Values

A BH-adjusted p-value summarizes the smallest FDR level at which a hypothesis would be rejected by the BH procedure, subject to the procedure's assumptions. For ordered p-values, the adjusted values are calculated from the upper ranks and made nondecreasing down the ordered list. They are often called BH q-values in software, but that name can be confusing: an adjusted p-value is not the probability that a particular reported association is false.

$$ p^{\mathrm{BH}}_{(i)} =\min\left(1,\min_{j\geq i}\frac{m}{j}p_{(j)}\right). $$

Worked Example: Reading a BH-Adjusted p-Value

Use the eight ordered p-values from the earlier example. At ranks 4 and 5, the BH-adjusted values before taking the running minimum are \(8(0.018)/4=0.036\) and \(8(0.040)/5=0.064\). At rank 3, the corresponding value is \(8(0.012)/3=0.032\), which is smaller than \(0.036\). At rank 2 it is \(8(0.006)/2=0.024\), and at rank 1 it is \(8(0.001)/1=0.008\). Taking the minimum over each rank and all higher ranks gives adjusted values \(0.008, 0.024, 0.032, 0.036, 0.064, 0.1467, 0.4571,\) and \(0.8000\).

The fourth test has BH-adjusted p-value \(0.036\), so it is rejected at level \(0.05\) in this family. This is a procedure-based threshold interpretation: the result passes the BH decision rule at that level. It is not a statement that there is a 3.6% chance the fourth association is false.

A Storey-style q-value is based on an estimate of the FDR at a p-value threshold. For a threshold \(t\), let \(R(t)\) be the number of observed p-values at or below \(t\). If the null p-values are uniform, the expected number of null p-values at or below \(t\), for a fixed \(t\), is \(m_0t\). Storey's approach estimates the proportion of true nulls, \(\pi_0=m_0/m\), and uses that estimate to estimate FDR at a threshold. A q-value for a test is the minimum estimated FDR over thresholds at least as large as that test's p-value.

$$ \widehat{\mathrm{FDR}}(t) =\min\left(1,\frac{\widehat{\pi}_0\,m\,t}{R(t)}\right) \quad\text{when }R(t)>0, \qquad q_i=\min_{t\geq p_i}\widehat{\mathrm{FDR}}(t). $$

One common estimate of \(\pi_0\) uses a tuning value \(\lambda\) and the proportion of p-values larger than \(\lambda\): \(\widehat{\pi}_0(\lambda)=\#\{p_i>\lambda\}/[m(1-\lambda)]\), usually constrained to the interval from zero to one. This estimate can be variable, especially in small families, and the resulting q-values are estimates rather than automatic finite-sample guarantees. Dependence among tests also affects their joint behavior and the uncertainty of data-driven estimates. Valid marginal null p-values give an expected null count no greater than \(m_0t\) at a fixed threshold by linearity of expectation, without independence; however, that fact alone does not make every estimated q-value procedure control FDR under arbitrary dependence. The dependence conditions, estimator, and family must be considered when making a control claim.

Worked Example: Estimating a Threshold q-Value

For a small hypothetical family of 10 tests, suppose the ordered p-values are \(0.001, 0.004, 0.010, 0.020, 0.030, 0.080, 0.150, 0.400, 0.700,\) and \(0.900\). Using \(\lambda=0.5\), two p-values exceed \(\lambda\), so the estimate is \(\widehat{\pi}_0=2/[10(1-0.5)]=0.4\). At threshold \(t=0.020\), four p-values are at or below the threshold, so

$$ \widehat{\mathrm{FDR}}(0.020) =\frac{0.4(10)(0.020)}{4}=0.020. $$

The q-value for the test with p-value \(0.020\) is the minimum estimated FDR over thresholds at least \(0.020\). At the observed thresholds \(0.020, 0.030, 0.080, 0.150, 0.400, 0.700,\) and \(0.900\), the estimates are \(0.020, 0.024, 0.0533, 0.0857, 0.200, 0.3111,\) and \(0.360\), respectively. The minimum is \(0.020\), so its estimated q-value is \(0.020\). With only 10 tests, the estimate of \(\pi_0\) is unstable; the arithmetic illustrates the definition, not a claim that this small-sample q-value guarantees a 2% FDR.

Dependence, Reporting, and Common Pitfalls

In QTL scans, positive dependence is plausible: nearby variants can have correlated genotypes, and molecular traits can share biological or technical variation. Dependence does not make a valid marginal p-value invalid, but it can change the performance of a multiple-testing procedure. BH is justified under mutual independence or suitable positive dependence such as PRDS, not merely because the tests are numerous or the null p-values are individually valid. If arbitrary dependence is the intended possibility, a procedure with a corresponding guarantee, such as Benjamini–Yekutieli, is more defensible. Permutation-based calibration can also be useful when it is designed to preserve relevant dependence and match the hypothesis family; it does not remove the need to state what claims the adjustment covers.

A frequent mistake is to say, “BH was applied at 5%, so each selected variant–trait association has at most a 5% probability of being false.” This confuses a repeated-analysis average with a probability attached to one selected result. The correction is to say that, under the stated conditions and for the defined family, the procedure controls the expected proportion of false rejections among all rejections at no more than the target level. Another common mistake is to adjust within each gene and describe the result as study-wide control. The correction is to report the within-gene family explicitly, or to define a study-wide family and adjust across it.

Key takeaway: State the family, the error rate, and the dependence assumptions together. Gene-level and study-wide adjustments answer different questions; q-values summarize estimated threshold-level FDR and are not posterior probabilities that individual findings are false.

Check Your Understanding

Answer each question by naming the relevant family or assumption.

  1. For 600 variant–trait tests across 30 genes, what does an FDR guarantee from separate within-gene BH analyses cover, and what does it not automatically cover?
  2. What dependence condition is sufficient for the standard BH FDR bound in addition to valid true-null p-values?
  3. Why is the minimum of many valid variant-level p-values not automatically a valid gene-level p-value?
  4. In what sense is a BH-adjusted p-value different from the probability that a particular association is false?
  5. What change does the Benjamini–Yekutieli procedure make to BH thresholds, and what dependence setting motivates it?
Clinical Biostats