Tutorials › High-Dimensional Genomic Data Analysis › Conditional And Fine-Mapping-Based Colocalization

Colocalization and Integration With Expression Data · Tutorial 750 of 795

Conditional And Fine-Mapping-Based Colocalization

Compare conditioning on associated variants with signal-level fine-mapping to assess whether distinct genetic signals are shared across traits.

Advanced 12 min read

What You'll Learn

  • Explain how conditioning estimates associations that remain after accounting for selected variants.
  • Distinguish conditional-analysis outputs from fine-mapping posterior probabilities and credible sets.
  • Calculate a conditional genetic effect in a two-variant example.
  • Interpret a signal-level comparison of shared and distinct-variant hypotheses.
  • Identify how LD, missing variants, and model choices can undermine either strategy.
  • Choose and report a separation strategy without treating credible-set overlap as proof of colocalization.

Why separate signals before colocalization?

At a locus, a trait can be associated with more than one causal variant. If one signal affects a phenotype and another affects gene expression, a single-signal colocalization analysis may mix their evidence: it can mistake a shared signal plus a distinct signal for one ambiguous association pattern. The central task here is to separate the signals in each trait, then compare the resulting signal-specific evidence for sharing.

Two broad strategies are useful. Conditional analysis adjusts association estimates for one or more selected variants, often in a sequence. Fine-mapping-based analysis uses a model of multiple causal variants to estimate which variants, or signal-specific variant configurations, are supported by the data. Both can prepare inputs for signal-level colocalization, but they answer different questions and rely on different assumptions.

Definition: A signal is an association pattern attributed by a statistical model to a causal variant or component of genetic effects in a locus. A conditional signal is defined relative to the variants conditioned on; a fine-mapped signal is defined by the model’s decomposition of the locus into effects. These labels are not automatically interchangeable across methods or traits.

Colocalization asks whether the association signals for two traits are consistent with a shared causal variant rather than distinct causal variants. Here, the focus is how to obtain and compare signal-specific evidence when either trait may have multiple signals. Signal separation does not itself establish sharing, and a shared genomic position does not by itself establish a shared causal variant.

Conditional analysis: adjust for selected variants

In conditional analysis, association for a candidate variant is tested after adjusting for one or more other variants. With individual-level data, this is ordinary regression including the conditioning genotypes as covariates. With summary statistics, conditional effects can be reconstructed using a linkage disequilibrium (LD) correlation matrix, provided the summary statistics and LD information are compatible.

For a simple two-variant illustration, suppose genotypes \(X_1\) and \(X_2\) are standardized to mean zero and variance one, their correlation is \(r\), and the phenotype model is \(Y=\beta_1X_1+\beta_2X_2+\epsilon\), with errors uncorrelated with both genotypes. The marginal regression coefficients are not generally the two model coefficients: each can reflect the other variant’s effect through LD. In this setting, the conditional coefficient for \(X_2\) after adjusting for \(X_1\) is:

$$ \hat{\beta}_{2\mid 1} = \frac{\hat{\beta}_{2,\mathrm{marg}}-r\hat{\beta}_{1,\mathrm{marg}}}{1-r^2} $$

The denominator accounts for the remaining variance in \(X_2\) after removing its linear association with \(X_1\). In larger analyses the corresponding operation uses the LD matrix for all included variants, and uncertainty must also be calculated for the conditional estimate. A conditional test produces an adjusted effect estimate and uncertainty, or an adjusted test statistic and p-value. It does not, by itself, produce a posterior probability that a variant is causal.

Worked Example: Recovering a Conditional Effect

Suppose a hypothetical locus has two standardized variants with correlation \(r=0.60\). The marginal regression coefficients for a standardized phenotype are \(0.29\) for variant 1 and \(0.27\) for variant 2. Calculate the coefficient for variant 2 conditional on variant 1.

Assumptions for this calculation. The two-variant model is adequate, the genotypes and phenotype use the stated standardization, and the correlation \(r\) matches the analyzed data. This calculation concerns point estimates only; it does not supply a standard error or a significance test.

Substitute the values into the two-variant formula:

$$ \hat{\beta}_{2\mid 1} = \frac{0.27-(0.60)(0.29)}{1-(0.60)^2} = \frac{0.27-0.174}{0.64} = \frac{0.096}{0.64} = 0.150 $$

After adjusting for variant 1, the estimated coefficient for variant 2 is \(0.150\) standardized phenotype units per one standard deviation of its genotype. The marginal coefficient \(0.27\) is larger because it includes association attributable to correlation with variant 1. In a real analysis, the conditional standard error and test would also be needed to judge the strength of the remaining evidence.

A sequential procedure may identify a lead variant, condition on it, and search the residual association pattern for another signal. This can be efficient and interpretable when the signals are well separated and the conditioning variants are reliable. But a lead variant is a selected proxy, not necessarily the causal variant. If it only imperfectly tags the causal allele, conditioning on it may leave residual association from that same signal; conditioning on an inappropriate or weakly supported variant can also distort the residual pattern.

Fine-mapping-based separation

Fine-mapping models use the association evidence and LD to distribute support across candidate causal variants. A multi-signal model allows more than one causal effect in the locus, rather than forcing all association into a single variant. For each modeled signal, a method may report posterior inclusion probabilities (PIPs), a credible set, or other signal-level posterior summaries. A credible set is a collection of variants intended to contain the causal variant for a particular signal at a stated posterior coverage under the model; it is not a list of equally likely variants, nor a guarantee that the true variant is included.

Fine-mapping-based colocalization can compare the signal-specific variant support for the two traits. In a simple signal-pair formulation, let \(BF_{Ai}\) and \(BF_{Bi}\) denote evidence for variant \(i\) as the causal variant for the respective signals, and let \(\pi_i\) be the prior probability assigned to variant \(i\) within a signal. Under a shared-variant hypothesis \(H_4\), the two traits use the same variant; under a distinct-variant hypothesis \(H_3\), they use different variants. Their evidence, up to the prior mass assigned to each hypothesis, has the form:

$$ L_4=\sum_i \pi_i BF_{Ai}BF_{Bi}, \qquad L_3=\sum_{i\ne j}\pi_i\pi_j BF_{Ai}BF_{Bj} $$

This simplified expression assumes one causal variant per signal and the stated prior structure. Multi-signal implementations may use richer models, but the key idea remains: compare evidence for the same variant against evidence for distinct variants. Simply observing that two credible sets overlap is not this comparison. The overlap discards information about how support is distributed within each set and does not account for the hypothesis priors.

Worked Example: Comparing Shared and Distinct Signal Evidence

Consider a hypothetical comparison restricted to two candidate variants, with equal within-signal prior probabilities \(\pi_1=\pi_2=0.5\). The evidence values for one signal in each trait are \(BF_{A1}=20\), \(BF_{A2}=2\), \(BF_{B1}=18\), and \(BF_{B2}=16\). Suppose the prior masses for the shared and distinct hypotheses are \(P(H_4)=0.01\) and \(P(H_3)=0.04\). Calculate the posterior probability of \(H_4\) conditional on these two hypotheses only.

For the shared hypothesis, both traits use variant 1 or both use variant 2:

$$ L_4=(0.5)(20)(18)+(0.5)(2)(16)=180+16=196 $$

For the distinct hypothesis, the ordered possibilities are trait A using variant 1 while trait B uses variant 2, or the reverse:

$$ L_3=(0.5)(0.5)(20)(16)+(0.5)(0.5)(2)(18)=80+9=89 $$

Weight each evidence value by its hypothesis prior mass. The posterior probability, restricted to \(H_3\) and \(H_4\), is:

$$ P(H_4\mid H_3\text{ or }H_4,\text{ data}) = \frac{(0.01)(196)}{(0.01)(196)+(0.04)(89)} = \frac{1.96}{5.52} \approx 0.355 $$

In this restricted comparison, the posterior probability of a shared variant is about \(35.5\%\). This is not a full colocalization posterior across all hypotheses, and it depends on the specified evidence values and priors. The example shows why evidence at both variants matters: the high support for a shared variant 1 is weighed against the support for distinct variants.

What the two strategies assume and report

Neither strategy is assumption-free. Both need compatible trait definitions, genome build, variant identifiers, and effect-allele alignment. Both depend on LD information that represents the analyzed population and variant set well enough for the intended analysis. Differences in ancestry, imputation, variant coverage, or LD estimation can change the apparent number and strength of signals. If the traits’ association estimates are not comparable, signal separation cannot repair the underlying mismatch.

FeatureConditional analysisFine-mapping-based analysis
Core operationAdjust association tests for selected variant(s)Model variant support, often for multiple signals, using LD and association evidence
Typical outputConditional effects, standard errors or test statistics, and residual associationSignal-level PIPs, credible sets, or posterior evidence for shared versus distinct variants
Key dependenceChoice and accuracy of conditioning variants; valid conditional calculationVariant coverage, LD, priors, and the model’s signal structure
Characteristic weaknessResidual signal may reflect imperfect conditioning or an omitted signalPosterior support may be diffuse or sensitive to model and prior choices

Conditional analysis is often attractive when individual-level data permit direct regression, or when a well-supported conditioning set is available and the goal is to test whether association remains after adjustment. Fine-mapping-based methods are useful when uncertainty about which variants generate each signal is central and when signal-specific posterior summaries are needed. They are not competing answers to exactly the same question: conditioning asks what association remains after adjustment; fine-mapping asks how the data and model distribute causal-variant support.

In either approach, a signal-specific comparison must match the signals being compared. If a locus has two GWAS signals and one expression signal, for example, each plausible signal pair should be considered rather than treating the locus as one undifferentiated association. Report which signals were paired, how they were separated, and the assumptions and inputs that define the reported comparison.

Derivation and an LD failure mode

The two-variant conditional formula follows from residualizing \(X_2\) against \(X_1\). The residual genotype is \(X_2-rX_1\), whose variance is \(1-r^2\). Its covariance with \(Y\) is the marginal covariance of \(X_2\) with \(Y\) minus \(r\) times the marginal covariance of \(X_1\) with \(Y\). Dividing that covariance by the residual variance gives the coefficient of \(X_2\) in a regression that also includes \(X_1\):

$$ \operatorname{Var}(X_2-rX_1)=1-r^2, \qquad \operatorname{Cov}(X_2-rX_1,Y) = \hat{\beta}_{2,\mathrm{marg}}-r\hat{\beta}_{1,\mathrm{marg}} $$
$$ \hat{\beta}_{2\mid 1} = \frac{\operatorname{Cov}(X_2-rX_1,Y)} {\operatorname{Var}(X_2-rX_1)} $$

This also exposes a diagnostic: as \(|r|\) approaches one, little genotype variation remains to distinguish the variants. Conditional estimates become unstable, and small errors in LD or marginal estimates can cause substantial changes. Fine-mapping faces a related identification problem: highly correlated variants can have similar likelihoods, so posterior support may be spread across them. A method can represent uncertainty across correlated variants without resolving which one is causal.

Worked Example: Near-Perfect LD and Unstable Separation

In a hypothetical locus, two standardized variants have correlation \(r=0.98\). Calculate the residual genotype variance after conditioning one variant on the other, and the standard-error inflation relative to a genotype with no correlation to the conditioning variant, assuming the same residual variance for the phenotype.

The residual genotype variance is:

$$ 1-r^2=1-(0.98)^2=1-0.9604=0.0396 $$

Because regression standard error is inversely proportional to the square root of the predictor variation (with the phenotype residual variance held fixed), its inflation factor is:

$$ \frac{1}{\sqrt{1-r^2}} = \frac{1}{\sqrt{0.0396}} \approx 5.025 $$

Thus the conditional estimate has about five times the standard error it would have with an uncorrelated predictor under these simplified conditions. The arithmetic does not prove that either method fails in every high-LD region. It shows why a conditional test may lose precision and why fine-mapping may retain posterior ambiguity between these variants. Reporting only a selected lead variant would conceal that uncertainty.

Diagnostics, limitations, and common mistakes

Useful checks are specific to the separation strategy. For conditional analysis, inspect residual association after each conditioning step, check that the conditioning variants are supported and correctly aligned, and verify that the LD matrix comes from an appropriate population and variant set. A residual peak may indicate another signal, but it may also arise because the conditioning variant is an imperfect proxy or because the LD calculation is inaccurate. Sequential selection can be sensitive to the order of entry and to the threshold used to declare another signal.

For fine-mapping, inspect the number of modeled signals, signal-specific PIPs and credible sets, and sensitivity to reasonable prior or model choices. Diffuse posterior support is a result, not a reason to report only the top variant. Check that the variants contributing to the comparison are observed or adequately imputed in both traits and represented in the LD information. Fine-mapping cannot recover a causal variant absent from the analyzed candidate set, and a misspecified number of signals can merge distinct effects or divide one effect into unstable components.

A common mistake is to conclude, “The credible sets overlap, so the traits colocalize.” Overlap says only that some variants appear in both sets; it ignores the relative evidence for the variants and does not compare shared against distinct causal configurations. The correction is to use a signal-level colocalization model or another explicit comparison of shared-variant and distinct-variant evidence, and report uncertainty and priors.

A second mistake is to treat conditioning on a lead variant as if it removed a causal signal exactly. It removes the component represented by that conditioning genotype under the model. When LD is imperfect, or the conditioning set is misspecified, residual association can remain. Conversely, conditioning on correlated variants can inflate uncertainty and obscure a real second signal. Neither strategy establishes that a shared genetic signal mediates a relationship between traits; the conclusion is about statistical evidence for shared genetic association, not a causal pathway between phenotypes.

Key takeaway: Conditional analysis separates association by adjustment for selected variants; fine-mapping-based analysis separates it by modeling uncertainty over causal variants and signals. Choose and interpret the method in light of its assumptions, and base colocalization on signal-specific evidence rather than lead-variant identity or credible-set overlap alone.

Check Your Understanding

Try each question, then check the solutions below.

  1. For standardized variants with \(r=0.5\), marginal coefficients \(0.20\) and \(0.18\), calculate the coefficient for variant 2 conditional on variant 1.
  2. Why does overlap between two credible sets not by itself establish a shared causal variant?
  3. What does a large conditional standard error in a high-LD region indicate about the available data?
  4. Name one assumption needed for summary-statistic conditional analysis and one for fine-mapping-based colocalization.

Solutions. (1) \(\hat{\beta}_{2\mid1}=[0.18-(0.5)(0.20)]/[1-(0.5)^2]=(0.08)/(0.75)\approx0.107\), in standardized phenotype units per standard deviation of variant 2’s genotype. (2) Set overlap does not compare the relative support for shared and distinct variants or incorporate the relevant hypothesis priors; an explicit signal-level evidence comparison is needed. (3) High LD leaves little genotype variation to distinguish the variants, so the conditional estimate is imprecise; it is not evidence that the variants have separate effects. (4) Conditional analysis requires compatible, accurate LD information for the analyzed variants; fine-mapping-based colocalization requires, among other things, adequate variant coverage and a suitably specified model of the signals and priors.

Clinical Biostats