Tutorials › High-Dimensional Genomic Data Analysis › TWAS Across Tissues: Sharing And Heterogeneity

Colocalization and Integration With Expression Data · Tutorial 761 of 795

TWAS Across Tissues: Sharing And Heterogeneity

Learn to distinguish shared from tissue-heterogeneous TWAS patterns while accounting for correlated tissues and unequal prediction precision.

Advanced 12 min read

What You'll Learn

  • Put tissue-specific TWAS effect estimates on a comparable scale before comparing them.
  • Explain how correlated tissues change the uncertainty of cross-tissue contrasts.
  • Calculate a common-effect estimate using generalized least squares.
  • Use a heterogeneity statistic to assess departures from a common association.
  • Distinguish a joint association test from a test of tissue heterogeneity.
  • Diagnose when covariance estimates, weak prediction, or scale differences undermine interpretation.

Why Compare TWAS Results Across Tissues?

A gene may have TWAS associations in several tissues, in one tissue, or in tissues with estimates that differ in direction or magnitude. These patterns can help describe where genetically predicted expression is associated with a trait. But a list of tissue-specific p-values is not itself a comparison: a small p-value in one tissue and a larger one in another do not establish that the underlying effects differ.

The central task is to compare estimates and their uncertainty. Tissue-specific TWAS estimates may be correlated because tissues share participants, genetic variants, or expression-prediction information. Their precision may also vary because prediction models differ in accuracy and sample size. A sound comparison therefore requires a common effect scale and, when possible, the covariance among estimates. As emphasized in the earlier material on interpreting TWAS signals without claiming causality, a TWAS association is evidence about genetically predicted expression, not proof that changing expression in a particular tissue causes the trait.

Definition: For a gene evaluated in \(T\) tissues, let \(\hat{\boldsymbol{\beta}}=(\hat{\beta}_1,\ldots,\hat{\beta}_T)^\top\) be the vector of tissue-specific TWAS effect estimates, and let \(\boldsymbol{\Sigma}\) be their sampling covariance matrix. The diagonal entry \(\Sigma_{tt}\) is \(SE_t^2\); an off-diagonal entry describes sampling covariance between tissues \(t\) and \(u\). Cross-tissue sharing describes evidence that the association is present across tissues on a defined, comparable scale. Heterogeneity describes variation in the tissue-specific effects beyond sampling error.

The estimates must refer to comparable quantities. If predicted expression is measured on different scales across tissues, a coefficient per unit of predicted expression need not be directly comparable. One option is to express each effect per one standard deviation of genetically predicted expression, provided that this is the intended scale and the estimates are transformed consistently. Record the scale, outcome units, effect direction, and allele or model conventions before interpreting cross-tissue differences. A comparison of differently scaled coefficients can create apparent heterogeneity or conceal real differences.

Association, Sharing, and Heterogeneity Are Different Questions

Three questions are often conflated. First, is there evidence of an association in at least one tissue? Second, is there evidence that effects are compatible with a common effect across tissues? Third, do the data show more cross-tissue variation than expected from sampling error under a common-effect model? These require different statistics.

A joint Wald test of no association in any tissue uses the vector of estimates and its covariance matrix. Under the null hypothesis \(H_0:\boldsymbol{\beta}=\boldsymbol{0}\), and assuming an approximately multivariate normal estimate with a valid nonsingular \(\boldsymbol{\Sigma}\), the statistic

$$ W=\hat{\boldsymbol{\beta}}^\top\boldsymbol{\Sigma}^{-1}\hat{\boldsymbol{\beta}} $$

has approximately a chi-square distribution with \(T\) degrees of freedom. It tests whether the vector is zero; it does not test whether tissue effects are equal. A large \(W\) can arise from a shared effect or from effects confined to a subset of tissues.

For a common-effect summary, assume the tissue estimates satisfy

$$ \hat{\boldsymbol{\beta}}\sim N(\theta\boldsymbol{1},\boldsymbol{\Sigma}), $$

where \(\theta\) is the common effect on the chosen scale, \(\boldsymbol{1}\) is a vector of \(T\) ones, and \(\boldsymbol{\Sigma}\) is known or treated as adequately estimated. The generalized least-squares (GLS) estimator and its standard error are

$$ \hat{\theta}_{\mathrm{GLS}} = \frac{\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1}\hat{\boldsymbol{\beta}}} {\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1}\boldsymbol{1}}, \qquad SE(\hat{\theta}_{\mathrm{GLS}}) = \left(\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1}\boldsymbol{1}\right)^{-1/2}. $$

This uses more precise information while accounting for correlation; it is not generally the simple average of tissue estimates. A common-effect estimate is useful as a summary only if a common effect is a reasonable working model.

Definition: The common-effect heterogeneity statistic is \(Q=(\hat{\boldsymbol{\beta}}-\hat{\theta}_{\mathrm{GLS}}\boldsymbol{1})^\top\boldsymbol{\Sigma}^{-1}(\hat{\boldsymbol{\beta}}-\hat{\theta}_{\mathrm{GLS}}\boldsymbol{1})\). Under the common-effect model, multivariate normal sampling, and a correctly specified known covariance matrix, \(Q\) has a chi-square distribution with \(T-1\) degrees of freedom. A large value is evidence against the common-effect model; a small value is not proof that the effects are identical.

Why the GLS and Heterogeneity Formulas Work

The GLS estimate is the value of \(\theta\) that minimizes the covariance-weighted squared residuals \(L(\theta)=(\hat{\boldsymbol{\beta}}-\theta\boldsymbol{1})^\top\boldsymbol{\Sigma}^{-1}(\hat{\boldsymbol{\beta}}-\theta\boldsymbol{1})\). Differentiating with respect to \(\theta\) gives

$$ \frac{dL}{d\theta} =-2\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1} (\hat{\boldsymbol{\beta}}-\theta\boldsymbol{1}). $$

Setting this derivative to zero yields \(\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1}\hat{\boldsymbol{\beta}} =\theta\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1}\boldsymbol{1}\), which gives the stated GLS estimator. Since it is a linear combination of a multivariate normal vector, its variance is

$$ \operatorname{Var}(\hat{\theta}_{\mathrm{GLS}}) = \frac{\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1} \boldsymbol{\Sigma}\boldsymbol{\Sigma}^{-1}\boldsymbol{1}} {(\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1}\boldsymbol{1})^2} = (\boldsymbol{1}^\top\boldsymbol{\Sigma}^{-1}\boldsymbol{1})^{-1}. $$

For \(Q\), subtracting the fitted common effect leaves residual variation in the \(T-1\) directions orthogonal to the fitted common-effect direction, using the covariance-weighted metric. Under the stated normal model, this residual sum of squares has a chi-square distribution with \(T-1\) degrees of freedom. If covariance is misspecified, estimates are not approximately normal, or too few independent observations support covariance estimation, this reference distribution may be inaccurate.

Worked Comparisons Across Tissues

Worked Example: A Smaller P-Value Does Not Mean a Larger Tissue Effect

Suppose two hypothetical tissue analyses give effects on the same standardized scale: tissue A has \(\hat{\beta}_A=0.30\), \(SE_A=0.10\), and tissue B has \(\hat{\beta}_B=0.24\), \(SE_B=0.16\). Assume their estimate correlation is \(0.60\). The individual Wald statistics are \(Z_A=0.30/0.10=3.00\) and \(Z_B=0.24/0.16=1.50\). The evidence against a zero effect is stronger in A, but that alone does not show the effects differ.

The estimated difference is \(0.30-0.24=0.06\). Its standard error must include the covariance: \(SE(\hat{\beta}_A-\hat{\beta}_B)=\sqrt{SE_A^2+SE_B^2-2\rho SE_ASE_B}\). Substituting gives \(\sqrt{0.10^2+0.16^2-2(0.60)(0.10)(0.16)} =\sqrt{0.0164}=0.1281\). Thus the contrast statistic is \(0.06/0.1281=0.468\), which is not strong evidence of a difference. These hypothetical results illustrate why significance in one tissue and not another is not a valid heterogeneity test.

Worked Example: A Common-Effect Summary with Unequal Precision

Consider three hypothetical, independent tissue estimates on the same scale: \(0.20\) with standard error \(0.10\), \(0.30\) with standard error \(0.20\), and \(0.10\) with standard error \(0.10\). The independence assumption means \(\boldsymbol{\Sigma}\) is diagonal; it is made here to keep the arithmetic transparent. The inverse-variance weights are \(100\), \(25\), and \(100\).

The common-effect estimate is the weighted average: \(\hat{\theta}=(100(0.20)+25(0.30)+100(0.10))/(100+25+100)=37.5/225=0.1667\). Its standard error is \(\sqrt{1/225}=0.06667\). The weights are unequal because the middle estimate is less precise.

The heterogeneity statistic is \(Q=100(0.20-0.1667)^2+25(0.30-0.1667)^2+100(0.10-0.1667)^2 =0.1111+0.4444+0.4444=1.000\). With \(T-1=2\) degrees of freedom, the chi-square upper-tail p-value is approximately \(0.6065\). Under the assumed model, these data do not provide strong evidence against a common effect. This is not proof that the effects are identical; the test may have limited power to detect modest differences.

Worked Example: Correlation Changes the Heterogeneity Test

Now suppose two hypothetical tissue estimates are \(0.20\) and \(0.40\), each with standard error \(0.10\), and their sampling correlation is \(0.75\). Assume a common scale and a valid covariance estimate. The variance of their difference is \(0.10^2+0.10^2-2(0.75)(0.10)(0.10)=0.005\), so the standard error of the difference is \(\sqrt{0.005}=0.07071\).

For two tissues, the common-effect heterogeneity statistic is the squared difference divided by its variance: \(Q=(0.40-0.20)^2/0.005=8.00\). Under the common-effect model, \(Q\) is compared with a chi-square distribution with one degree of freedom; the upper-tail p-value is approximately \(0.00468\). The estimates show evidence of heterogeneity under these assumptions. If the correlation had been ignored, the difference variance would have been \(0.02\), yielding \(Q=2.00\) and a very different conclusion. Correctly accounting for correlation is therefore central, not optional.

Interpreting Patterns and Checking Assumptions

A defensible interpretation separates the estimated pattern from the strength of evidence. Consistently directed estimates with compatible magnitudes can support a description of a shared association across the tissues studied. A significant heterogeneity statistic indicates that a common-effect model fits poorly, but it does not identify which tissue differs or explain why. Conversely, failure to reject homogeneity can reflect imprecision, especially where expression prediction is weak.

Unequal prediction accuracy affects precision and power. A tissue with a weaker expression-prediction model may have a larger TWAS standard error, so its estimate can be less informative even when its underlying association is similar. Do not interpret a less significant result as evidence of a smaller biological effect. Nor should a highly precise tissue automatically be treated as the only relevant tissue: precision and tissue-specific effect are distinct.

Before reporting cross-tissue results, check that:

  • Effects use comparable expression and outcome scales, directions, and gene definitions.
  • Standard errors and cross-tissue covariances correspond to the actual study design, including sample overlap where relevant.
  • The covariance matrix is positive definite and not so poorly estimated that its inverse is unstable. Near-duplicate tissue estimates can make multivariate tests numerically fragile.
  • Each tissue has enough prediction accuracy for its estimate to be informative; very weak prediction can yield unstable or uninformative estimates.
  • The common-effect model is treated as an assumption to assess, not as an automatic description of biology.

When covariance is unavailable, an independence-based comparison may be shown as an explicitly limited approximation, but it can misstate uncertainty. Alternatives include reporting the tissue estimates and standard errors without a formal pooled test, using a covariance-aware joint test when the scientific question is any association, or fitting a model that allows between-tissue variation when that is scientifically justified and the data support estimating it. These approaches answer different questions; none turns a TWAS association into evidence of causation. Results across many genes and tissues also raise a separate multiplicity problem, which must be handled in the relevant analysis rather than by interpreting isolated p-values.

Common Mistakes and Limitations

Common pitfall: “The gene is significant in tissue A but not tissue B, so the association is tissue-specific.” This reasoning compares each tissue’s evidence against zero, not the effects with each other. The correction is to compare harmonized effect estimates using their covariance, for example with a contrast or a heterogeneity statistic. Different p-values can result from different standard errors even when effects are compatible.

A heterogeneity test is not a tissue-localization procedure. A large \(Q\) says that the common-effect model is inconsistent with the observed estimates and assumed covariance; it does not establish a causal tissue, rule out model misspecification, or identify the source of the discrepancy. A small \(Q\) does not establish exact equality. In addition, a common TWAS association across tissues can arise because the prediction models use overlapping genetic information or because estimates are correlated, rather than because expression has an independent causal role in every tissue.

The key reporting practice is therefore to show the tissue-specific estimates and standard errors, state the scale and covariance assumptions, and describe any common-effect or heterogeneity test according to the question it actually answers. Treat the result as a pattern of association across the measured tissues, with uncertainty, rather than a definitive map of tissue-specific mechanism.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. Two tissues have effects \(0.25\) and \(0.20\), with standard errors \(0.08\) and \(0.10\). Why is comparing their individual p-values insufficient to establish a tissue difference?
  2. For two tissue estimates with standard errors \(0.12\) and \(0.15\) and correlation \(0.50\), calculate the standard error of their difference.
  3. What does a joint Wald test of a zero effect vector test, and how does that differ from the heterogeneity test?
  4. If a heterogeneity test is not significant, what conclusion is justified, and what conclusion is not justified?
  5. Name two checks needed before interpreting a common-effect summary across tissues.

Solutions. (1) The individual p-values test each effect against zero, not the difference between effects. A contrast must use the covariance between estimates. (2) The difference standard error is \(\sqrt{0.12^2+0.15^2-2(0.50)(0.12)(0.15)} =\sqrt{0.0189}=0.1375\). (3) The joint Wald test assesses whether all tissue effects are zero; the heterogeneity test assesses departure from a common effect. A nonzero shared effect can pass the joint test without showing heterogeneity. (4) The data do not provide strong evidence against the common-effect model under its assumptions; they do not prove equal effects. (5) Examples include checking that effects have comparable scales and checking that the covariance matrix reflects sample overlap and is numerically stable.

Clinical Biostats