Tutorials › Statistical Genetics › Multiple Testing Across Genes and Cell Types

Single-Cell and Cell-Type Genetics · Tutorial 964 of 989

Multiple Testing Across Genes and Cell Types

Learn to define the scope of a cell-type QTL testing family and apply family-wise error or false-discovery control to its results.

Advanced 12 min read

What You'll Learn

  • Define a testing family across genes, variants, and cell types
  • Distinguish family-wise error rate from false discovery rate
  • Apply Bonferroni, Holm, and Benjamini–Hochberg procedures
  • Calculate adjusted thresholds and interpret rejections in context
  • Recognize when separate cell-type analyses do not provide global error control

Why the Testing Family Matters

A cell-type QTL scan can involve thousands of genes, many genetic variants, and several cell types. Testing each gene–variant association separately creates a collection of hypotheses, not one isolated test. If each test is judged at the same unadjusted significance level, chance findings become increasingly likely as the number of tests grows. Multiple-testing procedures address this problem, but their meaning depends on which tests are treated as one inferential family.

The family is not determined automatically by the data table or software output. It is the set of hypotheses for which the study intends to make a joint set of claims. A scan may define one family across all gene–variant–cell-type combinations, or distinct families for prespecified cell types or other scientifically justified groups. The choice affects the error rate being controlled and must be stated alongside the results.

Definition: A testing family is the specified collection of hypotheses to which a multiple-testing procedure is applied. For a cell-type QTL scan, an individual hypothesis might concern the association between one variant and one gene in one cell type. The family could include all such hypotheses in the scan, or a prespecified subset. The family-wise error rate is \(P(V \geq 1)\), where \(V\) is the number of false rejections in the family. The false discovery rate is \(E[V/\max(R,1)]\), where \(R\) is the total number of rejected hypotheses.

A false rejection is a rejection of a true null hypothesis. Family-wise error rate (FWER) control limits the probability of making even one such rejection in the family. False discovery rate (FDR) control instead limits the expected proportion of false rejections among all rejections, defining the proportion as zero when there are no rejections. FDR is not the probability that a particular reported association is false.

Specifying a Family for Cell-Type QTLs

For a scan testing variant–gene associations separately in each cell type, a natural global family contains every association hypothesis actually tested. If \(G\) genes, \(V\) variants per gene on average, and \(C\) cell types are tested, the family has approximately \(GVC\) hypotheses. The exact count should reflect the analysis: for example, whether variants are tested for every gene or only within defined cis windows, whether some tests are absent, and whether several model terms generate separate hypotheses.

The number of tests is not necessarily the number of rows in a report. A row could summarize an omnibus test across variants, or a single association could appear in multiple model outputs. Define the scientific claim first, then count the hypotheses that support that claim. For example, a claim that a variant is associated with a gene in at least one of six cell types has a different inferential scope from six separate claims about association in each named cell type.

Families may be defined separately by cell type when those analyses are genuinely distinct and the intended conclusions are cell-type-specific. However, applying a procedure at level \(\alpha\) separately in each of \(C\) cell types does not, by itself, control FWER at \(\alpha\) across the union of all cell types. If the scientific conclusion pools findings across cell types, global control or a stated allocation of error across the cell-type families is needed. Similarly, conducting a separate gene-level analysis after inspecting results across all cell types does not erase the earlier search.

Worked Example: Counting a Global Scan Family

Suppose a hypothetical analysis tests 300 genes against 25 variants per gene in each of four prespecified cell types. There is one association hypothesis for every gene–variant–cell-type combination. The global family size is

$$ m = 300 \times 25 \times 4 = 30{,}000. $$

If the intended claim is that any tested association in any of the four cell types is noteworthy, these 30,000 tests belong to one family. A Bonferroni procedure at family-wise level \(\alpha=0.05\) uses the per-test threshold

$$ \frac{\alpha}{m}=\frac{0.05}{30{,}000}=0.000001667. $$

Thus, an association p-value must be no greater than approximately \(1.667 \times 10^{-6}\) to be rejected by this procedure. This conclusion assumes the p-values are valid for their individual null hypotheses; multiple-testing adjustment does not repair invalid individual p-values. If the analysis had instead specified four separate cell-type families of 7,500 tests each, a threshold of \(0.05/7{,}500\) within each family would control FWER within each cell type, but would not guarantee a 0.05 FWER across all four cell types.

Family-Wise Error Control

Bonferroni control is simple and valid under arbitrary dependence among tests, provided each true-null p-value is valid: under its null, \(P(p_i \leq t) \leq t\) for every threshold \(t\) between zero and one. It rejects any hypothesis with \(p_i \leq \alpha/m\). Equivalently, its Bonferroni-adjusted p-value is \(\min(1,mp_i)\). The procedure can be conservative, especially when the tests are strongly correlated, as often occurs among nearby variants or related expression traits.

The guarantee follows directly from the union bound. Let \(I_0\) be the set of true null hypotheses, which is unknown in practice. A false rejection occurs if at least one true-null p-value falls below \(\alpha/m\). Therefore,

$$ P(V \geq 1) = P\left(\bigcup_{i \in I_0}\{p_i \leq \alpha/m\}\right) \leq \sum_{i \in I_0}P(p_i \leq \alpha/m) \leq |I_0|\frac{\alpha}{m} \leq \alpha. $$

The first inequality is the union bound, which does not require independent tests. The next inequality uses p-value validity under each true null, and the last uses \(|I_0|\leq m\). This establishes FWER control at level \(\alpha\).

Holm’s step-down procedure also controls FWER under arbitrary dependence with valid p-values and is never less powerful than ordinary Bonferroni. Sort the \(m\) p-values from smallest to largest. Compare the smallest with \(\alpha/m\), the next with \(\alpha/(m-1)\), and continue. Reject in order until the first comparison that fails; do not reject that hypothesis or any larger p-value. This procedure adapts the subsequent thresholds to how many earlier hypotheses have already passed.

Worked Example: Applying Holm’s Procedure

Consider five hypothetical p-values from one prespecified cell-type family: \(0.001\), \(0.008\), \(0.012\), \(0.030\), and \(0.200\). At \(\alpha=0.05\), the ordered Holm thresholds are \(0.05/5=0.010\), \(0.05/4=0.0125\), \(0.05/3\approx0.0167\), \(0.05/2=0.025\), and \(0.05/1=0.050\).

The first p-value passes because \(0.001\leq0.010\). The second passes because \(0.008\leq0.0125\), and the third passes because \(0.012\leq0.0167\). The fourth fails because \(0.030>0.025\), so the procedure stops. Holm rejects the first three hypotheses and does not reject the last two. The family-wise interpretation is that, under the validity assumptions, this procedure limits the probability of one or more false rejections among these five hypotheses to at most 0.05.

False-Discovery Control

In a large exploratory scan, researchers may prefer to identify a broader set of candidates while controlling the expected fraction of false discoveries among the rejected hypotheses. The Benjamini–Hochberg (BH) procedure controls FDR at a chosen level \(q\) when the p-values are independent, and also under certain positive-dependence conditions commonly expressed as positive regression dependence on the subset of true nulls. Dependence among genetic tests should not be casually assumed to satisfy those conditions. For arbitrary dependence, the Benjamini–Yekutieli procedure provides an FDR-control option, typically with a more stringent threshold.

To apply BH, order the \(m\) p-values as \(p_{(1)}\leq \cdots \leq p_{(m)}\). Find the largest rank \(k\) for which \(p_{(k)}\leq kq/m\), and reject the hypotheses at ranks 1 through \(k\). If no rank meets the inequality, reject none. The threshold increases with rank, allowing more discoveries when several p-values are small together. Unlike Bonferroni and Holm, BH controls the expected false-discovery proportion, not the chance of any false rejection.

Worked Example: Applying Benjamini–Hochberg

Suppose eight hypothetical tests in one cell-type family have ordered p-values \(0.0008\), \(0.004\), \(0.009\), \(0.013\), \(0.021\), \(0.032\), \(0.049\), and \(0.200\). Choose \(q=0.05\). The BH critical value at rank \(i\) is \(iq/m=i(0.05)/8\). For ranks 1 through 8, these values are \(0.00625\), \(0.0125\), \(0.01875\), \(0.0250\), \(0.03125\), \(0.0375\), \(0.04375\), and \(0.0500\).

The p-value at rank 6 passes because \(0.032\leq0.0375\). At rank 7, \(0.049>0.04375\), and at rank 8, \(0.200>0.0500\). The largest passing rank is therefore \(k=6\), so BH rejects the first six hypotheses. Under the procedure’s assumptions, the FDR across this family is controlled at 0.05 in repeated use of the procedure. It is not correct to conclude that exactly 5% of these six findings are false, or that each finding has a 5% probability of being false.

ProcedureError rate controlledTypical interpretation
Bonferroni or HolmFWERLimits the probability of at least one false rejection in the defined family
Benjamini–HochbergFDR, under stated dependence conditionsLimits the expected false-rejection proportion among rejections
Benjamini–YekutieliFDR under arbitrary dependence with valid p-valuesProvides broader dependence protection, usually at a cost in power

Choosing and Reporting the Control Strategy

The choice should follow the intended use of the findings. FWER control is often appropriate when even one false association would prompt a consequential confirmatory claim, or when the family is modest in size. FDR control is commonly useful for broad discovery scans where many findings will be followed up, and some false candidates are acceptable if their expected fraction is constrained. Neither target is universally preferable: the family, error rate, and interpretation must match the scientific claim.

For cell-type QTL results, report enough detail to reconstruct the scope of control. State which genes, variants, cell types, and model-based hypotheses were included; whether control was global or applied to separate families; the method and target level; and which adjusted criterion determined rejection. If cell types were analyzed separately, say so explicitly. A list of associations selected from a global scan should not be described as having global error control if the procedure was applied only within each cell type.

The individual tests must also be suitable for multiple-testing procedures. In particular, their p-values must be calibrated under their null hypotheses. A multiplicity correction changes the rejection rule; it does not correct confounding, model misspecification, or a failure of the test’s assumptions. Likewise, testing only a subset chosen after looking at the same results can change the effective family and invalidate a procedure’s stated guarantee unless that selection is accounted for.

Common Mistakes

  • Using the number of cell types as the whole family size. If each cell type contains many gene–variant tests, those tests also contribute to the family. Count the hypotheses covered by the intended claim.
  • Calling separate within-cell-type control global control. Controlling FWER at 0.05 within each cell type does not imply FWER of 0.05 across all cell types. Use a global procedure or allocate error across families when making a joint claim.
  • Interpreting FDR as a probability for each finding. BH controls an expectation across a family of tests; it does not assign each rejected association a probability of being false.
  • Assuming correlation makes adjustment unnecessary. Correlated tests may affect power and the suitability of a procedure, but dependence does not remove the need to define the family and control its error rate.
Key takeaway: Define the family from the scientific claims before interpreting adjusted results. FWER limits the chance of any false rejection in that family; FDR limits the expected false-discovery proportion. The procedure, assumptions, family scope, and cell-type grouping all belong in the report.

Check Your Understanding

Use the definitions and procedures above to answer the following questions.

  1. A scan tests 400 genes against 15 variants in each of five cell types. If every combination is tested, how many hypotheses are in the global family?
  2. In one sentence, distinguish the quantity controlled by FWER from the quantity controlled by FDR.
  3. Why does applying Holm separately at level 0.05 to each of eight cell-type families not automatically establish global FWER control at 0.05?
  4. For BH with \(m=20\) and \(q=0.05\), what is the critical value at rank 4?
  5. What additional dependence condition is commonly used for BH beyond valid p-values, and what method can provide FDR control under arbitrary dependence?
Clinical Biostats