Limitations of principal components in quantitative genetic association models for human studies
Abstract
Principal Component Analysis (PCA) and the Linear Mixed-effects Model (LMM), sometimes in combination, are the most common genetic association models. Previous PCA-LMM comparisons give mixed results, unclear guidance, and have several limitations, including not varying the number of principal components (PCs), simulating simple population structures, and inconsistent use of real data and power evaluations. We evaluate PCA and LMM both varying number of PCs in realistic genotype and complex trait simulations including admixed families, subpopulation trees, and real multiethnic human datasets with simulated traits. We find that LMM without PCs usually performs best, with the largest effects in family simulations and real human datasets and traits without environment effects. Poor PCA performance on human datasets is driven by large numbers of distant relatives more than the smaller number of closer relatives. While PCA was known to fail on family data, we report strong effects of family relatedness in genetically diverse human datasets, not avoided by pruning close relatives. Environment effects driven by geography and ethnicity are better modeled with LMM including those labels instead of PCs. This work better characterizes the severe limitations of PCA compared to LMM in modeling the complex relatedness structures of multiethnic human data for association studies.
Editor's evaluation
This is an important paper that presents compelling arguments (based on simulation and comprehensively reviewed background theory) that Linear Mixed Models generally should perform better at correcting for genetic and environmental confounding in GWAS than more commonly used Principal Components methods.
https://doi.org/10.7554/eLife.79238.sa0Introduction
The goal of a genetic association study is to identify loci whose genotype variation is significantly correlated to given trait. Naive association tests assume that genotypes are drawn independently from a common allele frequency. This assumption does not hold for structured populations, which includes multiethnic cohorts and admixed individuals (ancient relatedness), and for family data (recent relatedness; Astle and Balding, 2009). Association studies of admixed and multiethnic cohorts, the focus of this work, are becoming more common, are believed to be more powerful, and are necessary to bring more equity to genetic medicine (Rosenberg et al., 2010; Hoffman and Dubé, 2013; Coram et al., 2013; Medina-Gomez et al., 2015; Conomos et al., 2016a; Hodonsky et al., 2017; Martin et al., 2017a; Martin et al., 2017b; Hindorff et al., 2018; Hoffmann et al., 2018; Mogil et al., 2018; Roselli et al., 2018; Wojcik et al., 2019; Peterson et al., 2019; Zhong et al., 2019; Hu et al., 2020; Simonin-Wilmer et al., 2021; Kamariza et al., 2021; Lin et al., 2021; Mahajan et al., 2022; Hou et al., 2023a). When insufficient approaches are applied to data with relatedness, their association statistics are miscalibrated, resulting in excess false positives and loss of power (Devlin and Roeder, 1999; Voight and Pritchard, 2005; Astle and Balding, 2009). Therefore, many specialized approaches have been developed for genetic association under relatedness, of which PCA and LMM are the most popular.
Genetic association with PCA consists of including the top eigenvectors of the population kinship matrix as covariates in a generalized linear model (Zhang et al., 2003; Price et al., 2006; Bouaziz et al., 2011). These top eigenvectors are a new set of coordinates for individuals that are commonly referred to as PCs in genetics (Patterson et al., 2006), the convention adopted here, but in other fields PCs instead denote what in genetics would be the projections of loci onto eigenvectors, which are new independent coordinates for loci (Jolliffe, 2002). The direct ancestor of PCA association is structured association, in which inferred ancestry (genetic cluster membership, often corresponding with labels such as “European”, “African”, “Asian”, etc.) or admixture proportions of these ancestries are used as regression covariates (Pritchard et al., 2000). These models are deeply connected because PCs map to ancestry empirically (Alexander et al., 2009; Zhou et al., 2016) and theoretically (McVean, 2009; Zheng and Weir, 2016; Cabreros and Storey, 2019; Chiu et al., 2022), and they work as well as global ancestry in association studies but are estimated more easily (Patterson et al., 2006; Zhao et al., 2007; Alexander et al., 2009; Bouaziz et al., 2011). Another approach closely related to PCA is nonmetric multidimensional scaling (Zhu and Yu, 2009). PCs are also proposed for modeling environment effects that are correlated to ancestry, for example, through geography (Novembre et al., 2008; Zhang and Pan, 2015; Lin et al., 2021). The strength of PCA is its simplicity, which as covariates can be readily included in more complex models, such as haplotype association (Xu and Guan, 2014) and polygenic models (Qian et al., 2020). However, PCA assumes that the underlying relatedness space is low dimensional (or low rank), so it can be well modeled with a small number of PCs, which may limit its applicability. PCA is known to be inadequate for family data (Patterson et al., 2006; Zhu and Yu, 2009; Thornton and McPeek, 2010; Price et al., 2010), which is called ‘cryptic relatedness’ when it is unknown to the researchers, but no other troublesome cases have been confidently identified. Recent work has focused on developing more scalable versions of the PCA algorithm (Lee et al., 2012; Abraham and Inouye, 2014; Galinsky et al., 2016; Abraham et al., 2017; Agrawal et al., 2020). PCA remains a popular and powerful approach for association studies.
The other dominant association model under relatedness is the LMM, which includes a random effect parameterized by the kinship matrix. Unlike PCA, LMM does not assume that relatedness is low-dimensional, and explicitly models families via the kinship matrix. Early LMMs used kinship matrices estimated from known pedigrees or using methods that captured recent relatedness only, and modeled population structure (ancestry) as fixed effects (Yu et al., 2006; Zhao et al., 2007; Zhu and Yu, 2009). Modern LMMs estimate kinship from genotypes using a non-parametric estimator, often referred to as a genetic relationship matrix, that captures the combined covariance due to family relatedness and ancestry (Kang et al., 2008; Astle and Balding, 2009; Ochoa and Storey, 2021). Like PCA, LMM has also been proposed for modeling environment correlated to genetics (Vilhjálmsson and Nordborg, 2013; Wang et al., 2022). The classic LMM assumes a quantitative (continuous) complex trait, the focus of our work. Although case-control (binary) traits and their underlying ascertainment are theoretically a challenge (Yang et al., 2014), LMMs have been applied successfully to balanced case-control studies (Astle and Balding, 2009; Kang et al., 2010) and simulations (Price et al., 2010; Wu et al., 2011; Sul and Eskin, 2013), and have been adapted for unbalanced case-control studies (Zhou et al., 2018). However, LMMs tend to be considerably slower than PCA and other models, so much effort has focused on improving their runtime and scalability (Aulchenko et al., 2007; Kang et al., 2008; Kang et al., 2010; Zhang et al., 2010; Lippert et al., 2011; Yang et al., 2011; Listgarten et al., 2012; Zhou and Stephens, 2012; Svishcheva et al., 2012; Loh et al., 2015; Zhou et al., 2018).
An LMM variant that incorporates PCs as fixed covariates is tested thoroughly in our work. Since PCs are the top eigenvectors of the same kinship matrix estimate used in modern LMMs (Astle and Balding, 2009; Janss et al., 2012; Hoffman and Dubé, 2013; Zhang and Pan, 2015), then population structure is modeled twice in an LMM with PCs. However, some previous work has found the apparent redundancy of an LMM with PCs beneficial (Price et al., 2010; Tucker et al., 2014; Zhang and Pan, 2015), while others did not (Liu et al., 2011; Janss et al., 2012), and the approach continues to be used (Zeng et al., 2018; Mbatchou et al., 2021), although not always (Matoba et al., 2020). Recall that early LMMs used kinship to model family relatedness only, so population structure had to be modeled separately in those models, in practice as admixture fractions instead of PCs (Yu et al., 2006; Zhao et al., 2007; Zhu and Yu, 2009). The LMM with PCs (vs no PCs) is also believed to help better model loci that have experienced selection (Price et al., 2010; Vilhjálmsson and Nordborg, 2013) and environment effects correlated with genetics (Zhang and Pan, 2015).
LMM and PCA are closely related models (Astle and Balding, 2009; Janss et al., 2012; Hoffman and Dubé, 2013; Zhang and Pan, 2015), so similar performance is expected particularly under low-dimensional relatedness. Direct comparisons have yielded mixed results, with several studies finding superior performance for LMM, notably from papers promoting advances in LMMs, while many others report comparable performance (Table 1). No papers find that PCA outperforms LMM decisively, although PCA occasionally performs better in isolated and artificial cases or individual measures, often with unknown significance. Previous studies generally used either only simulated or only real genotypes, with only two studies using both. The simulated genotype studies, which tended to have low model dimensions and , were more likely to report ties or mixed results (6/8), whereas real genotypes tended to clearly favor LMMs (9/11). Similarly, 10/12 papers with quantitative traits favor LMMs, whereas 6/9 papers with case-control traits gave ties or mixed results—the only factor we do not explore in this work. Additionally, although all previous evaluations measured type I error (or proxies such as genomic inflation factors Devlin and Roeder, 1999 or QQ plots), a large fraction (6/17) did not measure power (or proxies such as ROC curves), and only four used more than one number of PCs for PCA. Lastly, no consensus has emerged as to why LMM might outperform PCA or vice versa (Price et al., 2010; Sul and Eskin, 2013; Price et al., 2013; Hoffman and Dubé, 2013), or which features of the real datasets are critical for the LMM advantage other than family relatedness, resulting in unclear guidance for using PCA. Hence, our work includes real and simulated genotypes with higher model dimensions and matching that of multiethnic human cohorts (Ochoa and Storey, 2021; Ochoa and Storey, 2019), we vary the number of PCs, and measure robust proxies for type I error control and calibrated power.
In this work, we evaluate the PCA and LMM association models under various numbers of PCs, which are included in LMMs too. We use genotype simulations (admixture, family, and subpopulation tree models) and three real datasets: the 1000 Genomes Project (Abecasis et al., 2010; Abecasis et al., 2012), the Human Genome Diversity Panel (HGDP) (Cann et al., 2002; Rosenberg et al., 2002; Bergström et al., 2020), and Human Origins (Patterson et al., 2012; Lazaridis et al., 2014; Lazaridis et al., 2016; Skoglund et al., 2016). We simulate quantitative traits from two models: fixed effect sizes (FES) construct coefficients inverse to allele frequency, which matches real data (Park et al., 2011; Zeng et al., 2018; O’Connor et al., 2019) and corresponds to high pleiotropy and strong balancing selection (Simons et al., 2018) and strong negative selection (Zeng et al., 2018; O’Connor et al., 2019), which are appropriate assumptions for diseases; and random coefficients (RC), which are drawn independent of allele frequency, and corresponds to neutral traits (Zeng et al., 2018; Simons et al., 2018). LMM without PCs consistently performs best in simulations without environment, and greatly outperforms PCA in the family simulation and in all real datasets. The tree simulations, which model subpopulations with the tree but exclude family structure, do not recapitulate the real data results, suggesting that family relatedness in real data is the reason for poor PCA performance. Lastly, removing up to 4th degree relatives in the real datasets recapitulates poor PCA performance, showing that the more numerous distant relatives explain the result, and suggesting that PCA is generally not an appropriate model for real data. We find that both LMM and PCA are able to model environment effects correlated with genetics, and LMM with PCs gains a small advantage in this setting only, but direct modeling of environment performs much better. All together, we find that LMMs without PCs are generally a preferable association model, and present novel simulation and evaluation approaches to measure the performance of these and other genetic association approaches.
Results
Overview of evaluations
We use three real genotype datasets and simulated genotypes from six population structure scenarios to cover various features of interest (Table 2). We introduce them in sets of three, as they appear in the rest of our results. Population kinship matrices, which combine population and family relatedness, are estimated without bias using popkin (Ochoa and Storey, 2021; Figure 1). The first set of three simulated genotypes are based on an admixture model with 10 ancestries (Figure 1A; Ochoa and Storey, 2021; Gopalan et al., 2016; Cabreros and Storey, 2019). The ‘large’ version (1000 individuals) illustrates asymptotic performance, while the ‘small’ simulation (100 individuals) illustrates model overfitting. The ‘family’ simulation has admixed founders and draws a 20-generation random pedigree with assortative mating, resulting in a complex joint family and ancestry structure in the last generation (Figure 1B). The second set of three are the real human datasets representing global human diversity: Human Origins (Figure 1D), HGDP (Figure 1G), and 1000 Genomes (Figure 1J), which are enriched for small minor allele frequencies even after MAF <1% filter (Figure 1C). Last are subpopulation tree simulations (Figure 1F, I, L) fit to the kinship (Figure 1E, H and K) and MAF (Figure 1C) of each real human dataset, which by design do not have family structure.
All traits in this work are simulated. We repeated all evaluations on two additive quantitative trait models, fixed effect sizes (FES) and random coefficients (RC), which differ in how causal coefficients are constructed. The FES model captures the rough inverse relationship between coefficient and minor allele frequency that arises under strong negative and balancing selection and has been observed in numerous diseases and other traits (Park et al., 2011; Zeng et al., 2018; Simons et al., 2018; O’Connor et al., 2019), so it is the focus of our results. The RC model draws coefficients independent of allele frequency, corresponding to neutral traits (Zeng et al., 2018; Simons et al., 2018), which results in a wider effect size distribution that reduces association power and effective polygenicity compared to FES.
We evaluate using two complementary measures: (1) (p-value signed root mean square deviation) measures p-value calibration (closer to zero is better), and (2) (precision-recall area under the curve) measures causal locus classification performance (higher is better; Figure 2). is a more robust alternative to the common inflation factor and type I error control measures; there is a correspondence between and , with giving (Figure 2—figure supplement 1) and thus evidence of miscalibration close to the rule of thumb of (Price et al., 2010). There is also a monotonic correspondence between and type I error rate (Figure 2—figure supplement 2). has been used to evaluate association models (Rakitsch et al., 2013), and reflects calibrated statistical power (Figure 2—figure supplement 3) while being robust to miscalibrated models (Appendix 2).
Both PCA and LMM are evaluated in each replicate dataset including a number of PCs between 0 and 90 as fixed covariates. In terms of p-value calibration, for PCA the best number of PCs (minimizing mean over replicates) is typically large across all datasets (Table 3), although much smaller values often performed as well (shown in following sections). Most cases have a mean , whose p-values are effectively calibrated. However, PCA is often miscalibrated on the family simulation and real datasets (Table 3). In contrast, for LMM, (no PCs) is always best, and is always calibrated. Comparing LMM with to PCA with its best , LMM always has significantly smaller than PCA or is statistically tied. For and PCA, the best is always smaller than the best for , so there is often a tradeoff between calibrated p-values versus classification performance. For LMM, there is no tradeoff, as often has the best mean , and otherwise is not significantly different from the best . Lastly, LMM with always has significantly greater or statistically tied than PCA with its best .
Evaluations in admixture simulations
Now we look more closely at results per dataset. The complete and distributions for the admixture simulations and FES traits are in Figure 3. RC traits gave qualitatively similar results (Figure 3—figure supplement 1).
In the large admixture simulation, the of PCA is largest when (no PCs) and decreases rapidly to near zero at , where it stays for up to (Figure 3A). Thus, PCA has calibrated p-values for , smaller than the theoretical optimum for this simulation of . In contrast, the for LMM starts near zero for , but becomes negative as increases (p-values are conservative). The distribution of PCA is similarly worst at , increases rapidly and peaks at , then decreases slowly for , while the distribution for LMM starts near its maximum at and decreases with . Although the distributions for LMM and PCA overlap considerably at each , LMM with has significantly greater values than PCA with (Table 3). However, qualitatively PCA performs nearly as well as LMM in this simulation.
The observed robustness to large led us to consider smaller sample sizes. A model with large numbers of parameters should overfit more as approaches the sample size . Rather than increase beyond 90, we reduce individuals to , which is small for typical association studies but may occur in studies of rare diseases, pilot studies, or other constraints. To compensate for the loss of power due to reducing , we also reduce the number of causal loci (see Trait Simulation), which increases per-locus effect sizes. We found a large decrease in performance for both models as increases, and best performance for for PCA and for LMM (Figure 3B). Remarkably, LMM attains much larger negative values than in our other evaluations. LMM with is significantly better than PCA ( to 4) in both measures (Table 3), but qualitatively the difference is negligible.
The family simulation adds a 20-generation random family to our large admixture simulation. Only the last generation is studied for association, which contains numerous siblings, first cousins, etc., with the initial admixture structure preserved by geographically biased mating. Our evaluation reveals a sizable gap in both measures between LMM and PCA across all (Figure 3C). LMM again performs best with and achieves mean . However, PCA does not achieve mean at any , and its best mean is considerably worse than that of LMM. Thus, LMM is conclusively superior to PCA, and the only calibrated model, when there is family structure.
Evaluations in real human genotype datasets
Next, we repeat our evaluations with real human genotype data, which differs from our simulations in allele frequency distributions and more complex population structures with greater , numerous correlated subpopulations, and potential cryptic family relatedness.
Human Origins has the greatest number and diversity of subpopulations. The and distributions in this dataset and FES traits (Figure 4A) most resemble those from the family simulation (Figure 3C). In particular, while LMM with performed optimally (both measures) and satisfies mean , PCA maintained for all and its were all considerably smaller than the best of LMM.
HGDP has the fewest individuals among real datasets, but compared to Human Origins contains more loci and low-frequency variants. Performance (Figure 4B) again most resembled the family simulations. In particular, LMM with achieves mean (p-values are calibrated), while PCA does not, and there is a sizable gap between LMM and PCA. Maximum values were lowest in HGDP compared to the two other real datasets.
1000 Genomes has the fewest subpopulations but largest number of individuals per subpopulation. Thus, although this dataset has the simplest subpopulation structure among the real datasets, we find and distributions (Figure 4C) that again most resemble our earlier family simulation, with mean for LMM only and large gaps between LMM and PCA.
Our results are qualitatively different for RC traits, which had smaller gaps between LMM and PCA (Figure 4—figure supplement 1). Maximum were smaller in RC compared to FES in Human Origins and 1000 Genomes, suggesting lower power for RC traits across association models. Nevertheless, LMM with was significantly better than PCA for all measures in the real datasets and RC traits (Table 3).
Evaluations in subpopulation tree simulations fit to human data
To better understand which features of the real datasets lead to the large differences in performance between LMM and PCA, we carried out subpopulation tree simulations. Human subpopulations are related roughly by trees, which induce the strongest correlations, so we fit trees to each real dataset and tested if data simulated from these complex tree structures could recapitulate our previous results (Figure 1). These tree simulations also feature non-uniform ancestral allele frequency distributions, which recapitulated some of the skew for smaller minor allele frequencies of the real datasets (Figure 1C). The and distributions for these tree simulations (Figure 5) resembled our admixture simulation more than either the family simulation (Figure 3) or real data results (Figure 4). Both LMM with and PCA (various ) achieve mean (Table 3). The distributions of both LMM and PCA track closely as is varied, although there is a small gap resulting in LMM () besting PCA in all three simulations. The results are qualitatively similar for RC traits (Figure 5—figure supplement 1, Table 3). Overall, these subpopulation tree simulations do not recapitulate the large LMM advantage over PCA observed on the real data.
Numerous distant relatives explain poor PCA performance in real data
In principle, PCA performance should be determined by the dimension of relatedness, or kinship matrix rank, since PCA is a low-dimensional model whereas LMM can model high-dimensional relatedness without overfitting. We used the Tracy-Widom test (Patterson et al., 2006) with to estimate kinship matrix rank as the number of significant PCs (Figure 6—figure supplement 1A). The true rank of our simulations is slightly underestimated (Table 2), but we confirm that the family simulation has the greatest rank, and real datasets have greater estimates than their respective subpopulation tree simulations, which confirms our hypothesis to some extent. However, estimated ranks do not separate real datasets from tree simulations, as required to predict the observed PCA performance. Moreover, the HGDP and 1000 Genomes rank estimates are 45 and 61, respectively, yet PCA performed poorly for all numbers of PCs (Figure 4). The top eigenvalue explained a proportion of variance proportional to (Table 2), but the rest of the top 10 eigenvalues show no clear differences between datasets, except the small simulation had larger variances explained per eigenvalue (expected since it has fewer eigenvalues; Figure 6—figure supplement 1). Comparing cumulative variance explained versus rank fraction across all eigenvalues, all datasets increase from their starting point almost linearly until they reach 1, except the family simulation has much greater variance explained by mid-rank eigenvalues (Figure 6—figure supplement 1). We also calculated the number of PCs that are significantly associated with the trait, and observed similar results, namely that while the family simulation has more significant PCs than the non-family admixture simulations, the real datasets and their tree simulated counterparts have similar numbers of significant PCs (Figure 6—figure supplement 2). Overall, there is no separation between real datasets (where PCA performed poorly) and subpopulation tree simulations (where PCA performed relatively well) in terms of their eigenvalues or kinship matrix rank estimates.
Local kinship, which is recent relatedness due to family structure excluding population structure, is the presumed cause of the LMM to PCA performance gap observed in real datasets but not their subpopulation tree simulation counterparts. Instead of inferring local kinship through increased kinship matrix rank, as attempted in the last paragraph, now we measure it directly using the KING-robust estimator (Manichaikul et al., 2010). We observe more large local kinship in the real datasets and the family simulation compared to the other simulations (Figure 6). However, for real data this distribution depends on the subpopulation structure, since locally related pairs are most likely in the same subpopulation. Therefore, the only comparable curve to each real dataset is their corresponding subpopulation tree simulation, which matches subpopulation structure. In all real datasets, we identified highly related individual pairs with kinship above the 4th degree relative threshold of 0.022 (Manichaikul et al., 2010; Conomos et al., 2016b). However, these highly related pairs are vastly outnumbered by more distant pairs with evident non-zero local kinship as compared to the extreme tree simulation values.
To try to improve PCA performance, we followed the standard practice of removing 4th degree relatives, which reduced sample sizes between 5% and 10% (Table 4). Only for LMM and for PCA were tested, as these performed well in our earlier evaluation, and only FES traits were tested because they previously displayed the large PCA-LMM performance gap. LMM significantly outperforms PCA in all these cases (Wilcoxon paired 1-tailed ; Figure 7). Notably, PCA still had miscalibrated p-values two of the three real datasets (), the only marginally calibrated case being HGDP which is also the smallest of these datasets. Otherwise, and ranges were similar here as in our earlier evaluation. Therefore, the removal of the small number of highly related individual pairs had a negligible effect in PCA performance, so the larger number of more distantly related pairs explain the poor PCA performance in the real datasets.
Low heritability and environment simulations
Our main evaluations were repeated with traits simulated under a lower heritability value of . We reduced the number of causal loci in response to this change in heritability, to result in equal average effect size per locus compared to the previous high heritability evaluations (see Trait Simulation). Despite that, these low heritability evaluations measured lower values than their high heritability counterparts (Figure 3—figure supplement 2, Figure 3—figure supplement 3, Figure 4—figure supplement 2, Figure 4—figure supplement 3, Figure 7—figure supplement 1). The gap between LMM and PCA was reduced in these evaluations, but the main conclusion of the high heritability evaluation holds for low heritability as well, namely that LMM with significantly outperforms or ties LMM with and PCA in all cases (Table 5).
Lastly, we simulated traits with both low heritability and large environment effects determined by geography and subpopulation labels, so they are strongly correlated to the low-dimensional population structure. For that reason, PCs may be expected to perform better in this setting (in either PCA or LMM). However, we find that both PCA and LMM (even without PCs) increase their values compared to the low-heritability evaluations (Figure 8—figure supplement 1; Figure 8 also shows representative numbers of PCs, which performed optimally or nearly so in individual simulations shown in Figure 3—figure supplement 4, Figure 3—figure supplement 5, Figure 4—figure supplement 4, Figure 4—figure supplement 5). p-Value calibration is comparable with or without environment effects, for LMM for all and for PCA once is large enough (Figure 8—figure supplement 1). These simulations are the only where we occasionally observed for both metrics a significant, though small, advantage of LMM with PCs versus LMM without PCs (Table 6). Additionally, on RC traits only, PCA significantly outperforms LMM in the three real human datasets (Table 6), the only cases in all of our evaluations where this is observed. For comparison, we also evaluate an ‘oracle’ LMM without PCs but with the finest group labels, the same used to simulate environment, as fixed categorical covariates (‘LMM lab.’), and see much larger values than either LMM with PCs or PCA (Figure 8, Figure 3—figure supplement 4, Figure 3—figure supplement 5, Figure 4—figure supplement 4, Figure 4—figure supplement 5, Table 6). However, LMM with labels is often more poorly calibrated than LMM or PCA without labels, which may be since these numerous labels are inappropriately modeled as fixed rather than random effects. Overall, we find that association studies with correlated environment and genetic effects remain a challenge for PCA and LMM, that addition of PCs to an LMM improves performance only marginally, and that if the environment effect is driven by geography or ethnicity then use of those labels greatly improves performance compared to using PCs.
Discussion
Our evaluations conclusively determined that LMM without PCs performs better than PCA (for any number of PCs) across all scenarios without environment effects, including all real and simulated genotypes and two trait simulation models. Although the addition of a few PCs to LMM does not greatly hurt its performance (except for small sample sizes), they generally did not improve it either (Table 3, Table 5), which agrees with previous observations (Liu et al., 2011; Janss et al., 2012) but contradicts others (Zhao et al., 2007; Price et al., 2010). Our findings make sense since PCs are the eigenvectors of the same kinship matrix that parameterized random effects, so including both is redundant.
The presence of environment effects that are correlated to relatedness presents the only scenario where occasionally PCA and LMM with PCs outperform LMM without PCs (Table 6). It is commonly believed that PCs model such environment effects well (Novembre et al., 2008; Zhang and Pan, 2015; Lin et al., 2021). However, we observe that LMM without PCs models environment effects nearly as well as with PCs (Figure 8), consistent with previous findings (Vilhjálmsson and Nordborg, 2013; Wang et al., 2022) and with environment inflating heritability estimates using LMM (Heckerman et al., 2016). Moreover, modeling the true environment groups as fixed categorical effects always substantially improved compared to modeling them with PCs (Figure 8, Table 6). Modeling numerous environment groups as fixed effects does result in deflated p-values (Figure 8, Table 6), which we expect would be avoided by modeling them as random effects, a strategy we chose not to pursue here as it is both a circular evaluation (the true effects were drawn from that model) and out of scope. Overall, including PCs to model environment effects yields limited power gains if at all, even in an LMM, and is no replacement for more adequate modeling of environment whenever possible.
Previous studies found that PCA was better calibrated than LMM for unusually differentiated markers (Price et al., 2010; Wu et al., 2011; Yang et al., 2014), which as simulated were an artificial scenario not based on a population genetics model, and are otherwise believed to be unusual (Sul and Eskin, 2013; Price et al., 2013). Our evaluations on real human data, which contain such loci in relevant proportions if they exist, do not replicate that result. Family relatedness strongly favors LMM, an advantage that probably outweighs this potential PCA benefit in real data.
Relative to LMM, the behavior of PCA fell between two extremes. When PCA performed well, there was a small number of PCs with both calibrated p-values and near that of LMM without PCs. Conversely, PCA performed poorly when no number of PCs had either calibrated p-values or acceptably large . There were no cases where high numbers of PCs optimized an acceptable , or cases with miscalibrated p-values but high . PCA performed well in the admixture simulations (without families, both trait models), real human genotypes with RC traits, and the subpopulation tree simulations (both trait models). Conversely, PCA performed poorly in the admixed family simulation (both trait models) and the real human genotypes with FES traits.
PCA assumes that genetic relatedness is restricted to a low-dimensional subspace, whereas LMM can handle high-dimensional relatedness. Thus, PCA performs well in the admixture simulation, which is explicitly low-dimensional (see Genotype simulation from the admixture model), and our subpopulation tree simulations, which are likely well approximated by a few dimensions despite the large number of subpopulations because there are few long branches. Conversely, PCA performs poorly under family structure because its kinship matrix is high-dimensional (Figure 6—figure supplement 1). However, estimating the latent space dimensions of real datasets is challenging because estimated eigenvalues have biased distributions (Hayashi et al., 2018). Kinship matrix rank estimated using the Tracy-Widom test (Patterson et al., 2006) did not fully predict the datasets that PCA performs well on. In contrast, estimated local kinship finds considerable cryptic family relatedness in all real human datasets and better explains why PCA performs poorly there. The trait model also influences the relative performance of PCA, so genotype-only parameters (eigenvalues or local kinship) alone cannot tell the full story. There are related tests for numbers of dimensions that consider the trait which we did not consider, including the Bayesian information criterion for the regression with PCs against the trait (Zhu and Yu, 2009). Additionally, PCA and LMM goodness of fit could be compared using the coefficient of determination generalized for LMMs (Sun et al., 2010).
PCA is at best underpowered relative to LMMs, and at worst miscalibrated regardless of the numbers of PCs included, in real human genotype tests. Among our simulations, such poor performance occurred only in the admixed family. Local kinship estimates reveal considerable family relatedness in the real datasets absent in the corresponding subpopulation tree simulations. Admixture is also absent in our tree simulations, but our simulations and theory show that admixture is well handled by PCA. Hundreds of close relative pairs have been identified in 1000 Genomes (Gazal et al., 2015; Al Khudhair et al., 2015; Fedorova et al., 2016; Schlauch et al., 2017), but their removal does not improve PCA performance sufficiently in our tests, so the larger number of more distantly related pairs are PCA’s most serious obstacle in practice. Distant relatives are expected to be numerous in any large human dataset (Henn et al., 2012; Shchur and Nielsen, 2018; Loh et al., 2018). Our FES trait tests show that family relatedness is more challenging when rarer variants have larger coefficients. Overall, the high relatedness dimensions induced by family relatedness is the key challenge for PCA association in modern datasets that is readily overcome by LMM.
Our tests also found PCA robust to large numbers of PCs, far beyond the optimal choice, agreeing with previous anecdotal observations (Price et al., 2006; Kang et al., 2010), in contrast to using too few PCs for which there is a large performance penalty. The exception was the small sample size simulation, where only small numbers of PCs performed well. In contrast, LMM is simpler since there is no need to choose the number of PCs. However, an LMM with a large number of covariates may have conservative p-values, as observed for LMM with large numbers of PCs, which is a weakness of the score test used by the LMM we evaluated that may be overcome with other statistical tests. Simulations or post hoc evaluations remain crucial for ensuring that statistics are calibrated.
There are several variants of the PCA and LMM analyses, most designed for better modeling linkage disequilibrium (LD), that we did not evaluate directly, in which PCs are no longer exactly the top eigenvectors of the kinship matrix (if estimated with different approaches), although this is not a crucial aspect of our arguments. We do not consider the case where samples are projected onto PCs estimated from an external sample (Privé et al., 2020), which is uncommon in association studies, and whose primary effect is shrinkage, so if all samples are projected then they are all equally affected and larger regression coefficients compensate for the shrinkage, although this will no longer be the case if only a portion of the sample is projected onto the PCs of the rest of the sample. Another approach tests PCs for association against every locus in the genome in order to identify and exclude PCs that capture LD structure (which is localized) instead of ancestry (which should be present across the genome; Privé et al., 2020); a previous proposal removes LD using an autocorrelation model prior to estimating PCs (Patterson et al., 2006). These improved PCs remain inadequate models of family relatedness, so an LMM will continue to outperform them in that setting. Similarly, the leave-one-chromosome-out (LOCO) approach for estimating kinship matrices for LMMs prevents the test locus and loci in LD with it from being modeled by the random effect as well, which is called ‘proximal contamination’ (Lippert et al., 2011; Yang et al., 2014). While LOCO kinship estimates vary for each chromosome, they continue to model family relatedness, thus maintaining their key advantage over PCA. The LDAK model estimates kinship instead by weighing loci taking LD into account (Speed et al., 2012). LD effects must be adjusted for, if present, so in unfiltered data we advise the previous methods be applied. However, in this work, simulated genotypes do not have LD, and the real datasets were filtered to remove LD, so here there is no proximal contamination and LD confounding is minimized if present at all, so these evaluations may be considered the ideal situation where LD effects have been adjusted successfully, and in this setting LMM outperforms PCA. Overall, these alternative PCs or kinship matrices differ from their basic counterparts by either the extent to which LD influences the estimates (which may be a confounder in a small portion of the genome, by definition) or by sampling noise, neither of which are expected to change our key conclusion.
One of the limitations of this work include relatively small sample sizes compared to modern association studies. However, our conclusions are not expected to change with larger sample sizes, as cryptic family relatedness will continue to be abundant in such data, if not increase in abundance, and thus give LMMs an advantage over PCA (Henn et al., 2012; Shchur and Nielsen, 2018; Loh et al., 2018). One reason PCA has been favored over classic LMMs is because PCA’s runtime scales much better with increasing sample size. However, recent approaches not tested in this work have made LMMs more scalable and applicable to biobank-scale data (Loh et al., 2015; Zhou et al., 2018; Mbatchou et al., 2021), so one clear next step is carefully evaluating these approaches in simulations with larger sample sizes. A different benefit for including PCs were recently reported for BOLT-LMM, which does not result in greater power but rather in reduced runtime, a property that may be specific to its use of scalable algorithms such as conjugate gradient and variational Bayes (Loh et al., 2018). Many of these newer LMMs also no longer follow the infinitesimal model of the basic LMM (Loh et al., 2015; Mbatchou et al., 2021), and employ novel approximations, which are features not evaluated in this work and worthy of future study.
Another limitation of this work is ignoring rare variants, a necessity given our smaller sample sizes, where rare variant association is miscalibrated and underpowered. Using simulations mimicking the UK Biobank, recent work has found that rare variants can have a more pronounced structure than common variants, and that modeling this rare variant structure (with either PCA and LMM) may better model environment confounding, reduce inflation in association studies, and ameliorate stratification in polygenic risk scores (Zaidi and Mathieson, 2020). Better modeling rare variants and their structure is a key next step in association studies.
The largest limitation of our work is that we only considered quantitative traits. Previous evaluations involving case-control traits tended to report PCA-LMM ties or mixed results, an observation potentially confounded by the use of low-dimensional simulations without family relatedness (Table 1). An additional concern is case-control ascertainment bias and imbalance, which appears to affect LMMs more severely, although recent work appears to solve this problem (Yang et al., 2014; Zhou et al., 2018). Future evaluations should aim to include our simulations and real datasets, to ensure that previous results were not biased in favor of PCA by not simulating family structure or larger coefficients for rare variants that are expected for diseases by various selection models.
Overall, our results lead us to recommend LMM over PCA for association studies in general. Although PCA offer flexibility and speed compared to LMM, additional work is required to ensure that PCA is adequate, including removal of close relatives (lowering sample size and wasting resources) followed by simulations or other evaluations of statistics, and even then PCA may perform poorly in terms of both type I error control and power. The large numbers of distant relatives expected of any real dataset all but ensures that PCA will perform poorly compared to LMM (Henn et al., 2012; Shchur and Nielsen, 2018; Loh et al., 2018). Our findings also suggest that related applications such as polygenic models may enjoy gains in power and accuracy by employing an LMM instead of PCA to model relatedness (Rakitsch et al., 2013; Qian et al., 2020). PCA remains indispensable across population genetics, from visualizing population structure and performing quality control to its deep connection to admixture models, but the time has come to limit its use in association testing in favor of LMM or other, richer models capable of modeling all forms of relatedness.
Materials and methods
The complex trait model and PCA and LMM approximations
Request a detailed protocolLet be the genotype at the biallelic locus for individual , which counts the number of reference alleles. Suppose there are individuals and loci, is their genotype matrix, and is the length- column vector of individual trait values. The additive linear model for a quantitative (continuous) trait is:
where 1 is a length- vector of ones, is the scalar intercept coefficient, is the length- vector of locus coefficients, is a design matrix of environment effects and other covariates, is the vector of environment coefficients, is a length- vector of residuals, and the superscript prime symbol () denotes matrix transposition. The residuals follow independently per individual , for some .
The full model of Equation 1, which has a coefficient for each of the loci, is underdetermined in current datasets where . The PCA and LMM models, respectively, approximate the full model fit at a single locus :
where is the length- vector of genotypes at locus only, is the locus coefficient, is an matrix of PCs, is the length- vector of PC coefficients, is a length- vector of random effects, is the kinship matrix conditioned on the ancestral population , and is a variance factor. Both models condition the regression of the focal locus on an approximation of the total polygenic effect with the same covariance structure, which is parameterized by the kinship matrix. Under the kinship model, genotypes are random variables obeying
where is the ancestral allele frequency of locus (Malécot, 1948; Wright, 1949; Jacquard, 1970; Astle and Balding, 2009). Assuming independent loci, the covariance of the polygenic effect is
which is readily modeled by the LMM random effect , where the difference in mean is absorbed by the intercept. Alternatively, consider the eigendecomposition of the kinship matrix where is the eigenvector matrix and is the diagonal matrix of eigenvalues. The random effect can be written as
which follows from the affine transformation property of multivariate normal distributions. Therefore, the PCA term can be derived from the above equation under the additional assumption that the kinship matrix has approximate rank and the coefficients are fit without constraints. In contrast, the LMM uses all eigenvectors, while effectively shrinking their coefficients as all random effects models do, although these parameters are marginalized (Astle and Balding, 2009; Janss et al., 2012; Hoffman and Dubé, 2013; Zhang and Pan, 2015). PCA has more parameters than LMM, so it may overfit more: ignoring the shared terms in Equation 2 and Equation 3, PCA fits parameters (length of ), whereas LMMs fit only one ().
In practice, the kinship matrix used for PCA and LMM is estimated with variations of a method-of-moments formula applied to standardized genotypes , which is derived from Equation 4:
where the unknown is estimated by (Price et al., 2006; Kang et al., 2008; Kang et al., 2010; Yang et al., 2011; Zhou and Stephens, 2012; Yang et al., 2014; Loh et al., 2015; Sul et al., 2018; Zhou et al., 2018). However, this kinship estimator has a complex bias that differs for every individual pair, which arises due to the use of this estimated (Ochoa and Storey, 2021; Ochoa and Storey, 2019). Nevertheless, in PCA and LMM these biased estimates perform as well as unbiased ones (Hou et al., 2023b).
We selected fast and robust software implementing the basic PCA and LMM models. PCA association was performed with plink2 (Chang et al., 2015). The quantitative trait association model is a linear regression with covariates, evaluated using the t-test. PCs were calculated with plink2, which equal the top eigenvectors of Equation 5 after removing loci with minor allele frequency .
LMM association was performed using GCTA (Yang et al., 2011; Yang et al., 2014). Its kinship estimator equals Equation 5. PCs were calculated using GCTA from its kinship estimate. Association significance is evaluated with a score test. In the small simulation only, GCTA with large numbers of PCs had convergence and singularity errors in some replicates, which were treated as missing data.
Simulations
Every simulation was replicated 50 times, drawing anew all genotypes (except for real datasets) and traits. Below we use the notation for the inbreeding coefficient of a subpopulation from another subpopulation ancestral to . In the special case of the total inbreeding of , , is an overall ancestral population, which is ancestral to every individual under consideration, such as the most recent common ancestor (MRCA) population.
Genotype simulation from the admixture model
Request a detailed protocolThe basic admixture model is as described previously (Ochoa and Storey, 2021) and is implemented in the R package bnpsd. Both Large and Family simulations have individuals, while Small has . The number of loci is . Individuals are admixed from intermediate subpopulations, or ancestries. Each subpopulation () is at coordinate and has an inbreeding coefficient for some . Ancestry proportions for individual and arise from a random walk with spread on the 1D geography, and and are fit to give and mean kinship for the admixed individuals (Ochoa and Storey, 2021). Random ancestral allele frequencies , subpopulation allele frequencies , individual-specific allele frequencies , and genotypes are drawn from this hierarchical model:
where this Beta is the Balding-Nichols distribution (Balding and Nichols, 1995) with mean and variance . Fixed loci ( where for all , or for all ) are drawn again from the model, starting from , iterating until no loci are fixed. Each replicate draws a genotypes starting from .
As a brief aside, we prove that global ancestry proportions as covariates is equivalent in expectation to using PCs under the admixture model. Note that the latent space of , which is the subspace to which the data is constrained by the admixture model, is given by , which has dimensions (number of columns of ), so the top PCs span this space. Since associations include an intercept term ( in Equation 2), estimated PCs are orthogonal to 1 (note because ), and the sum of rows of sums to one, then only PCs plus the intercept are needed to span the latent space of this admixture model.
Genotype simulation from random admixed families
Request a detailed protocolWe simulated a pedigree with admixed founders, no close relative pairings, assortative mating based on a 1D geography (to preserve admixture structure), random family sizes, and arbitrary numbers of generations (20 here). This simulation is implemented in the R package simfam. Generations are drawn iteratively. Generation 1 has individuals from the above admixture simulation ordered by their 1D geography. Local kinship measures pedigree relatedness; in the first generation, everybody is locally unrelated and outbred. Individuals are randomly assigned sex. In the next generation, individuals are paired iteratively, removing random males from the pool of available males and pairing them with the nearest available female with local kinship (stay unpaired if there are no matches), until there are no more available males or females. Let be the desired population size, the minimum number of children per family and nf the number of families (paired parents) in the current generation, then the number of additional children (beyond the minimum) is drawn from . Let be the difference between desired and current population sizes. If , then random families are incremented by 1. If , then random families with at least children are decremented by 1. If exceeds the number of families, all families are incremented or decremented as needed and the process is iterated. Children are assigned sex randomly, and are reordered by the average coordinate of their parents. Children draw alleles from their parents independently per locus. A new random pedigree is drawn for each replicate, as well as new founder genotypes from the admixture model.
Genotype simulation from a subpopulation tree model
Request a detailed protocolThis model draws subpopulations allele frequencies from a hierarchical model parameterized by a tree, which is also implemented in bnpsd and relies on the R package ape for general tree data structures and methods (Paradis and Schliep, 2019). The ancestral population is the root, and each node is a subpopulation indexed arbitrarily. Each edge between and its parent population has an inbreeding coefficient . are drawn from a given distribution, which is constructed to mimic each real dataset in Appendix 1. Given the allele frequencies of the parent population, ’s allele frequencies are drawn from:
Individuals in draw genotypes from its allele frequency: Loci with are drawn again starting from the distribution, iterating until no such loci remain.
Fitting subpopulation tree to real data
Request a detailed protocolWe developed new methods to fit trees to real data based on unbiased kinship estimates from popkin, implemented in bnpsd. A tree with given inbreeding coefficients for its edges (between subpopulation and its parent ) gives rise to a coancestry matrix for a subpopulation pair (), and the goal is to recover these edge inbreeding coefficients from coancestry estimates. Coancestry values are total inbreeding coefficients of the MRCA population of each subpopulation pair. Therefore, we calculate for every recursively from the root as follows. Nodes with parent are already as desired. Given , the desired is calculated via the ‘additive edge’ (Ochoa and Storey, 2021):
These because for every . Edge inbreeding coefficients can be recovered from additive edges: . Overall, coancestry values are sums of over common ancestor nodes,
where the sum includes all , and equals 1 if is a common ancestor of , 0 otherwise. Note that reflects tree topology and edge values.
To estimate population-level coancestry, first kinship () is estimated using popkin (Ochoa and Storey, 2021). Individual coancestry () is estimated from kinship using
Lastly, coancestry between subpopulations are averages of individual coancestry values:
Topology is estimated with hierarchical clustering using the weighted pair group method with arithmetic mean (Sokal and Michener, 1958), with distance function which succeeds due to the monotonic relationship between node depth and coancestry (Equation 7). This algorithm recovers the true topology from the true coancestry values, and performs well for estimates from genotypes.
To estimate tree edge lengths, first are estimated from and the topology using Equation 7 and non-negative least squares linear regression (Lawson and Hanson, 1974) (implemented in nnls; Mullen, 2012) to yield non-negative , and are calculated from by reversing Equation 5. To account for small biases in coancestry estimation, an intercept term is included ( for all ), and when converting to , is treated as an additional edge to the root, but is ignored when drawing allele frequencies from the tree.
Trait simulation
Request a detailed protocolTraits are simulated from the quantitative trait model of Equation 1, with novel bias corrections for simulating the desired heritability from real data relying on the unbiased kinship estimator popkin (Ochoa and Storey, 2021). This simulation is implemented in the R package simtrait. All simulations have a fixed narrow-sense heritability of , a variance proportion due to environment effects , and residuals are drawn from with . The number of causal loci m1, which determines the average coefficient size, is chosen with the heuristic formula , which empirically balances power well with varying and . The set of causal loci is drawn anew for each replicate, from loci with to avoid rare causal variants, which are not discoverable by PCA or LMM at the sample sizes we considered. Letting , the effect size of locus equals , its contribution of the trait variance (Park et al., 2010). Under the fixed effect sizes (FES) model, initial causal coefficients are
for known ; otherwise is replaced by the unbiased estimator (Ochoa and Storey, 2021) where is the mean kinship estimated with popkin. Each causal locus is multiplied by –1 with probability 0.5. Alternatively, under the random coefficients (RC) model, initial causal coefficients are drawn independently from . For both models, the initial genetic variance is replacing with for unknown (so is an unbiased estimate), so we multiply every initial by to have the desired heritability. Lastly, for known , the intercept coefficient is When are unknown, should not replace since that distorts the trait covariance (for the same reason the standard kinship estimator in Equation 5 is biased), which is avoided with
Simulations optionally included multiple environment group effects, similarly to previous models (Zhang and Pan, 2015; Wang et al., 2022), as follows. Each independent environment has predefined groups, and each group has random coefficients drawn independent from where is a specified variance proportion for environment . has individuals along columns and environment-groups along rows, and it contains indicator variables: 1 if the individual belongs to the environment-group, 0 otherwise.
We performed trait simulations with the following variance parameters (Table 7): high heritability used and no environment effects; low heritability used and no environment effects; lastly, environment used (total ). For real genotype datasets, the groups are the continental (environment 1) and fine-grained (environment 2) subpopulation labels given (see next subsection). For simulated genotypes, we created these labels by grouping by the index (geographical coordinate) of each simulated individual, assigning group where ki is the number of groups in environment , and we selected and to mimic the number of groups in each level of 1000 Genomes (Table 2).
Real human genotype datasets
Request a detailed protocolThe three datasets were processed as before (Ochoa and Storey, 2019; summarized below), except with an additional filter so loci are in approximate linkage equilibrium and rare variants are removed. All processing was performed with plink2 (Chang et al., 2015), and analysis was uniquely enabled by the R packages BEDMatrix (Grueneberg and de Los Campos, 2019) and genio. Each dataset groups individuals in a two-level hierarchy: continental and fine-grained subpopulations. Final dataset sizes are in Table 2.
We obtained the full (including non-public) Human Origins by contacting the authors and agreeing to their usage restrictions. The Pacific data (Skoglund et al., 2016) was obtained separately from the rest (Lazaridis et al., 2014; Lazaridis et al., 2016), and datasets were merged using the intersection of loci. We removed ancient individuals, and individuals from singleton and non-native subpopulations. Non-autosomal loci were removed. Our analysis of both the whole-genome sequencing (WGS) version of HGDP (Bergström et al., 2020) and the high-coverage NYGC version of 1000 Genomes (Fairley et al., 2020) was restricted to autosomal biallelic SNP loci with filter “PASS”.
Since our evaluations assume uncorrelated loci, we filtered each real dataset with plink2 using parameters “--indep-pairwise 1000kb 0.3”, which iteratively removes loci that have a greater than 0.3 squared correlation coefficient with another locus that is within 1000 kb, stopping until no such loci remain. Since all real datasets have numerous rare variants, while PCA and LMM are not able to detect associations involving rare variants, we removed all loci with . Lastly, only HGDP had loci with over 10% missingness removed, as they were otherwise 17% of remaining loci (for Human Origins and 1000 Genomes they were under 1% of loci so they were not removed). Kinship matrix rank and eigenvalues were calculated from popkin kinship estimates. Eigenvalues were assigned p-values with twstats of the Eigensoft package (Patterson et al., 2006), and kinship matrix rank was estimated as the largest number of consecutive eigenvalue from the start that all satisfy (p-values did not increase monotonically). For the evaluation with close relatives removed, each dataset was filtered with plink2 with option “--king-cutoff” with cutoff 0.02209709 () for removing up to 4th degree relatives using KING-robust (Manichaikul et al., 2010), and filter is reapplied (Table 4).
Evaluation of performance
Request a detailed protocolAll approaches are evaluated using two complementary metrics: quantifies p-value uniformity, and measures causal locus classification performance and reflects power while ranking miscalibrated models fairly. These measures are more robust alternatives to previous measures from the literature (Appendix 2), and are implemented in simtrait.
P-values for continuous test statistics have a uniform distribution when the null hypothesis holds, a crucial assumption for type I error and FDR control (Storey, 2003; Storey and Tibshirani, 2003). We use the Signed Root Mean Square Deviation () to measure the difference between the observed null p-value quantiles and the expected uniform quantiles:
where is the number of null (non-causal) loci, here indexes null loci only, is the th ordered null p-value, is its expectation, is the median observed null p-value, is its expectation, and sgn is the sign function (1 if , –1 otherwise). Thus, corresponds to calibrated p-values, indicate anti-conservative p-values, and are conservative p-values. The maximum is achieved when all p-values are zero (the limit of anti-conservative p-values), which for infinite loci approaches
The same value with a negative sign occurs for all p-values of 1.
Precision and recall are standard performance measures for binary classifiers that do not require calibrated p-values (Grau et al., 2015). Given the total numbers of true positives (TP), false positives (FP) and false negatives (FN) at some threshold or parameter , precision and recall are
Precision and Recall trace a curve as is varied, and the area under this curve is . We use the R package PRROC to integrate the correct non-linear piecewise function when interpolating between points. A model obtains the maximum if there is a that classifies all loci perfectly. In contrast, the worst models, which classify at random, have an expected precision () equal to the overall proportion of causal loci: .
Data and code availability
Request a detailed protocolThe data and code generated during this study are available on GitHub at https://github.com/OchoaLab/pca-assoc-paper (copy archived at Ochoa, 2023). The public subset of Human Origins is available on the Reich Lab website at https://reich.hms.harvard.edu/datasets; non-public samples have to be requested from David Reich. The WGS version of HGDP was downloaded from the Wellcome Sanger Institute FTP site at ftp://ngs.sanger.ac.uk/production/hgdp/hgdp_wgs.20190516/. The high-coverage version of the 1000 Genomes Project was downloaded from ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/data_collections/1000G_2504_high_coverage/working/20190425_NYGC_GATK/.
Web resources
Request a detailed protocolplink2, https://www.cog-genomics.org/plink/2.0/ ; GCTA, https://yanglab.westlake.edu.cn/software/gcta/ ; Eigensoft, https://github.com/DReichLab/EIG ; bnpsd, https://cran.r-project.org/package=bnpsd ; simfam, https://cran.r-project.org/package=simfam ; simtrait, https://cran.r-project.org/package=simtrait ; genio, https://cran.r-project.org/package=genio ; popkin, https://cran.r-project.org/package=popkin ; ape, https://cran.r-project.org/package=ape ; nnls, https://cran.r-project.org/package=nnls ; PRROC, https://cran.r-project.org/package=PRROC ; BEDMatrix, https://cran.r-project.org/package=BEDMatrix.
Appendix 1
Fitting ancestral allele frequency distribution to real data
We calculated distributions of each real dataset. However, population structure increases the variance of these sample relative to the true (Ochoa and Storey, 2021). We present a new algorithm for constructing a new distribution based on the input data but with the lower variance of the true ancestral distribution. Suppose the distribution over loci satisfies and . The sample allele frequency , conditioned on , satisfies
where is the mean kinship over all individual (Ochoa and Storey, 2021). The unconditional moments of follow from the laws of total expectation and variance: and
Since and , then . Thus, the goal is to construct a new distribution with the original, lower variance of
We use the unbiased estimator while is calculated from the tree parameters: the subpopulation coancestry matrix (Equation 7), expanded from subpopulations to individuals, the diagonal converted to kinship (reversing Equation 5), and the matrix averaged. However, since our model ignores the MAF filters imposed in our simulations, was adjusted. For Human Origins the true model of 0.143 was used. For 1000 Genomes and HGDP the true are 0.126 and 0.124, respectively, but 0.4 for both produced a better fit.
Lastly, we construct new allele frequencies,
by a weighted average of and drawn independently from a different distribution. is required to have . The resulting variance is
which we equate to the desired (Equation 9) and solve for . For simplicity, we also set , which is achieved with:
Although yields , we use the second root of the quadratic equation to use :
Appendix 2
Comparisons between , , and evaluation measures from the literature
2.1 The inflation factor
Test statistic inflation has been used to measure model calibration (Astle and Balding, 2009; Price et al., 2010). The inflation factor is defined as the median association statistic divided by theoretical median under the null hypothesis (Devlin and Roeder, 1999). To compare p-values from non- tests (such as t-statistics), can be calculated from p-values using
where is the median observed p-value (including causal loci), is its null expectation, and is the cumulative density function ( is the quantile function).
To compare and directly, for simplicity assume that all p-values are null. In this case, calibrated p-values give and . However, non-uniform p-values with the expected median, such as from genomic control (Devlin and Roeder, 1999), result in , but except for uniform p-values, a key flaw of that overcomes. Inflated statistics (anti-conservative p-values) give and . Deflated statistics (conservative p-values) give and . Thus, always implies (where and have the same sign), but not the other way around. Overall, depends only on the median p-value, while uses the complete distribution. However, requires knowing which loci are null, so unlike it is only applicable to simulated traits.
2.2 Empirical comparison of and
There is a near one-to-one correspondence between and in our data (Figure 2—figure supplement 1). PCA tended to be inflated ( and ) whereas LMM tended to be deflated ( and ), otherwise the data for both models fall on the same contiguous curve. We fit a sigmoidal function to this data,
which for satisfies and reflects about zero ():
We fit this model to only since it was less noisy and of greater interest, and obtained the curve shown in Figure 2—figure supplement 1 with and . The value , a common threshold for benign inflation (Price et al., 2010), corresponds to according to Equation 10. Conversely, , serving as a simpler rule of thumb, corresponds to .
2.3 Type I error rate
The type I error rate is the proportion of null p-values with . Calibrated p-values have type I error rate near , which may be evaluated with a binomial test. This measure may give different results for different , for example be significantly miscalibrated only for large (due to lack of power for smaller ), and it requires large simulations to estimate well as it depends on the tail of the distribution. In contrast, uses the entire distribution so it is easier to estimate, guarantees calibrated type I error rates at all , while large indicates incorrect type I errors for a range of . Empirically, we find the expected agreement and monotonic relationship between and type I error rate (Figure 2—figure supplement 2).
2.4 Statistical power and comparison to
Power is the probability that a test is declared significant when the alternative hypothesis H1 holds. At a p-value threshold , power equals
is a cumulative function, so it is monotonically increasing and has an inverse. Like type I error control, power may rank models differently depending on , and it is also harder to estimate than because power depends on the tail of the distribution.
Power is not meaningful when p-values are not calibrated. To establish a clear connection to , assume calibrated (uniform) null p-values: . TPs, FPs, and FNs at are
where is the proportion of null cases and of alternative cases. Therefore,
Noting that , precision can be written as a function of recall, the power function, and constants:
This last form leads most clearly to .
Lastly, consider a simple yet common case in which model is uniformly more powerful than model for every . Therefore for every recall value. This ensures that the precision of is greater than that of at every recall value, so is greater for than . Thus, ranks calibrated models according to power.
Empirically, we find the predicted positive correlation between and calibrated power (Figure 2—figure supplement 3). The correlation is clear when considered separately per dataset, but the slope varies per dataset, which is expected because the proportion of alternative cases varies per dataset.
Data availability
The current manuscript is a computational study, so no data have been generated for this manuscript. Code is available at https://github.com/OchoaLab/pca-assoc-paper (copy archived at Ochoa, 2023).
-
International Genome Sample ResourceID NYGC_GATK/. 1000 Genomes Project, high-coverage version.
-
Wellcome Sanger InstituteID wgs.20190516/. Human Genome Diversity Panel, whole-genome sequencing version.
References
-
Fast model-based estimation of ancestry in unrelated individualsGenome Research 19:1655–1664.https://doi.org/10.1101/gr.094052.109
-
Inference of distant genetic relations in humans using "1000 Genomes"Genome Biology and Evolution 7:481–492.https://doi.org/10.1093/gbe/evv003
-
Population structure and cryptic relatedness in genetic Association studiesStatistical Science 24:451–471.https://doi.org/10.1214/09-STS307
-
Inferring population structure in biobank-scale genomic dataAmerican Journal of Human Genetics 109:727–737.https://doi.org/10.1016/j.ajhg.2022.02.015
-
Genetic diversity and Association studies in US Hispanic/Latino populations: Applications in the Hispanic community health study/study of LatinosThe American Journal of Human Genetics 98:165–184.https://doi.org/10.1016/j.ajhg.2015.12.001
-
Model-free estimation of recent genetic relatednessThe American Journal of Human Genetics 98:127–148.https://doi.org/10.1016/j.ajhg.2015.11.022
-
Genomic control for Association studiesBiometrics 55:997–1004.https://doi.org/10.1111/j.0006-341x.1999.00997.x
-
The International genome sample resource (IGSR) collection of open human Genomic variation resourcesNucleic Acids Research 48:D941–D947.https://doi.org/10.1093/nar/gkz836
-
Atlas of cryptic genetic relatedness among 1000 human GenomesGenome Biology and Evolution 8:777–790.https://doi.org/10.1093/gbe/evw034
-
Fast principal-component analysis reveals CONVERGENT evolution of Adh1B in Europe and East AsiaAmerican Journal of Human Genetics 98:456–472.https://doi.org/10.1016/j.ajhg.2015.12.022
-
High level of inbreeding in final phase of 1000 Genomes projectScientific Reports 5:17453.https://doi.org/10.1038/srep17453
-
Scaling probabilistic models of genetic variation to millions of humansNature Genetics 48:1587–1590.https://doi.org/10.1038/ng.3710
-
Bgdata - A suite of R packages for Genomic analysis with big dataG3: Genes, Genomes, Genetics 9:1377–1383.https://doi.org/10.1534/g3.119.400018
-
BookOn the bias in Eigenvalues of sample covariance matrixIn: Wiberg M, Culpepper S, Janssen R, González J, Molenaar D, editors. Quantitative Psychology Springer Proceedings in Mathematics & Statistics. Cham: Springer International Publishing. pp. 221–233.https://doi.org/10.1007/978-3-319-77249-3_19
-
Prioritizing diversity in human Genomics researchNature Reviews Genetics 19:175–185.https://doi.org/10.1038/nrg.2017.89
-
Misuse of the term ‘Trans-ethnic’ in Genomics researchNature Genetics 53:1520–1521.https://doi.org/10.1038/s41588-021-00952-6
-
Fast linear mixed models for genome-wide Association studiesNature Methods 8:833–835.https://doi.org/10.1038/nmeth.1681
-
Controlling population structure in human genetic association studies with samples of unrelated individualsStatistics and Its Interface 4:317–326.https://doi.org/10.4310/sii.2011.v4.n3.a6
-
Mixed-model association for biobank-scale datasetsNature Genetics 50:906–908.https://doi.org/10.1038/s41588-018-0144-6
-
Human demographic history impacts genetic risk prediction across diverse populationsAmerican Journal of Human Genetics 100:635–649.https://doi.org/10.1016/j.ajhg.2017.03.004
-
Challenges in conducting genome-wide Association studies in highly admixed multi-ethnic populations: The generation R studyEuropean Journal of Epidemiology 30:317–330.https://doi.org/10.1007/s10654-015-9998-4
-
SoftwareStokkum Ihmv, Nnls: The Lawson-Hanson algorithm for non-negative least squares (NNLS)The Comprehensive R Archive Network.
-
SoftwarePca-Assoc-paper, version swh:1:rev:8549eafe6c27583894640e6cd8639232ed15cadeSoftware Heritage.
-
Extreme Polygenicity of complex traits is explained by negative selectionAmerican Journal of Human Genetics 105:456–476.https://doi.org/10.1016/j.ajhg.2019.07.003
-
Ancient admixture in human historyGenetics 192:1065–1093.https://doi.org/10.1534/genetics.112.145037
-
New approaches to population stratification in genome-wide association studiesNature Reviews Genetics 11:459–463.https://doi.org/10.1038/nrg2813
-
Association mapping in structured populationsAmerican Journal of Human Genetics 67:170–181.https://doi.org/10.1086/302959
-
Multi-ethnic genome-wide Association study for atrial fibrillationNature Genetics 50:1225–1233.https://doi.org/10.1038/s41588-018-0133-9
-
Genetic structure of human populationsScience 298:2381–2385.https://doi.org/10.1126/science.1078311
-
Genome-wide Association studies in diverse populationsNature Reviews Genetics 11:356–366.https://doi.org/10.1038/nrg2760
-
On the number of siblings and p-th cousins in a large population sampleJournal of Mathematical Biology 77:1279–1298.https://doi.org/10.1007/s00285-018-1252-8
-
A statistical method for evaluating systematic relationshipsUniv Kansas, Sci Bull 38:1409–1438.
-
Testing for genetic associations in arbitrarily structured populationsNature Genetics 47:550–554.https://doi.org/10.1038/ng.3244
-
Improved Heritability estimation from genome-wide SNPsAmerican Journal of Human Genetics 91:1011–1021.https://doi.org/10.1016/j.ajhg.2012.10.010
-
The positive false discovery rate: A Bayesian interpretation and the Q-valueThe Annals of Statistics 31:2013–2035.https://doi.org/10.1214/aos/1074290335
-
Mixed models can correct for population structure for Genomic regions under selectionNature Reviews Genetics 14:300.https://doi.org/10.1038/nrg2813-c1
-
Rapid variance components–based method for whole-genome Association analysisNature Genetics 44:1166–1170.https://doi.org/10.1038/ng.2410
-
ROADTRIPS: Case-control Association testing with partially or completely unknown population and pedigree structureAmerican Journal of Human Genetics 86:172–184.https://doi.org/10.1016/j.ajhg.2010.01.001
-
The nature of confounding in genome-wide Association studiesNature Reviews Genetics 14:1–2.https://doi.org/10.1038/nrg3382
-
Trade-offs of linear mixed models in genome-wide Association studiesJournal of Computational Biology 29:233–242.https://doi.org/10.1089/cmb.2021.0157
-
The Genetical structure of populationsAnnals of Eugenics 15:323–354.https://doi.org/10.1111/j.1469-1809.1949.tb02451.x
-
GCTA: a tool for genome-wide complex trait analysisThe American Journal of Human Genetics 88:76–82.https://doi.org/10.1016/j.ajhg.2010.11.011
-
Mixed linear model approach adapted for genome-wide Association studiesNature Genetics 42:355–360.https://doi.org/10.1038/ng.546
-
Eigenanalysis of SNP data with an identity by descent interpretationTheoretical Population Biology 107:65–76.https://doi.org/10.1016/j.tpb.2015.09.004
-
Genome-Wide efficient mixed-model analysis for association studiesNature Genetics 44:821–824.https://doi.org/10.1038/ng.2310
-
Strong selection at MHC in Mexicans since admixturePLOS Genetics 12:e1005847.https://doi.org/10.1371/journal.pgen.1005847
Article and author information
Author details
Funding
Whitehead Foundation
- Alejandro Ochoa
The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.
Acknowledgements
Thanks to Tiffany Tu, Ratchanon Pornmongkolsuk, and Zhuoran Hou for feedback on this article. This work was funded in part by the Duke University School of Medicine Whitehead Scholars Program, a gift from the Whitehead Charitable Foundation. The 1000 Genomes data were generated at the New York Genome Center with funds provided by NHGRI Grant 3UM1HG008901-03S1.
Copyright
© 2023, Yao and Ochoa
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics
-
- 1,430
- views
-
- 140
- downloads
-
- 7
- citations
Views, downloads and citations are aggregated across all versions of this paper published by eLife.
Download links
Downloads (link to download the article as PDF)
Open citations (links to open the citations from this article in various online reference manager services)
Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)
Further reading
-
- Cancer Biology
- Genetics and Genomics
The expression of eukaryotic genes relies on the precise 3'-terminal cleavage and polyadenylation of newly synthesized pre-mRNA transcripts. Defects in these processes have been associated with various diseases, including cancer. While cancer-focused sequencing studies have identified numerous driver mutations in protein-coding sequences, noncoding drivers – particularly those affecting the cis-elements required for pre-mRNA cleavage and polyadenylation – have received less attention. Here, we systematically analysed somatic mutations affecting 3'UTR polyadenylation signals in human cancers using the Pan-Cancer Analysis of Whole Genomes (PCAWG) dataset. We found a striking enrichment of cancer-specific somatic mutations that disrupt strong and evolutionarily conserved cleavage and polyadenylation signals within tumour suppressor genes. Further bioinformatics and experimental analyses conducted as a part of our study suggest that these mutations have a profound capacity to downregulate the expression of tumour suppressor genes. Thus, this work uncovers a novel class of noncoding somatic mutations with significant potential to drive cancer progression.
-
- Developmental Biology
- Genetics and Genomics
O-GlcNAcylation is an essential intracellular protein modification mediated by O-GlcNAc transferase (OGT) and O-GlcNAcase (OGA). Recently, missense mutations in OGT have been linked to intellectual disability, indicating that this modification is important for the development and functioning of the nervous system. However, the processes that are most sensitive to perturbations in O-GlcNAcylation remain to be identified. Here, we uncover quantifiable phenotypes in the fruit fly Drosophila melanogaster carrying a patient-derived OGT mutation in the catalytic domain. Hypo-O-GlcNAcylation leads to defects in synaptogenesis and reduced sleep stability. Both these phenotypes can be partially rescued by genetically or chemically targeting OGA, suggesting that a balance of OGT/OGA activity is required for normal neuronal development and function.