Tutorials › Statistical Genetics › The Clumping-and-Thresholding Algorithm

Polygenic Score Construction · Tutorial 701 of 989

The Clumping-and-Thresholding Algorithm

Follow the required data and the two selection stages that turn GWAS results into a weighted polygenic score.

Intermediate 10 min read

What You'll Learn

  • Identify the GWAS summary statistics, target genotypes, and LD reference needed for clumping-and-thresholding
  • Explain how LD-based clumping selects index variants and removes correlated candidates
  • Distinguish LD pruning from filtering by a GWAS p-value threshold
  • Write the score for selected variants using effect-allele dosages and GWAS weights
  • Recognize key assumptions, implementation choices, and common interpretation errors

Why Combine Clumping and Thresholding?

A genome-wide association study (GWAS) can report many variants associated with a phenotype. Some may carry useful predictive information, while others may be correlated with nearby variants through linkage disequilibrium (LD). If correlated variants are all included with their marginal GWAS effects, the score can give repeated weight to overlapping genetic information. Clumping-and-thresholding (C+T) is a simple construction strategy that addresses this by first pruning correlated variants and then filtering the remaining variants by their GWAS p-values.

The method has two distinct decisions. Clumping uses LD to retain a representative variant from a group of correlated candidates. Thresholding keeps only retained variants whose GWAS p-values meet a chosen cutoff. The surviving variants contribute to a weighted sum of effect-allele dosages in each target individual. The method is transparent and straightforward to implement, but it is a heuristic: it does not guarantee that the resulting score is optimal for prediction.

Definition: Clumping-and-thresholding constructs a polygenic score by (1) using LD in a reference sample to prune correlated GWAS variants, typically retaining the variant with the smallest GWAS p-value in each clump; (2) retaining only clumped variants with p-values at or below a prespecified threshold \(P_T\); and (3) summing each target individual's effect-allele dosage multiplied by the corresponding GWAS effect estimate.

Required Data and Notation

C+T requires three kinds of information. First, GWAS summary statistics must identify each variant and give its association p-value and an effect estimate, such as a regression coefficient. The summary statistics also need allele labels so the effect estimate can be matched to the allele counted in the target genotypes. Second, the target sample needs genotype data at the variants that may enter the score. Third, an LD reference sample needs genotypes at candidate variants so pairwise correlations can be estimated. The GWAS, target, and reference data need compatible variant identifiers and allele coding.

For variant \(j\), write its GWAS p-value as \(p_j\), its effect estimate as \(\hat{\beta}_j\), and the target individual's dosage of the GWAS effect allele as \(G_{ij}\). A dosage is the number of copies of that allele, usually 0, 1, or 2 for a diploid genotype; imputed data may use a value between 0 and 2. If \(S(P_T)\) is the set of variants that survive clumping and the p-value threshold, the score for target individual \(i\) is

$$ \operatorname{Score}_i(P_T)=\sum_{j\in S(P_T)}G_{ij}\hat{\beta}_j. $$

This formula assumes that the dosage and weight refer to the same effect allele. When weights are log-odds coefficients, the score is on a log-odds scale before any further model interpretation; with linear-regression coefficients, the score uses the outcome units per dosage unit specified by that GWAS model. The score's scale therefore depends on the phenotype and weight definition.

Before clumping, analysts also specify settings that define which variants can compete and how much LD is considered sufficient for pruning. For example, a procedure may use an LD threshold \(r^2_{\mathrm{clump}}\) and an LD window. The next tutorial addresses how to choose windows and reference panels. Here, treat the settings as fixed inputs to the algorithm, not as universal constants.

The Two Selection Stages

In a common conceptual formulation, clumping is applied to a quality-controlled candidate set. Variants are ranked by GWAS p-value, with the smallest p-value considered first. A variant selected as an index variant forms a clump with other candidates that meet the specified proximity and LD criteria. Those correlated candidates are removed from further consideration, and the procedure continues with the strongest remaining candidate. After pruning, the p-value threshold is applied to the retained variants.

Implementations can combine the stages differently. For instance, software may use p-value settings to limit which variants can become index variants or enter a clump. Because such settings can alter the retained set, a reproducible analysis should record the exact software options and the order in which they are applied. The conceptual distinction remains: LD determines redundancy among candidates, whereas the GWAS p-value cutoff determines which retained associations are eligible for the score.

1
Assemble and align inputs.
Match GWAS variants to target and reference genotypes. Confirm allele labels, effect estimates, p-values, and genotype dosages refer to the intended variants and alleles.
2
Clump by LD.
Rank candidates by p-value. Select an index variant, identify other candidates meeting the chosen LD and window criteria, and prune correlated candidates according to the specified rule.
3
Apply the p-value threshold.
For the chosen \(P_T\), retain clumped variants satisfying \(p_j\leq P_T\). Different thresholds can give different variant sets.
4
Calculate target scores.
For each target individual, multiply each retained effect-allele dosage by its GWAS weight and sum the contributions.

Worked Examples

Worked Example: Checking Whether the Inputs Are Sufficient

Suppose a hypothetical GWAS summary-statistic file has a row for variant V1 with effect allele A, other allele G, \(\hat{\beta}_1=0.12\), and \(p_1=0.004\). Target genotypes give individual T1 an A-allele dosage of 1. The LD reference has genotype data for V1 and other candidate variants. Can these data supply V1's contribution at threshold \(P_T=0.01\)?

First compare the p-value with the threshold: \(0.004\leq0.01\), so V1 passes the p-value filter if it also survives clumping. Its target dosage and GWAS weight are aligned to allele A. The contribution, conditional on V1 being retained, is

$$ G_{\mathrm{T1},1}\hat{\beta}_1=1(0.12)=0.12. $$

The inputs are sufficient to calculate this contribution, but not yet to decide whether V1 survives clumping: that requires LD estimates involving V1 and the other candidates, plus the specified clumping settings. A p-value and effect estimate alone do not provide LD information.

Worked Example: Applying an LD Clumping Rule

Consider three hypothetical candidates in the same specified clumping window. Their GWAS p-values are \(p_A=0.0002\), \(p_B=0.003\), and \(p_C=0.02\). Suppose the fixed clumping rule removes a candidate when its \(r^2\) with an already selected index variant exceeds 0.50. The LD reference gives correlations \(r_{AB}=0.85\) and \(r_{AC}=0.30\).

Variant A has the smallest p-value, so it is selected first as the index. Squaring the correlations gives

$$ r^2_{AB}=(0.85)^2=0.7225,\qquad r^2_{AC}=(0.30)^2=0.0900. $$

Since \(0.7225>0.50\), B is pruned as correlated with A. Since \(0.0900\leq0.50\), C is not pruned by this comparison. The clumped set is therefore A and C. This example illustrates only the LD pruning decision; whether C is included in a particular score still depends on the p-value threshold.

Worked Example: Calculating a Score From Retained Variants

Suppose clumping has retained variants U and V, with hypothetical GWAS results \(p_U=0.006\), \(\hat{\beta}_U=0.10\), \(p_V=0.03\), and \(\hat{\beta}_V=-0.04\). For a score using \(P_T=0.01\), which variants contribute, and what is the score for individual T2 if the effect-allele dosages are \(G_{\mathrm{T2},U}=2\) and \(G_{\mathrm{T2},V}=1\)?

U passes because \(0.006\leq0.01\). V does not pass because \(0.03>0.01\), so V is excluded even though it survived clumping. The selected set is \(S(0.01)=\{U\}\). Therefore,

$$ \operatorname{Score}_{\mathrm{T2}}(0.01) =2(0.10)=0.20. $$

The score is 0.20 in the units implied by the GWAS effect estimate. If the threshold were changed so that V also passed, its contribution would be \(1(-0.04)=-0.04\), giving \(0.20-0.04=0.16\). This arithmetic shows why weights retain their signs: an effect estimate below zero contributes in the opposite direction from a positive estimate.

Why Clumping Helps, and What It Does Not Do

Clumping is motivated by the dependence among genotypes in LD. To see the role of that dependence, let \(G_j\) and \(G_k\) denote two genotype dosages and consider their weighted contribution \(G_j\hat{\beta}_j+G_k\hat{\beta}_k\). The variance of this two-variant sum is

$$ \operatorname{Var}(G_j\hat{\beta}_j+G_k\hat{\beta}_k) =\hat{\beta}_j^2\operatorname{Var}(G_j) +\hat{\beta}_k^2\operatorname{Var}(G_k) +2\hat{\beta}_j\hat{\beta}_k\operatorname{Cov}(G_j,G_k). $$

This follows by expanding the variance of a sum: for random variables \(A\) and \(B\), \(\operatorname{Var}(A+B)=\operatorname{Var}(A)+\operatorname{Var}(B)+2\operatorname{Cov}(A,B)\); multiplying a random variable by a constant multiplies its variance by the square of that constant and its covariance by the product of the constants. When genotypes are correlated, the covariance term is not zero. Including both variants can therefore make their contributions partly redundant, depending on the signs and magnitudes of their weights. Clumping reduces this redundancy by selecting fewer correlated variants.

Pruning is not the same as estimating jointly adjusted effects, and it does not establish that an index variant is causal. The index is selected by a ranking rule, not by proof that it is the biological source of an association. A pruned variant may contain predictive information not fully represented by the index, while a retained variant may have a weak or non-replicating association. C+T trades a simple, interpretable selection rule for the possibility of discarding useful signal.

Assumptions and Interpretation

The procedure depends on several practical conditions. Variant identifiers and allele labels must be aligned across files, and the effect allele used to define \(\hat{\beta}_j\) must match the allele counted in \(G_{ij}\). Otherwise, the sign or magnitude of a contribution can be wrong. The LD reference must provide usable genotypes for candidate variants, and its estimated correlations are used as a proxy for the relevant LD structure. The chosen reference and settings are therefore part of the score definition, not incidental software details.

The GWAS effect estimates are used as weights, but the resulting score is not automatically calibrated as a predicted phenotype. Its predictive performance must be assessed in a suitable target or validation sample. In particular, a p-value cutoff is a selection rule, not a probability that a variant is causal or a guarantee that the selected variant will improve prediction. A score built from a different threshold can contain a different set of variants and have a different scale.

C+T is useful as a transparent baseline and can be evaluated across prespecified p-value thresholds. Its simplicity makes the construction easy to audit: one can report the candidate data, the LD pruning rule, the p-value cutoff, the retained variants, and the weights. The method does not, however, account for all LD structure through a joint model, nor does it shrink the retained GWAS effects as a regularized estimator would.

Common Mistakes

  • Using p-values as score weights. A p-value ranks evidence against a null association; it is not an effect estimate. The score uses genotype dosage multiplied by a compatible GWAS effect estimate.
  • Confusing clumping with thresholding. LD pruning removes correlated candidates according to an LD rule. The p-value threshold selects retained variants according to GWAS evidence. These are separate criteria.
  • Ignoring effect-allele alignment. A dosage counted for the other allele cannot be multiplied by the original effect estimate without recoding. If the dosage is changed to count the opposite allele, the effect estimate's sign must also be changed.
  • Calling the index variant causal. The smallest-p-value variant in a clump is the representative chosen by the algorithm. That choice alone does not identify a causal variant.
  • Treating a chosen threshold as universally correct. A cutoff defines a particular score; it does not establish that its included variants are all predictive or that excluded variants have no effect.
Key takeaway: C+T requires aligned GWAS summary statistics, target genotypes, and an LD reference. It prunes correlated candidates, filters the retained variants by a GWAS p-value cutoff, and sums effect-allele dosages weighted by GWAS effects. The resulting score is a defined candidate predictor, not proof of causality or guaranteed predictive accuracy.

Check Your Understanding

Try these questions before reviewing the tutorial.

  1. What three data sources are needed to construct a C+T score, and what role does each play?
  2. In the stated clumping rule, why might a candidate with a relatively small p-value still be removed?
  3. A retained variant has \(p_j=0.02\). Does it enter a score using \(P_T=0.01\)? Explain the comparison.
  4. If an individual's dosage is 2 and the GWAS effect estimate is \(-0.05\), what is that variant's contribution to the score?
  5. Why does selecting the smallest-p-value variant in a clump not establish that it is causal?
Clinical Biostats