GWAS by Subtraction
GWAS by subtraction34 is a GenomicSEM5 technique that orthogonally decomposes GWAS traits.
Here, we explain GWAS by subtraction twice: once at a high level via linear algebra, and more granularly via statistical modeling.
Linear algebra
Euclidian space
It is useful to understand GWAS-by-subtraction via linear algebra.
Consider a Euclidian space in which:
- GWAS traits are vectors.
- The inner product of two traits is their genetic covariance. Denote the inner product of traits \(u\) and \(v\) as \(\langle u,v \rangle\).
- We assume all phenotypes have been normalized to have variance of 1. Under this assumption, a trait's squared Euclidian norm is its heritability: \(\lVert v \rVert^2=h^2_v\) where \(h^2_v\) is the heritability of trait \(v\).
The above implies that two traits are orthogonal (\(\langle u,v \rangle=0\)) if and only if they are genetically uncorrelated.
Perpendicular projection
Let \(T_1\) and \(T_2\) be the two genetically correlated traits diagrammed as vectors below:
We aim to decompose \(T_1\) into the sum of:
- \(F'\), which is perfectly genetically correlated with \(T_2\), and
- \(R'\), which is orthogonal to (genetically uncorrelated with) \(T_2\).
The decomposition is diagrammed below:
Let \(P\) denote the perpendicular projector2 onto the subspace spanned by \(T_2\). Then
Interpretation
The primary output of GWAS by subtraction is \(R'\), the component of \(T_1\) genetically uncorrelated with \(T_2\). Studying \(R'\) with standard post-GWAS analysis techniques like MAGMA6 and S-LDSC7 can shed light on the biological processes important to \(T_1\) but absent from \(T_2\).
Note that as a linear-algebraic operation, GWAS by subtraction is valid insofar as trait genetics can be approximated by a simple linear model. While the experience of the last decate and a half of genetics suggest that linear models are very useful, they are necessarily approximations of true biology, which is nonlinear.
Statistics
Joint model
We assume the following data-generating model:
Where:
- \(T_1,T_2\) are the two traits of interest. We them them as random variables in \(\mathbb{R}\).
- There are \(M\gg 0\) genetic variants.
- \(x\in\mathbb{R}^M\) is the random genotype. We assume \(x\) has mean zero, but unlike in LDSC, we do not assume it has been variance standardized. Let \(H_i\) be the variance of the \(i\)th variant.
- \(\beta_F,\beta_R\in\mathbb{R}^M\) are the underlying causal effects of the genetic variants.
- \(F,R\) are the two orthonormal underlying factors.
- \(a_F,a_R,b\in\mathbb{R}\) are the scalar multipliers that relate the normalized factors \(F,R\) to the unnormalized factors \(F',R'\).
- \(\delta_1, \delta_2\in\mathbb{R}\) are the random non-genetic components of the two traits. We assume these effects are independent of all genotypes.
Marginal Model
Let's now focus on arbitrary SNP \(i\), and model the marginal GWAS regression on this SNP.
Define
This yields the re-written model
We assume \(\zeta_{F,i},\zeta_{R_i}\) are approximately independent of \(x_i\). While not strictly true, this is a good approximation so long as individual variant effects (\(\beta_{R,i},\beta_{R,i}\)) are small, as is the case for polygenic traits.
Theoretical covariance
Next, let us examine the genetic covariance structure of the scalar random variables \((x_i, T_1, T_2)\).
We will denote by \(\mathrm{GCov}\) and \(\mathrm{GVar}\) the genetic covariance and variance respectively1.
Combining the above yields the following covariance matrix for \((x_i, T_1, T_2)\)
Empirical covariance
The inputs to GWAS by subtraction are summary statistics for the traits \(T_1\) and \(T_2\). These summary statistics include marginal regression coefficients for SNP \(i\):
Re-arranging, we have
We can apply LDSC8 and CT-LDSC9 to the \(T_1\) and \(T_2\) summary statistics to estimate their genetic covariance and heritabilities (again, heritability equals genetic variance, since we have assumed that phenotype variances are normalized to 1). Denote these estimates as \(L_{1,2},L_{1,1},L_{2,2}\).
Combining the above we have another expression for the covariance matrix of \((x_i, T_1, T_2)\)
Solution
We can equate \(\Sigma_{\text{Empirical}}\) and \(\Sigma_{\text{Theoretical}}\) to solve for \(a_F, a_R, b, \hat\beta_{F,i}, \hat\beta_{R,i}\). We have:
Solving the lower-right \(2\times 2\) submatrix, we have:
Equating the first columns of the two matrices yields
Note from \((\ref{b_solve}, \ref{a_F_solve}, \ref{a_R_solve})\) that \(a_F, a_R\) and \(b\) do not depend on the specific genetic variant \(i\) under consideration. This is consistent with the model specified in \((\ref{joint_t_1}, \ref{joint_t_2})\), in which \(a_F, a_R\) and \(b\) are global.
To recap, given summary statistics for traits \(T_1\) and \(T_2\), we can:
- Run LDSC and CT-LDSC to estimate \(L_{1,1},L_{1,2}, L_{2,2}\).
- Apply \((\ref{b_solve},\ref{a_F_solve}, \ref{a_R_solve})\) to estimate \(a_F,a_R,\) and \(b\).
- Apply \((\ref{beta_F_solve}, \ref{beta_R_solve})\) to estimate \(\hat\beta_{F,i}, \hat\beta_{R,i}\) for each genetic variant \(i\).
We would like to synthesize summary statistics for \(R\) in order to pass them to downstream analysis tools like MAGMA and S-LDSC. This requires estimates of the standard errors of \(\hat\beta_{R,i}\).
Uncertainty
To estimate these standard errors, define \(\nu_i\in\mathbb{R}^5\) to be the vector of key non-redundant entries of \(\Sigma_{\text{Empirical}}\). That is
Let \(\theta_i\in\mathbb{R}^5\) denote the key parameters we solved for above:
Let \(g:\mathbb{R}^5 \to \mathbb{R}^5\) denote the function mapping \(\nu_i\) to \(\theta_i\) via the solution method above.
We estimate the samples covariance of \(\theta_i\) using the delta method.
The delta method says that if \(K_i\) is the sampling covariance matrix of \(\nu_i\), and \(J_i\) is the Jacobian of \(g\) evaluated at \(\nu_i\), then the sampling covariance matrix of \(\theta_i\) can be estimated as
- Computing \(J_i\) requires only elementary calculus.
- To simplify matters, we approximate \(K_i\) as block diagonal. That is,
where \(V_{\text{SNP},i}\in\mathbb{R}^{2\times 2}\) and \(V_{\text{LD}}\in\mathbb{R}^{2 \times 2}\). This amounts to the assumption that, to a first approximation, the LDSC outputs do not covary with the SNP-specific \(\hat\beta_i\).
- Standard linkage-disequilibrium score regression uses the jackknife to estimate the sampling covariation of its output. We use these jackknife estimates to populate \(V_{\text{LD}}\).
- We populate \(V_{\text{SNP},i}\) using the approach described in the notes on LDSC.
Combining the above produces an estimate of \(K_i\), to which we can apply the delta method to estimate \(Q_i\), the sampling covariance of \(\theta_i\).
Result
Of the components of \(\theta_i\) and \(Q_i\), the most interesting is \(\hat\beta_{R,i}\) and its standard error. By repeating the above-described procedure for each variant \(i\), we can estimate \(\hat\beta_{R,i}\) and its standard error for all variants \(i\). This provides us with a full set of GWAS summary statistics for \(R\), the GWAS-by-subtraction component of \(T_1\) orthogonal to \(T_2\). We can then analyze these summary statistics using standard post-GWAS tools to glean insights into the genetic component of \(T_1\) that is independent of \(T_2\).
-
Because of our earlier assumption that phenotype variance has been normalized to 1, genetic variance equals heritability. ↩
-
Perpendicular projectors are described in most textbooks on linear algebra. Halmos10 is a classic ↩
-
Perline A Demange, Margherita Malanchini, Travis T Mallard, Pietro Biroli, Simon R Cox, Andrew D Grotzinger, Elliot M Tucker-Drob, Abdel Abdellaoui, Louise Arseneault, Elsje Van Bergen, and others. Investigating the genetic architecture of noncognitive skills using GWAS-by-subtraction. Nature genetics, 53(1):35–44, 2021. URL: https://pmc.ncbi.nlm.nih.gov/articles/PMC7116735/pdf/EMS114662.pdf. ↩
-
Yu Huang, Denis Plotnikov, Huan Wang, Danli Shi, Cong Li, Xueli Zhang, Xiayin Zhang, Shulin Tang, Xianwen Shang, Yijun Hu, and others. GWAS-by-subtraction reveals an iop-independent component of primary open angle glaucoma. Nature communications, 15(1):8962, 2024. URL: https://www.nature.com/articles/s41467-024-53331-0.pdf. ↩
-
Andrew D Grotzinger, Mijke Rhemtulla, Ronald de Vlaming, Stuart J Ritchie, Travis T Mallard, W David Hill, Hill F Ip, Riccardo E Marioni, Andrew M McIntosh, Ian J Deary, and others. Genomic structural equation modelling provides insights into the multivariate genetic architecture of complex traits. Nature Human Behaviour, 3(5):513–525, 2019. URL: https://pmc.ncbi.nlm.nih.gov/articles/PMC6520146/. ↩
-
Christiaan A De Leeuw, Joris M Mooij, Tom Heskes, and Danielle Posthuma. MAGMA: generalized gene-set analysis of GWAS data. PLoS Computational Biology, 11(4):e1004219, 2015. URL: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1004219. ↩
-
Hilary K Finucane, Yakir A Reshef, Verneri Anttila, Kamil Slowikowski, Alexander Gusev, Andrea Byrnes, Steven Gazal, Po-Ru Loh, Caleb Lareau, Noam Shoresh, and others. Heritability enrichment of specifically expressed genes identifies disease-relevant tissues and cell types. Nature Genetics, 50(4):621–629, 2018. URL: https://pmc.ncbi.nlm.nih.gov/articles/PMC5896795/. ↩
-
Brendan K Bulik-Sullivan, Po-Ru Loh, Hilary K Finucane, Stephan Ripke, Jian Yang, Nick Patterson, Mark J Daly, Alkes L Price, and Benjamin M Neale. LD Score regression distinguishes confounding from polygenicity in genome-wide association studies. Nature Genetics, 47(3):291–295, 2015. URL: https://pmc.ncbi.nlm.nih.gov/articles/PMC4495769/. ↩
-
Brendan Bulik-Sullivan, Hilary K Finucane, Verneri Anttila, Alexander Gusev, Felix R Day, Po-Ru Loh, ReproGen Consortium, Psychiatric Genomics Consortium, Genetic Consortium for Anorexia Nervosa of the Wellcome Trust Case Control Consortium 3, Laramie Duncan, and others. An atlas of genetic correlations across human diseases and traits. Nature Genetics, 47(11):1236–1241, 2015. URL: https://pmc.ncbi.nlm.nih.gov/articles/PMC4797329/. ↩
-
Paul Richard Halmos. Finite-dimensional vector spaces. Volume 11. Springer, 1958. URL: https://link.springer.com/book/10.1007/978-1-4612-6387-6. ↩