Skip to main content
Nature Portfolio logoLink to Nature Portfolio
. 2022 Jun 9;54(6):897–905. doi: 10.1038/s41588-022-01085-0

Mendelian imputation of parental genotypes improves estimates of direct genetic effects

Alexander I Young 1,2,3,4,, Seyed Moeen Nehzati 2,3, Stefania Benonisdottir 1, Aysu Okbay 5, Hariharan Jayashankar 6, Chanwook Lee 7, David Cesarini 6,8,9, Daniel J Benjamin 3,4,6, Patrick Turley 2,10, Augustine Kong 1,
PMCID: PMC9197765  PMID: 35681053

Abstract

Effects estimated by genome-wide association studies (GWASs) include effects of alleles in an individual on that individual (direct genetic effects), indirect genetic effects (for example, effects of alleles in parents on offspring through the environment) and bias from confounding. Within-family genetic variation is random, enabling unbiased estimation of direct genetic effects when parents are genotyped. However, parental genotypes are often missing. We introduce a method that imputes missing parental genotypes and estimates direct genetic effects. Our method, implemented in the software package snipar (single-nucleotide imputation of parents), gives more precise estimates of direct genetic effects than existing approaches. Using 39,614 individuals from the UK Biobank with at least one genotyped sibling/parent, we estimate the correlation between direct genetic effects and effects from standard GWASs for nine phenotypes, including educational attainment (r = 0.739, standard error (s.e.) = 0.086) and cognitive ability (r = 0.490, s.e. = 0.086). Our results demonstrate substantial confounding bias in standard GWASs for some phenotypes.

Subject terms: Genome-wide association studies, Software


snipar is a software package for imputing missing parental genotypes and estimating direct genetic effects. Application to UK Biobank data shows that effects estimated by standard genome-wide association study designs have confounding bias for some phenotypes.

Main

GWASs have found thousands of associations between genetic variants and human phenotypes1 and enabled the prediction of phenotypes using polygenic indices (PGIs)2. GWASs typically estimate the linear association between a phenotype and a single-nucleotide polymorphism (SNP) by regression of individuals’ phenotypes onto the number of copies of an allele (genotype) that they carry.

Multiple phenomena contribute to the associations found by GWASs3, referred to here as ‘population effects’, as they reflect the genotype–phenotype association in the population, including the causal effects of alleles carried by an individual on that individual, called direct genetic effects; effects of alleles in relative(s) through the environment, called indirect genetic effects (IGEs) or genetic nurture4; and confounding due to population stratification and assortative mating (AM), which lead to correlations between the SNP and other genetic and environmental factors. Although methods such as principal-component (PC) analysis and linear mixed models (LMMs) adjust for population stratification5,6, residual confounding often persists in GWAS summary statistics7,8. By modeling the effects of many genome-wide SNPs, LMMs can reduce confounding due to AM9. However, unless all of the heritability is captured, some confounding due to AM will remain. Depending on the regression design (e.g., PC adjustment, LMM, LMM and PC adjustment), the amount of confounding due to population stratification and AM can differ6,9.

Decomposing the population effects estimated by GWASs into the different components is important for interpreting and applying GWAS results. For example, IGEs and AM can lead to spurious inference of disease causes in Mendelian randomization10, and residual stratification in GWASs of height resulted in inflated signals of selection7,11. These problems and others can be remedied with stratification-free estimates of direct genetic effects.

Offspring genotype varies around the expectation given the genotype of the mother and father due to random segregation of genetic material in the parents during meiosis. Thus, analysis of parent–offspring trios can be used to obtain unbiased estimates of direct genetic effects1215. However, parental genotypes are often missing. In the absence of parental genotypes, genetic differences between siblings can be used to estimate direct genetic effects, at the cost of lower power and potential bias due to IGEs from siblings7,9,16,17. Here, we show that by treating parental genotypes as missing data and imputing them based on Mendelian laws, we can perform a unified analysis of different data types, including sibling pairs and parent–offspring pairs. Compared to existing approaches7,9,17,18, our method increases power and identifiability while retaining unbiased estimates of parameters and sampling variance.

Our imputation approach is similar to methods used in animal breeding to impute ungenotyped members of a pedigree1921, which are typically designed for breeding applications in large, complex pedigrees. In contrast, our method is designed for estimation of direct effects from sets of nuclear families that are approximately unrelated to one another, the kind of data typical in human genetics. We provide the methods for imputing missing parental genotypes in a software package, snipar (single-nucleotide imputation of parents), that also infers identity-by-descent (IBD) segments shared between siblings and performs genome-wide association and PGI analyses.

We apply our methods to UK Biobank (UKB) data. Among our findings are results showing that, for educational attainment (EA) and cognitive ability, effects estimated from standard GWASs provide inaccurate estimates of direct genetic effects.

Results

Single-locus model

We consider a model for the effect of a SNP on the phenotypes of two siblings. (We consider a model for two siblings for the purposes of exposition, but our missing-data framework can handle any number of siblings, with or without phenotype observations.) Let Yij be the phenotype of sibling j in family i. Then

Yij=δgij+αpgp(i)+αmgm(i)+ϵij; 1

where gij is the genotype of sibling j in family i, δ is the direct effect of the SNP and gp(i) and gm(i) are the genotypes of the father and mother in family i. SNPs are assumed to be biallelic with alleles ‘0’ and ‘1’, and genotypes are counts of the allele ‘1’ with frequency f. Sibling genotypes are conditionally independent of environmental effects given parental genotypes. Therefore, estimates of direct effects from fitting model (1) are unbiased12. We refer to αp and αm as ‘nontransmitted coefficients’ (NTCs), as they are the expected coefficients on the alleles not transmitted to the proband in a regression of proband phenotype on proband genotype and nontransmitted alleles4. The NTCs capture IGEs from relatives, in addition to confounding due to population stratification and AM3,4. The residual ϵij is uncorrelated with gij, gp(i), and gm(i), but ϵi1 and ϵi2 may be correlated. Note that standard GWAS methods that regress proband phenotype onto proband genotype estimate the ‘population effect’, β = δ + (αp + αm)/2, which is the direct effect plus the average NTC, α = (αp + αm)/2.

We also consider a model that adds IGEs from siblings:

Yi1=δgi1+ηsgi2+αpηs/2gpi+αmηs/2gmi+ϵi1;Yi2=δgi2+ηsgi1+αpηs/2gpi+αmηs/2gmi+ϵi2; 2

where ηs is the IGE from the sibling. Because both proband and sibling genotypes are conditionally independent of environment given parental genotype, estimates of δ and ηs from fitting model (2) are unbiased4. Because a parental allele has a 1/2 chance of being passed onto a sibling, the NTCs include one half of the indirect sibling effect, but this is removed from the coefficients on the parental genotypes in model (2) due to inclusion of the sibling genotype.

Imputing missing genotypes in a nuclear family

Genotypes in the complete-data model (2) that are unobserved are treated as missing data and imputed based on Mendelian laws. Imputations that are linear functions of observed genotypes do not add information for estimation of the parameters of models (1) and (2). However, there are seven cases out of the 24 − 1 = 15 complete-missing data patterns (Fig. 1 and Extended Data Fig. 1) where nonlinear imputations are possible. These seven cases can be divided into three equivalence classes (up to symmetry): genotyped sibling pairs (Fig. 1e), genotyped parent–offspring pairs (Fig. 1c,d,j,k) and genotyped sibling pairs with one genotyped parent (Fig. 1f,g). When two or more siblings are genotyped, we use the IBD state of the siblings to determine which parental alleles have been observed (Fig. 2a). We provide a method to infer the IBD states of siblings in snipar (Methods and Supplementary Note Section 9). In certain cases, phased genotypes are required to determine which parental alleles have been observed (Fig. 2b), although imputation can proceed without phased data at the cost of lower accuracy. See Methods and Supplementary Note Sections 3 and 5 for further details.

Fig. 1. Mendelian imputation for 15 different missing genotype cases.

Fig. 1

Displayed are cases where one offspring is phenotyped (the proband), but our framework can handle cases where both offspring are phenotyped. We distinguish between imputations that are linear functions of observed genotypes and imputations that are nonlinear functions of observed genotypes, and thereby add information for estimating the parameters of models (1) and (2). There are seven cases (c–g, j and k) where nonlinear imputations are possible, but we note that in some of these cases (c–e, j and k), the resulting variance-covariance matrix of the observed and imputed genotypes is not of full rank (Extended Data Fig. 1), implying that the full parameter vector of model (2) cannot be identified based on data of that type alone. For example, in case e, the imputed paternal and maternal genotypes are the same, but the imputed sum of paternal and maternal can be used to estimate the parameters of model (3). We detail how to combine information from different data types below. Although we show the case of two offspring here to simplify exposition, our imputation method and software (snipar) can handle any number of genotyped offspring (Methods and Supplementary Note Sections 3 and 5).

Extended Data Fig. 1. Variance-covariance matrices of observed and imputed genotypes.

Extended Data Fig. 1

Each matrix shows the variance-covariance matrix within the nuclear family given observed and imputed genotypes. The labels a) to o) correspond to those in Fig. 1. gi1 denotes the proband’s genotype, gi2 denotes the proband’s sibling’s genotype, gp(i) denotes father’s genotype and gm(i) denotes mother’s genotype. A caret (‘hat’) over the ‘g’, such as g^p(i), indicates an unobserved genotype that is imputed (either linearly or non-linearly) using observed genotypes. Displayed are the variance-covariance matrices of the genotypes, normalized by the variance of an observed genotype, 2f(1−f) where f is the allele frequency. This scaling means that the diagonal entry corresponding to an observed genotype is 1. Best linear unbiased imputations can be derived from applying formulae for multivariate Gaussian random-variables to a) (Supplementary Note Appendix D).

Fig. 2. Imputation of missing parental genotypes.

Fig. 2

a, Imputation from sibling pairs (Fig. 1e). Given knowledge of the IBD state of the siblings’ alleles (alleles coded by ‘0’ and ‘1’), the sum of the maternal and paternal genotypes can be imputed g^par(i). If the siblings do not share any alleles IBD, then all four parental alleles are observed (IBD0). If the siblings share one allele IBD, then three parental alleles are observed (IBD1). If the siblings share both alleles IBD, then two parental alleles are observed (IBD2). When parental alleles are unobserved, we impute them with the frequency of allele 1, f. The IBD state between siblings changes with the recombination events that occurred during meiosis in the parents and can be inferred (Methods and Supplementary Note Section 9). b, Shows how phased data can be used to determine which allele is shared between two individuals who share one allele IBD at a SNP where both are heterozygous. This applies to sibling pairs in IBD1 and parent–offspring pairs, who always shared one allele IBD. A neighboring SNP that has been phased with the target SNP and is homozygous for one individual and heterozygous for the other is used to resolve the uncertainty. For the individual on the left, the 0 allele must be the allele shared with the other individual at the neighboring SNP; thus, through the phased haplotype ‘1-0’ (hap1), it is determined that the 1 allele is the shared allele at the target SNP.

Estimating effects using imputed genotypes

We replace unobserved parental genotypes with their imputed values to estimate direct effects and NTCs. We estimate the direct effect and NTCs of each SNP as fixed effects in an LMM, which includes a family-level random effect, thereby accounting for phenotypic correlations between siblings (Methods).

In Supplementary Note Section 2, we prove general theoretical properties of multiple regression using this type of imputation: where unobserved covariates are replaced with their expectations given the observed covariates. We prove that estimates remain unbiased and consistent, and that the empirical sampling variance-covariance matrix of the estimates is an unbiased estimate of the true sampling variance-covariance matrix.

Estimating direct effects using parent–offspring pairs

Consider a sample of families where the genotype of the proband and its mother have been observed but the father’s genotype is unobserved (Fig. 1d). If we impute the father’s genotype as g^p(i)=E[gp(i)gi1,gmi] (Methods), then our theoretical results imply that by performing the regression

Yi1=δgi1+αpg^p(i)+αmgm(i)+ϵi1,

we obtain unbiased and consistent estimates of δ, αp, and αm. If no imputation is performed, then it is impossible to obtain unbiased estimates of δ without making an additional assumption, such as αp = αm. When using phased data, the effective sample size for estimation of direct genetic effects relative to complete observation of parental genotypes (Fig. 1a,b) is approximately equal to 1/2 (Supplementary Note Section 5.3). With unphased data, this increases from a minimum of 1/6 when minor allele frequency (MAF) is 0.5 to a maximum of 1/2 as MAF approaches 0 (Extended Data Fig. 2).

Extended Data Fig. 2. Relative effective sample size for estimating direct genetic effects when imputing a missing parent’s genotype from a parent–offspring pair using unphased data.

Extended Data Fig. 2

We derive that the relative effective sample is 13f(1f)22f(1f) compared to using fully observed parental genotypes (Supplementary Note Section 5.1). There is a penalty for heterozygosity when using unphased data since the allele that is shared with the observed parent cannot be determined when both parent and offspring are heterozygous. In contrast, the relative efficiency when using phased data is 1/2, independent of allele frequency.

Imputation from siblings increases power

Many previous analyses regressed phenotypic differences between siblings onto genotypic differences7,9,17. In model (2), this corresponds to:

Yi1Yi2=δηsgi1gi2+ϵi1ϵi2.

This method yields unbiased estimates of δηs.

When genotypes are imputed from sibling data (Fig. 1e), we have no information on differences between maternal and paternal genotypes, only their sum. We can express model (2) as (Supplementary Note Section 1)

Yi1=δgi1+ηsgi2+αgpar(i)+ϵi1;Yi2=δgi2+ηsgi1+αgpar(i)+ϵi2; 3

where α=αp+αmηs/2, and for some ϵi1, ϵi2 that are uncorrelated with the siblings’ genotypes and gpar(i). By imputing gpar(i) as the conditional expectation given gi1 and gi2 and the IBD state of the siblings (Fig. 2a), we can obtain unbiased estimates of the parameter vector (δ, ηs, α′) by regression of phenotype jointly onto proband, sibling and imputed parental genotype. Note that by performing the imputation, we are able to separately estimate δ and ηs, whereas the sibling difference approach can only estimate δηs. This shows how Mendelian imputation enables identification of more complex models than approaches that do not perform imputation.

Although our method is able to distinguish IGEs through siblings from direct genetic effects, more precise estimates of direct genetic effects can be obtained by assuming ηs = 0, at the cost of some bias if ηs ≠ 0. Letting r be the correlation of the siblings’ residuals (which will be approximately equal to their phenotypic correlation when the SNP explains a small fraction of the phenotypic variance, as is typical for complex human traits), then the bias in estimates of δ is −[(1 + 2r)/(2 + r)]ηS (Supplementary Note Section 4.3). This is smaller than the bias from regression on differences in sibling genotype, which is −ηs. For the following results, ηs = 0 is assumed unless otherwise stated.

Using parental genotypes imputed from phased data increases the effective sample size for estimation of δ by a factor of 1+1r31+r1 relative to using genetic differences between siblings (Supplementary Note Section 4). This has a maximum of 4/3 at r = 0 (Fig. 3). We confirmed the theoretical result using simulated data (Extended Data Fig. 3). For estimation of the average NTC, α=(αp+αm)/2, the effective sample size is increased by a factor of 1+1r/221+r1.125, which has a maximum of 1.5 when r = 0. For estimation of both the direct effect and the average NTC, the gain is somewhat lower when using unphased data, depending upon MAF and r (Fig. 3). Using parental genotypes imputed from phased data always gives more precise estimates of direct effects and average NTCs than using unphased data or genetic differences between siblings (Supplementary Note Section 4).

Fig. 3. Relative efficiency for estimation of direct effects and NTCs from sibling pairs using different imputation methods.

Fig. 3

We compare the theoretical effective sample size for estimation of direct genetic effects and average NTCs from three imputation methods: one that does not use IBD segments (blue)39, one that uses IBD and unphased data (red) and one that uses IBD and phased data (black). Effective sample size is measured relative to that from using sibling genotypes alone without any imputation and assuming that we have a sample of independent families with two genotyped and phenotyped siblings in each family (Supplementary Note Section 4). a, Effective sample size for estimation of the direct genetic effect when MAF is 20% as a function of correlation between siblings’ residuals. b, Effective sample size for estimation of direct genetic effects as a function of MAF when the correlation between siblings’ residuals is zero. (Results follow a similar pattern for other sibling correlations.) For imputation from unphased data, when both siblings are heterozygous and share one allele IBD, which allele is shared IBD cannot be determined (Fig. 2b), so the imputation averages over the two possibilities. When phased data are used, the observed parental alleles can be determined, so the relative efficiency does not depend upon MAF. c, The same as for a, but for average NTC. d, The same as for b, but for average NTC.

Extended Data Fig. 3. Confirmation of theoretical result for direct effects.

Extended Data Fig. 3

Here we compare theoretical predictions to results from simulated data for the effective sample size for estimation of direct genetic effects using parental genotypes imputed from both phased and unphased sibling genotype data relative to estimating direct genetic effects using genetic differences between siblings. For 3,000 independent families, we simulated three different traits affected by direct, paternal, and maternal effects of 1,000 SNPs with minor allele frequency 0.5 (Supplementary Note Section 12.1). The overall variance explained by the combined direct, paternal, and maternal effects varied between the simulations, leading to different correlations between siblings’ phenotypes. We computed theoretical expectations based on formulae derived in Supplementary Note Section 4.3, which are drawn as the red curve (theoretical expectation for imputation from unphased data) and the black curve (theoretical expectation for imputation from phased data). The simulation results for unphased data are given by the black circles, and the simulation results for the phased data are given by black triangles. The relative effective sample size is given by the ratio between the sampling variance for estimation of direct effects when using differences between siblings to the sampling variance when using parental genotypes imputed from phased or unphased data.

Combining different missing data types

The different missing data patterns in Fig. 1 enable estimation of different linear transformation of the parameters of model (2), (δ, ηs, αp, αm), with examples in Table 1. Although not all data types enable identification of (δ, ηs, αp, αm), they can contribute to an overall estimate of (δ, ηs, αp, αm) when the combination of data types enables identifiability. If genotypes are observed or imputed as outlined above, then a single regression that combines all the data types together gives consistent estimates of the full parameter vector provided that the resulting regression design matrix is not collinear (Supplementary Note Section 2). This is the approach we adopt for applications to real data (Methods). Alternatively, a form of multivariate meta-analysis can be used (Supplementary Note Section 6).

Table 1.

Examples of regressions and expected regression coefficients for different data types

Observed genotypes Yi1 regressed on Eθ^
Proband (Fig. 1h) gi1 δ + (αp + αm + ηs)/2
Sibling pairs (Fig. 1e) gi1 δ
gi2 ηs
g^par(i) (αp + αmηs)/2
Father–child pairs (Fig. 1c) gi1 δ
gp(i) αp
g^m(i) αm
Mother–child pairs (Fig. 1d) gi1 δ
g^pi αp
gm(i) αm
Trios (Fig. 1b) gi1 δ
gp(i) αp
gm(i) αm
Quads (Fig. 1a) gi1 δ
gi2 ηs
gp(i) αpηs/2
gm(i) αmηs/2

In the first column, we give the data type in terms of the observed genotypes in the nuclear family, referencing the relevant panel of Fig. 1; in the second column, we give an example of a regression that could be performed using that data type and parental genotypes imputed from the observed genotypes; in the third column, we give the expected column vector of regression coefficients from performing the regression. Yi1 is the phenotype of sibling 1 in family i; gij is the genotype of sibling j in family i; gp(i) is the paternal genotype, and g^p(i) is the imputed paternal genotype; gm(i) is the maternal genotype, and g^m(i) is the imputed maternal genotype; g^par(i) is the imputed sum of maternal and paternal genotypes; δ is the direct effect; ηs is the indirect sibling effect; and αp and αm are, respectively, the paternal and maternal NTCs.

Imputing missing parental genotypes in the UKB

We applied our methods to the ‘White British’ subsample of the UKB22 (Methods). Using KING23, we identified a sample of 39,619 individuals for which parental genotypes were observed or could be imputed (Table 2). We inferred IBD segments for sibling pairs using snipar (Methods). We validated the IBD inference using 31 families with two siblings and both parents genotyped, finding that the IBD states were correct 99.65% of the time (Supplementary Table 1). The IBD sharing statistics of the siblings were close to theoretical expectations (Extended Data Fig. 4).

Table 2.

Summary of data types in the ‘White British’ UKB subsample

Data type N (probands)
Proband and sibling(s) but no parents (Fig. 1e) 35,197
Proband and parent (Fig. 1c, d) 3,216
Proband, parent and sibling(s) (Fig. 1f, g) 312
Proband and both parents (Fig. 1b) 832
Proband, both parents and sibling (Fig. 1a) 62
Total 39,619

Extended Data Fig. 4. IBD0 proportion among sibling pairs across chromosome 1.

Extended Data Fig. 4

We show the proportion of sibling pairs, out of 19,290 pairs, that are called as IBD0 for each SNP with MAF>1% on chromosome 1 on the UK Biobank genotyping array. We compare the fraction of pairs that are called IBD0 by snipar (black line) and KING (gray line). The theoretical expectation according to Mendelian segregation is 0.25, indicated by the red horizontal line.

Using snipar, we imputed missing parental genotypes from phased haplotypes for 1,586,010 SNPs, the union of the genotyping array SNPs and HapMap3 SNPs with MAF > 1%. We found that there was negligible bias in the imputed genotypes (Methods).

We tested the performance of our method in realistic simulations based on genetic data from the UKB ‘White British’ sample (Supplementary Note Section 12.2). We simulated traits affected by AM, parental IGEs, vertical transmission24 (where a phenotype of the parent(s) affects the phenotype of the offspring through the environment), vertical transmission and AM25 and population stratification. We did not detect any bias in estimates of direct effects across the simulated traits (Supplementary Table 2).

Direct and indirect effects of an education PGI

We analyzed the effects of an EA PGI on nine phenotypes in the UKB (Methods). By using observed and imputed parental PGIs, we obtained unbiased estimates of the indirect sibling effects (ηs) of the EA PGI (Extended Data Fig. 5 and Supplementary Table 3), which were not statistically significant for any phenotype (P > 0.05, two-sided Z-test). Assuming ηs = 0, we obtained more precise estimates of direct effects and average NTCs (Fig. 4 and Supplementary Table 4).

Extended Data Fig. 5. Indirect sibling effects of the EA polygenic index.

Extended Data Fig. 5

The standardized effect estimate (SD change in trait per SD change in PGI) is given along with the 95% confidence interval. Estimates were derived from a sample of 35,556 individuals from the ‘White British’ subsample of the UKB with at least one genotyped sibling and imputed and/or observed parental genotypes. Effects were estimated by joint regression of individuals’ traits onto their own PGI, their siblings’ PGI, and their mother’s and father’s (imputed/observed) PGI (Methods). We give the average of the maternal and paternal NTCs, adjusted for bias due to imputation in the presence of assortative mating (Methods), as the ‘average NTC’ here. Traits were adjusted for 40 genetic principal components prior to analysis. Trait abbreviations: HDL, high-density lipoprotein cholesterol; BMI, body mass index; FEV1, forced expiratory volume in one second.

Fig. 4. Decomposition of the EA PGI effect assuming no indirect sibling effects.

Fig. 4

The standardized effect estimate (standard deviation (s.d.) change in phenotype per s.d. change in PGI) is given along with the 95% confidence interval. Estimates were derived from a sample of 39,619 individuals with imputed and/or observed parental genotypes. Effects were estimated by joint regression of individuals’ phenotypes onto their own PGI, and their mother’s and father’s (imputed or observed) PGIs (Methods). We give the average of the estimated maternal and paternal NTCs, adjusted for bias due to imputation in the presence of AM (Methods), as the ‘average NTC’ here, and the difference between maternal and paternal NTCs as ‘maternal minus paternal’. Phenotypes were adjusted for 40 genetic PCs before analysis. HDL, high-density lipoprotein cholesterol; BMI, body mass index; FEV1, forced expiratory volume in one second.

Statistically significant estimates of direct effects were obtained for all phenotypes; and statistically significant average NTCs (P < 0.05, two-sided Z-test) were obtained for all phenotypes other than ever-smoked and neuroticism. Estimates of maternal minus paternal NTCs were not statistically significant for any of the phenotypes (P > 0.05, two-sided Z-test), although power for this analysis was limited.

Across the phenotypes, the direct/(direct + average NTC) ratio was similar to a previous analysis of an EA PGI in Icelandic data4, except for EA, where here the ratio was 0.50 (compared to 0.70 in Iceland). The fraction of variance explained by the direct effect is the square of this ratio, implying that only 25% of the variance explained by the EA PGI is due to its direct effect alone (compared to 49% in Iceland).

Genome-wide association analyses for nine phenotypes

We estimated the direct effects, NTCs and population effects of 1,586,010 SNPs with MAF > 1% on nine phenotypes (Methods). Phenotypes were adjusted for 40 genetic PCs before SNP effects were estimated. In our PGI analyses (above), we found no evidence for substantial IGEs from siblings. Therefore, to increase precision, we estimated effects assuming ηs = 0.

At these sample sizes, power is limited for analysis of direct effects and NTCs of individual SNPs. We therefore focused on estimating the genome-wide correlation between direct and population effects, r(δ, β) (Methods). This measures the degree to which population effects, as estimated by standard GWAS, reflect direct genetic effects. We also estimated r(δ, α), the genome-wide correlation between direct effects and average NTCs. To estimate the correlations, we used a moment-based estimator that adjusts for the known sampling variance-covariance matrix of the estimates (Supplementary Note Section 11).

We estimated r(δ, β) and r(δ, α) for the phenotypes simulated from genetic data from the UKB ‘White British’ subsample (Supplementary Table 2). For phenotypes affected by direct effects and parental IGEs in a random-mating population, r(δ, α) is the correlation between direct effects and average parental IGEs, which our simulation results confirmed.

A plausible model for IGEs is vertical transmission24. We simulated a phenotype affected by vertical transmission for 20 generations of random mating, reaching an approximate equilibrium. For this phenotype, r(δ, β) = 0.953 (s.e. = 0.009).

When there is population stratification or AM, average NTCs (and therefore population effects) capture effects due to other genetic and environmental factors with which the SNP is correlated due to nonrandom mating, in addition to IGEs from relatives. We simulated 20 generations of AM for the same vertical transmission phenotype model, reaching an approximate equilibrium. For this phenotype, r(δ, β) = 0.883 (s.e. = 0.009). For a phenotype affected by direct effects and a random environmental component (no indirect effects or vertical transmission), r(δ, β) = 0.949 (s.e. = 0.008) after 20 generations of AM. We also simulated a phenotype affected by direct effects and population stratification, for which r(δ, β) = 0.917 (s.e. = 0.007). These results show that population stratification, AM, and vertical transmission, along with their interactions, can lead to r(δ, β) substantially below 1.

Across the nine phenotypes, r(δ, β) was not statistically distinguishable from 1 (P > 0.05, one-sided Z-test for r(δ, β) < 1) except for EA (r(δ, β) = 0.739, s.e. = 0.086, P = 1.2 × 10−3) and cognitive ability (r(δ, β) = 0.490, s.e. = 0.086, P = 1.6 × 10−9) (Fig. 5). We also estimated r(δ, α) (Supplementary Table 5), finding negative correlations (discussed below) for cognitive ability (r(δ, α) = −0.588, s.e. = 0.094, P = 3.1 × 10−10, two-sided Z-test for r(δ,α) ≠ 0) and neuroticism (r(δ, α) = −0.421, s.e. = 0.190, P = 0.027), and a positive correlation for height (r(δ, α) = 0.666, s.e. = 0.270, P = 0.014). For height, the results are similar to simulation results for a phenotype affected by direct effects and AM (Supplementary Table 2), consistent with previous analyses showing that, for height, AM is strong and parental IGEs are weak4,26.

Fig. 5. Estimates of genome-wide correlation between direct and population effects, r(δ, β).

Fig. 5

The estimate is given along with the 95% confidence interval. Direct effects are causal effects due to inheritance of alleles; population effects are estimated by standard GWASs and include direct effects, indirect effects from relatives and confounding due to population stratification and AM. We estimated the correlation between direct and population effect estimates using summary statistics derived from a sample of 39,619 individuals from the ‘White British’ subsample of the UKB where parental genotypes were imputed, using the developed methods, or observed (Methods). Phenotypes were adjusted for 40 genetic PCs before analysis. We do not show the results for age at first birth in women and ever-smoked here due to their large standard errors (see Supplementary Table 5).

Evidence for residual stratification

To investigate whether residual population stratification that persists after adjustment for PCs7,8 contributes to the low correlations between direct and population effects for EA and cognitive ability, we adjusted those phenotypes for birth coordinates and the location where each individual was assessed, in addition to PCs (Methods). This increased the estimated correlation for EA to r(δ, β) = 0.791 (s.e. = 0.066), an increase of 0.053 (s.e. = 0.045; P = 0.124 from a one-sided Z-test for an increase); and increased the estimated correlation for cognitive ability to r(δ, β) = 0.568 (s.e. = 0.088), an increase of 0.078 (s.e. = 0.064; P = 0.113).

PCs based on rare variants or IBD sharing capture recent population structure better than PCs based on common variants8, which we used to adjust the phenotypes in our primary analysis. To better adjust for recent structure, we adjusted EA and cognitive ability for the top 40 PCs of the IBD relatedness matrix in addition to the 40 common variant PCs used originally (Methods). This increased the estimated correlation for EA to r(δ, β) = 0.785 (s.e. = 0.076), an increase of 0.048 (s.e. = 0.019; P = 5.7 × 10−3 from a one-sided Z-test for an increase); and increased the estimated correlation for cognitive ability to r(δ, β) = 0.621 (s.e. = 0.058), an increase of 0.131 (s.e. = 0.041; P = 6.5 × 10−4).

To further investigate the contribution of residual stratification, we computed correlations between genetic associations with birth coordinates (adjusted for PCs) and direct effects, average NTCs, and population effects (Methods and Supplementary Table 6). The correlations with birth coordinates reflect the degree to which SNP effects on phenotypes, after adjustment for PCs, are correlated with the geographic structure in the population27. Estimated correlations between birth coordinates and direct effects were attenuated toward zero relative to correlations between birth coordinates and average NTCs and population effects. Furthermore, correlations between birth coordinates and average NTCs and population effects tended to line up along a south-east to north-west axis (Extended Data Fig. 6), likely reflecting the phenotypes’ correlations with socioeconomic status, genetic structure in the UK population and geographic variation in socioeconomic status across the United Kingdom27,28.

Extended Data Fig. 6. Correlations with north and east birth coordinates.

Extended Data Fig. 6

Associations between SNPs and north and east birth coordinates that persist after principal component adjustment were assessed by performing a genome-wide association study of north and east birth coordinates in a sample of unrelated individuals from the ‘White British’ subsample of the UK Biobank (Methods). We estimated genome-wide correlations between SNP associations with north and east birth coordinate and a) direct effects, b) average non-transmitted coefficients (NTCs), and c) population effects on 9 phenotypes (Methods). Point estimates are plotted as points, with error bars giving 95% confidence intervals. See Supplementary Table 6 for numerical results. Abbreviations: AAFB, age at first birth; BMI, body mass index; FEV1, forced expiratory volume in one second; HDL, high-density lipoprotein cholesterol.

Correlations across phenotypes for direct and population effects

We sought to test whether correlations between population effects on EA and cognitive ability and population effects on other phenotypes are inflated due to IGEs and confounding factors. To remove the influence of sampling correlations between effect estimates due to overlapping samples, we estimated population effects in a sample of 276,419 unrelated individuals who are unrelated (third degree or less) to the sample used in our primary analysis. We used BOLT-LMM to estimate population effects on the same nine phenotypes as in our primary analysis as well as north and east birth coordinates (Methods). We refer to the population effects estimated in this sample as βBOLT for an unspecified phenotype and βBOLT:EA to refer to a specific phenotype (in this case EA). This enabled us to estimate, without needing to adjust for sampling correlations, correlations between direct effects on EA and cognitive ability (δEA and δcog) from our primary analysis and population effects on nine phenotypes and north and east birth coordinates from the unrelated sample (βBOLT), which we refer to as r(δEA, βBOLT) and r(δcog, βBOLT). We compared these to correlations between population effects on EA and cognitive ability (βEA and βcog) from our primary analysis and population effects on nine phenotypes and north and east birth coordinates from the unrelated sample (βBOLT), which we refer to as r(βEA, βBOLT) and r(βcog, βBOLT) (Supplementary Tables 5 and 7).

Across the phenotypes, population effects were more strongly correlated with population effects on EA and cognitive ability than with direct effects on EA and cognitive ability (Fig. 6), supporting the hypothesis that IGEs and confounding factors inflate correlations between population effects. The largest estimated difference was r(βcog, βBOLT:EA) − r(δcog, βBOLT:EA) = 0.319 (s.e. = 0.073), suggesting either shared confounding in population effects on EA and cognitive ability, or shared IGEs that are not highly correlated with direct effects on cognitive ability, or both.

Fig. 6. Correlations between population effects from an independent sample and direct and population effects on EA and cognitive ability.

Fig. 6

We computed correlations between summary statistics from our main analysis of 39,619 individuals from the ‘White British’ subsample of the UKB, where parental genotypes were imputed or observed, and population effects estimated by BOLT-LMM in an independent sample of 276,419 unrelated individuals from the ‘White British’ subsample of the UKB (Methods). a, Correlation between the population effects on EA estimated in our primary analysis and population effects for nine phenotypes and birth coordinates estimated in the unrelated sample, rβEA,βBOLT, on the x axis; and the correlation between the direct effects on EA estimated in our primary analysis and the population effects in the unrelated sample, rδEA,βBOLT, on the y axis. b, Correlation between the population effects from the unrelated sample and direct effects on cognitive ability, r(δcog, βBOLT), on the y axis; and the correlation between the population effects in the unrelated sample and population effects on cognitive ability from our primary analysis, rβcog,βBOLT, on the x axis. The vertical error bars give the 95% confidence intervals for the correlation with the direct effects, and the horizontal error bars give the 95% confidence intervals for the correlation with population effects. We give numerical results along with P values for differences between correlations with direct and population effects in Supplementary Table 7. AAFB, age at first birth (in women); north, north birth coordinate; east, east birth coordinate.

Discussion

We introduce Mendelian imputation as a tool to perform genetic association analyses. Conceptually, this is similar to multipoint linkage analysis performed with pedigrees29, familial imputations30,31 and methods in animal breeding19. However, our approach focuses on imputing missing parental genotypes in a nuclear family rather than in the large pedigrees typical in animal breeding. We found that our imputation method improves on a recent method developed for imputing missing genotypes in a nuclear family, AlphaFamImpute21, both in terms of bias and R2 between imputed and actual parental genotypes (Methods and Supplementary Table 8). The improvement in R2 derives from the use of pre-phased genotypes, enabling resolution of which parental alleles have been observed in certain doubly heterozygous cases (Fig. 2b). Our approach could be extended to use genotypes of other relatives of the missing parent(s). However, many data sets contain genotypes of siblings and/or parent–offspring pairs from families that have no known pedigree relation, and for these data sets, our approach provides close to optimal recovery of the genotypes of the missing parent(s).

Mendelian imputation, used appropriately, produces unbiased estimates of parameters along with valid sampling errors. This makes it rather unique among single imputation methods in situations where the amount of missing information is substantial32. These properties derive from the fact that missing genotypes are imputed as nonlinear functions of observed genotypes, using Mendelian laws, thereby adding information for parameter estimation without introducing noise. Mendelian imputation enables integrated analysis of different data types, maximizing power and enabling identification of models than cannot be identified without imputation.

We examined the degree to which GWAS estimates reflect direct effects by estimating the genome-wide correlation between direct and population effects, finding that population effects and direct effects are not highly correlated (<0.9) for EA and cognitive ability. We found evidence that this is in part due to recent structure in the population that is captured by PCs of the IBD relatedness matrix, but not by PCs computed from common variants8. Our simulation results (Supplementary Table 2) suggest that a combination of vertical transmission and AM24,25 may also contribute to the low correlation between direct and population effects.

Another phenomenon that may contribute is ascertainment: If direct effects and NTCs are not very strongly correlated, but both are also correlated with ascertainment, then collider bias33 could push the correlation estimate in the negative direction and reduce correlations between direct and population effects. Analysis of simulated phenotypes under ascertainment supports this hypothesis, where strong ascertainment reduced r(δ, α) to −0.264 (s.e. = 0.091) for a phenotype with uncorrelated direct effects and parental IGEs (true r(δ, α) = 0), which may explain why we observed negative r(δ, α) for cognitive ability and neuroticism, as observations for these phenotypes are ascertained for higher education and lower neuroticism34,35.

If population effects are not highly correlated with direct effects, then this has implications for genetic prediction methods. For example, for prediction of differences between embryos, only direct effects are relevant, so selecting embryos using population effects would perform poorly compared to using direct effects36,37 (assuming equal precision of direct and population effect estimates) and could introduce confounding related biases. Confounding related biases can also lead to spurious inferences in mendelian randomization10 and studies of selection7,11. If NTCs are substantial and imperfectly correlated with direct genetic effects, then prediction accuracy could be increased by including predictors based on NTCs of parental genotypes in addition to predictors based on proband genotypes.

We found evidence that correlations between GWAS summary statistics on many of the nine phenotypes examined here and EA and cognitive ability are inflated by factors other than direct effects. Application of the methods developed here to larger sample sizes will enable us to estimate the relative contribution of direct effects, IGEs, and confounding factors to estimates of genetic correlations38.

By analyzing an EA PGI, we observed a lower direct/(direct + average NTC) ratio for EA than was observed in Iceland4. This implies that the combined influence of IGEs, population stratification, and AM is stronger in the UK than in Iceland. The PGI was constructed from standard GWAS summary statistics, so the average NTCs of the PGI could reflect bias and/or IGEs in the original GWAS summary statistics. Future studies could examine prediction using PGIs constructed from direct effect estimates, which do not have these biases.

Collection of genetic data on close relatives is inevitable as sample sizes grow larger. However, samples of close relatives will remain much smaller than samples of distantly related individuals. We see data on unrelated individuals as one possible pattern of missing data in a framework for human genetic analysis that treats the nuclear family as the fundamental unit of analysis rather than the individual. By combining information from different missing data patterns, we will be able to construct a more accurate picture of the role of genetics in human phenotype variation.

Methods

Imputation from sibling pairs

Given the genotypes of a sibling pair (Fig. 1e) and the IBD state of the alleles (which alleles are shared by descent from the parents), the observed parental alleles can be determined (Fig. 2a).

Because parent-of-origin cannot be determined from sibling data, we impute the sum of maternal and paternal genotypes (Fig. 2). Let gpar(i)=gm(i)+gp(i) be the sum of the genotype of the mother gm(i) and the genotype of the father (gp(i)) in family i, and let gi1 and gi2 be the genotypes of the two siblings. We compute Egpar(i)gi1,gi2,IBDi, where IBDi is the IBD state of the two siblings. Because all four alleles are observed in IBD state 0, we have that

Egpar(i)gi1,gi2,IBDi=0=gi1+gi2=gpar(i).

When we do not observe a parental allele, we impute it using the population frequency of allele 1, f. Therefore,

Egpar(i)gi1,gi2,IBDi=2=gi1+2f.

When the siblings share one allele IBD, let gi2¬s be 1 if the allele in sibling 2 that is not shared IBD with sibling 1 is allele 1, and let gi2¬s be 0 otherwise. If we impute by

Egpar(i)gi1,gi2,IBDi=1=gi1+gi2¬s+f,

then the squared correlation between imputed and observed parental genotype is ¾. This is because we observe two parental alleles in IBD2, with probability ¼; three parental alleles in IBD1, with probability 1/2; and four parental alleles in IBD0, with probability ¼; giving an average of 3 observed parental alleles. The squared correlation is higher than based on best linear unbiased imputation, 2/3 (Supplementary Note Appendix D).

When in IBD1 (the siblings share one allele IBD), the alleles not shared are known unless both siblings are heterozygous. When both are heterozygous, information from neighboring phased SNPs can be used to resolve the uncertainty (Fig. 2b). However, without phased data, imputation can proceed by averaging over the two possibilities (shared allele is 0 versus shared allele is 1), giving

Egpar(i)gi1=1,gi2=1,IBDi=1=1+2f,

at the cost of lower correlation with the unobserved parental genotype (Supplementary Note Section 3.2).

We generalize the above approach to imputing from genotype observations on three or more siblings (Supplementary Note 3.2.1). When ni siblings have been observed in family i, on average we observe 412ni parental alleles, so the imputation approaches full recovery of the combined parental genotype as the number of siblings increases.

Imputation from parent–offspring pairs

Consider imputing the genotype of a proband’s father given observations of the proband and mother’s genotypes (Fig. 1d). We impute as the expectation given the proband and mother’s genotype: g^p(i)= Egp(i)gi1,gm(i). Given the proband’s paternally inherited allele, one half of the paternal genotype is determined, and the expectation of the other half is given by f. The resulting squared correlation of the paternal genotype with the imputed paternal genotype is therefore 1/2, higher than with the best linear unbiased imputation, 1/3 (Supplementary Note Appendix D).

Similar to the sibling case, the paternally inherited allele of the proband is known unless both mother and proband are heterozygous, in which case phased data are needed to resolve the uncertainty (Fig. 2b). Without phased data, the unobserved paternal genotype can be imputed by averaging over the two possible inheritance patterns (Supplementary Note Section 5.1), giving Egp(i)gi1=1,gm(i)=1=2f. The loss of information relative to phased data increases with increasing heterozygosity.

We generalize the imputation procedure to incorporate situations where two or more siblings’ genotypes and one parent’s genotype have been observed (Fig. 1f, g). We leverage both IBD sharing between siblings and the observed parent to efficiently impute the missing parent’s genotype, giving methods for both phased and unphased data (Supplementary Note Sections 5.1.1 and 5.2).

Estimation of SNP effects

Phenotype observations of siblings are correlated through both shared genetic factors and shared environmental factors. To obtain efficient estimates of SNP effects, the phenotypic correlations between siblings should be modeled. We implemented an LMM in snipar that achieves this by modeling the mean phenotype within each family as a random effect. Let Yij be the phenotype of sibling j in family i; then, assuming the overall mean of the phenotype is zero,

Yij=Xijθ+μi+ϵij;μi~N0,σF2;ϵij~N0,σϵ2;

where Xij are the mean-centered (observed or imputed) genotypes; θ is the corresponding vector of parameters; μi is the mean in family i, which we model as a mean-zero normally distributed random effect with variance σF2, independent for each family; and ϵij is the residual for individual j in family i, independent for each individual. This implies that, conditional on X, the phenotypic correlation of siblings is σF2/(σF2+σϵ2).

The columns of X and θ depend upon the data type and model being estimated (Table 1). The default is for the columns of X to be the individual’s genotype, the individual’s father’s imputed or observed genotype, and the individual’s mother’s imputed or observed genotype, with θ=δ,αp,αmT. When only sibling genotypes are available, to prevent collinearity, the columns of X reduce to the individual’s genotype and the imputed sum of maternal and paternal genotypes, and θ=δ,α=αp+αm/2T. We also provide an option in snipar to add the proband’s siblings’ genotypes to the regression to fit indirect effects from siblings.

For estimation of the effects of genome-wide SNPs, snipar first infers the variance components σF2 and σϵ2 by maximum likelihood for a null model without any SNP effects, which can be done in O(n) computations (Supplementary Note Section 10). We then fix the variance components at their maximum likelihood estimate for estimation of the SNP effects. Given the variance components, the estimate of θ can be obtained analytically in O(n) computations.

Effect of population structure

In the results above and the main text, we have assumed random mating. When population structure is present, this leads to bias in the imputed parental genotypes. We analyze the consequences of this in Supplementary Note Section 7. In general, estimates of NTCs are biased by structure, with the bias increasing with Wright’s Fst. Bias is introduced into estimates of direct effects when data types with different numbers of observed parental alleles are mixed together. For imputation from sibling pairs, the number of observed parental alleles differs with the IBD state of the siblings, introducing a bias into estimates of δ that is approximately equal to Fstα/2 when Fst is small. For relatively homogeneous samples, any such bias is therefore likely to be negligible at the individual SNP level. Further, SNPs with large values of Fst will tend to be filtered out during quality control because they violate Hardy–Weinberg Equilibrium.

In Supplementary Note Section 7.2, we derive an alternative estimator for δ that splits the regression by the number of observed parental alleles, and we prove that this estimator is not biased by population structure. Although this estimator is more robust, it is less precise than the estimator described above, which performs a single regression using all individuals, irrespective of the number of parental alleles observed. However, the alternative estimator for δ is still more precise than the estimator based on genetic differences between siblings, having an effective sample size 1+1r61+r1 times higher, with a maximum of 7/6 when r =0.

PGI analyses using imputed parental genotypes

Consider a PGI composed of L SNPs for the father in family i:

PGIpi=l=1Lwlgp(i)l, 5.1

where wl is the weight of SNP l, and gp(i)l is the genotype of the father at SNP l. If the father is not genotyped, then the imputed PGI is:

PGI^p(i)=l=1Lwlg^p(i)l, 5.2

where g^p(i)l is imputed as described above. Assuming the L SNPs are in linkage equilibrium, then theoretical results for single SNP analyses carry over.

In practice, linkage disequilibrium (LD) between some of the SNPs is expected. However, if many SNPs from across the genome contribute to the PGI, only a small fraction of the pairs of SNPs will have non-negligible correlations due to local LD, and the effect on the imputations and estimates would be negligible. However, for a phenotype with AM, contributing SNPs can become correlated regardless of their physical positions3,40,41. Because each SNP is imputed individually without conditioning on other SNPs that contribute to the PGI, the imputed PGIs are not exactly the conditional expectations given the observed PGIs. Consider a model for the association between a phenotype and a PGI:

Yi1=δPGIi1+α(PGIpi+PGImi)+ϵi1,

where PGIij is the PGI of sibling j in family i, and PGIm(i) is the PGI of the mother in family i. We show in the Supplementary Note Section 8 that using imputed parental PGIs in place of observed parental PGIs does not introduce bias to estimates of δ, even when AM is present, when the number of SNPs, L, is large. However, a slight bias in estimates of NTCs is introduced. For example, if using parental genotypes imputed from sibling pairs with phased data, the estimate of α would be inflated by a factor of (1+ram)/(1+ram/2), where ram is the equilibrium correlation between maternal and paternal PGI. We note that, even with fully observed genotypes, AM implies that α captures confounding due to correlation between the parental PGI and the genetic component of the phenotype that would be uncorrelated with the PGI under random mating, as described previously4,42.

UKB sample

We used the UKB sample that had been identified by UKB to have predominantly ‘White British’ ancestry22. We filtered out individuals identified by the UKB as having excess relatives, excess heterozygosity, or sex chromosome aneuploidy. We used the kinship coefficients computed by the UKB to identify individuals with a first-degree relative, where a first-degree relation is defined as a kinship coefficient of 0.177 and above23. We used KING23 with the ‘–related –degree 1’ options to infer the sibling and parent–offspring relations within that set of individuals (Table 2). We identified 157 duplicates/monozygotic twins and removed one from each pair from further analyses. There were 19,290 sibling pairs from 17,289 sibships, including 913 sibships of size greater than 2, with a maximum size of 6.

Haplotypes for the SNPs that were present on both the UKB Axiom and the UK BiLEVE genotyping arrays and that passed quality control were provided by the UKB22. Phasing was performed using SHAPEIT3 (ref. 43) and the 1000 Genomes Phase 3 dataset44 as a reference panel. This resulted in phased haplotypes for a set of 658,720 autosomal SNPs with an estimated switch error rate of 0.229%22.

In addition, we used SHAPEIT2 with the –duohmm option (with -W 5 parameter) to phase 1.1 million HapMap3 SNPs with MAF > 1% from the imputed genotype data provided by the UKB. The ‘duohmm’ option takes advantage of parent–offspring relations to improve phasing. We merged the haplotypes provided by UKB with the haplotypes for HapMap3 SNPs using QCTOOL, giving haplotypes for 1,652,145 unique SNPs, 1,586,010 of which had MAF > 1%.

To compute the PCs of the IBD relatedness matrix, we used KING23 with the –ibdseg option to infer IBD segments between all pairs in the 39,619 individuals from the ‘White British’ subsample of the UKB for which parental genotypes were observed or could be imputed, along with their first-degree relatives, giving a total sample of 44,553. The relatedness between two individuals based on IBD sharing was calculated as (1/2) × P(IBD1) + P(IBD2), where P(IBD1) and P(IBD2) are the fractions of the autosome shared in IBD1 and IBD2 segments respectively. We extracted the eigenvectors with the 40 largest eigenvalues from the resulting relatedness matrix.

UKB phenotypes

We analyzed EA; standing height (Data Field 50); body mass index (Data Field 21001); neuroticism score (Data Field 20127); whether an individual answered that they had ever smoked or not (Data Field 20160), encoded as a binary variable; cognitive ability, derived from a test of ‘fluid intelligence’ (Data Field 20016); high-density lipoprotein cholesterol (Data Field 30760); forced expiratory volume in one second (Data Field 3063); age at first live birth (in women) (Data Field 2754); and north (Data Field 129) and east (Data Field 130) birth coordinates. For EA, we converted the answers to the qualifications question (Data Field 6138) to years of education according to the method used in the most recent GWAS of EA45. For all phenotypes, we regressed out age, age2, age3, sex and interactions between sex and age, age2, and age3, along with the 40 genetic PCs provided by the UKB. For quantitative phenotypes, we normalized the phenotypes to have variance 1 separately in males and females.

To further investigate the impact of residual population stratification on EA and cognitive ability, we adjusted EA and cognitive ability for birth coordinates and the center where they were assessed (Data Field 54), in addition to the covariates listed above. To do this, we regressed the phenotype onto the covariates listed above and linear and nonlinear functions of north and east birth coordinates, assessment center coded as a categorical variable and interactions between assessment center and north and east birth coordinates and the squares and cubes of north and east birth coordinates. For the nonlinear functions of north and east birth coordinates, we used north coordinate, its square and cube; east coordinate, its square and cube; and all pairwise products between north coordinate and its square and cube, and east coordinate and its square and cube.

IBD inference

We developed a hidden Markov model (HMM), implemented in snipar, to infer IBD segments shared between siblings (Supplementary Note Section 9). The HMM models the joint distribution of a sibling pair’s (unphased) genotypes at a SNP conditional on the IBD state. To account for LD between nearby SNPs, we weighted the contribution of siblings’ genotypes at each SNP to the overall likelihood for the chromosome by the inverse of the LD score of the SNP. We calculated the LD scores using the LD Score Regression46 software with a 1 centimorgan (cM) window. The probability of transitioning from one IBD state to another is inferred from the genetic distance between the SNPs. We account for genotyping errors, which requires a parameter γ for the probability of a genotyping error. We smooth the IBD segments inferred by the HMM to remove short segments that are improbable based on their length in cM and whose neighboring segments have the same IBD state. This requires a parameter, m, the minimum allowed length (in cM) of an IBD segment that differs from its adjacent segments.

We optimized the parameters γ and m by using 31 families where two siblings and both parents are genotyped, and therefore the true IBD state can be inferred for many SNPs (Supplementary Note Section 9). We found that (γ, m) = (10−4, 0.01 cM) gave the highest probability of inferring the true IBD state, 99.65%. We give the proportions of SNPs with inferred IBD states 0, 1 and 2 as a function of the true IBD state in Supplementary Table 1.

We compared this to IBD segments inferred by KING using the –ibdsegs option, which had an overall probability of inferring the true IBD state of 98.5%. Our method therefore gave around a fourfold reduction in IBD errors compared to KING. Furthermore, we found that the distribution of IBD states inferred by KING diverged substantially from the theoretical expectation near the ends of chromosomes and centromeres, whereas the distribution of IBD states inferred by snipar was close to theoretical expectations from end to end (Extended Data Fig. 4).

Imputation of missing parental genotypes

Using the inferred IBD segments (above), we imputed missing parental genotypes from phased haplotypes for 1,586,010 SNPs, the union of the genotyping array SNPs and the HapMap3 SNPs with MAF > 1%. We examined the bias in the imputed parental genotypes by performing the imputation for families with both parental genotypes as if one or both parental genotypes were missing. If the imputation is unbiased, then the regression coefficient of the observed parental genotypes onto the imputed parental genotypes should be 1. This is because the covariance between the imputed parental genotypes and the observed parental genotypes should be equal to the variance of the imputed parental genotypes (Supplementary Note Section 2). Based on data from 31 families with two siblings and two parents genotyped, we obtained a regression coefficient of 0.9997 for regression of the sum of observed parental genotypes onto the imputed sum of parental genotypes. Based on data from 894 families with both parents genotyped, we set one parent’s genotype as missing and imputed it from the remaining genotypes in the family, and we obtained a regression coefficient of 0.9989 for regression of the observed parent’s genotype onto the imputed parent’s genotype. These results show there is negligible bias in the imputed parental genotypes.

Estimating direct and indirect effects of an education PGI

We used summary statistics from a GWAS of EA9 modified to remove the individuals in this study and their relatives, up to the third degree, from the summary statistics. We computed the PGI by applying LD-pred47 to the summary statistics. We computed PGIs for individuals and their siblings and parents based on observed and imputed genotypes. We estimated the effects of the PGI by performing an LMM regression in snipar:

Yij=Xijθ+μi+ϵij;μi~N0,σF2;ϵij~N0,σϵ2;

where the columns of X were the intercept, the individual’s PGI, the mean PGI of the siblings of the individual, the (imputed or observed) PGI of the individual’s father, and the (imputed or observed) PGI of the individual’s mother. Here, to account for the fact that the PGI might explain a substantial amount of phenotypic variance, the variance parameters σF2 and σϵ2 were estimated jointly with θ. For the analysis assuming that the indirect effect from the sibling was zero, we dropped the sibling PGI from the regression and expanded the sample to include individuals with genotyped and/or imputed parents but without a genotyped sibling. We adjusted average NTC estimates for bias introduced by imputation when AM is present (Supplementary Note Section 8).

GWASs in unrelated individuals

We conducted GWASs using BOLT-LMM48 in the sample of ‘White British’ UKB participants without third-degree or closer relatives also genotyped in the UKB22. This sample is therefore unrelated (less than third degree) from the sample of individuals with observed and/or imputed parental genotypes, who all have at least one first-degree relative also genotyped in the UKB. As in the related sample, we filtered out individuals identified by the UKB as having excess relatives, excess heterozygosity or sex chromosome aneuploidy, giving a sample size of 276,419. We applied BOLT-LMM to the 658,720 SNPs present on the UKB genotyping array.

In addition to the nine phenotypes used in the related sample, we also analyzed north and east birth coordinates. We adjusted the phenotypes for the same set of covariates as in our analysis of the related sample, including 40 genetic PCs. We estimated correlations between the summary statistics in the related sample and the summary statistics in the unrelated sample using the moment-based estimator (Supplementary Note Section 11) with the sampling correlation between the estimates set to zero.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.

Online content

Any methods, additional references, Nature Research reporting summaries, source data, extended data, supplementary information, acknowledgements, peer review information; details of author contributions and competing interests; and statements of data and code availability are available at 10.1038/s41588-022-01085-0.

Supplementary information

Supplementary Information (756.7KB, pdf)

Supplementary note (PDF). Supplementary tables are provided as separate file (sib_imputation_supplementary_tables_March_18_22).

Reporting Summary (1.1MB, pdf)
Peer Review File (2.3MB, pdf)
Supplementary table (62.8KB, xlsx)

Legends/captions are contained within the XLSX file.

Acknowledgements

The study was supported by funding from the Li Ka Shing Foundation, Open Philanthropy (010623-00001 and 2019-198171), the Netherlands Organisation for Scientific Research (VENI grant 016.Veni.198.058) and the National Institute on Aging/National Institutes of Health through grants R24-AG065184 and R01-AG042568 (to the University of California, Los Angeles), K99-AG062787-01 (to the Massachusetts General Hospital) and R00-AG062787 and R21-AG067585 (to the University of Southern California). We thank the UKB (application ID 11867).

Extended data

Author contributions

A.I.Y. and A.K. conceived and oversaw the study. A.I.Y. and A.K. derived the majority of the theoretical results, with contributions from S.M.N. and C.L. A.I.Y. developed the IBD inference algorithm. A.I.Y. and H.J. developed the method for computing correlations between effects. S.M.N. wrote the imputation code and developed the algorithm for imputation using more than two offspring. A.I.Y. wrote the code for genome-wide association and PGI analyses. A.O. and S.B. computed the EA PGI. A.I.Y. and S.M.N. analyzed the UKB data and performed the simulations. S.B., A.O., D.C., D.J.B. and P.T. provided important input and feedback on various aspects of the study design. All authors contributed to and critically reviewed the manuscript.

Peer review

Peer review information

Nature Genetics thanks Matthew Keller, and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.

Data availability

Summary statistics for the direct effects, NTCs, and population effects of 1,586,010 SNPs on nine phenotypes can be downloaded from http://www.thessgac.org/data, subject to a terms of use to encourage responsible use of the data. Applications for access to the UKB data can be made on the UKB website (http://www.ukbiobank.ac.uk/register-apply/).

Code availability

The code for IBD inference, imputation and genome-wide association and PGI analyses is available as a Python package, snipar49, under an MIT license at https://github.com/AlexTISYoung/snipar. Analyses were performed using Anaconda3 with Python 3.7.6 (https://repo.anaconda.com/archive/). Phasing was performed using SHAPEIT v2.r904 (https://mathgen.stats.ox.ac.uk/genetics_software/shapeit/shapeit.html), and haplotype merging was performed using QCTOOL v2.0.7 (https://www.well.ox.ac.uk/~gav/qctool_v2/). Relationship inference was performed using KING 2.2.4 (http://people.virginia.edu/~wc9c/KING). LD scores were computed using LDSC v1.0 (https://github.com/bulik/ldsc). Genome-wide association analyses in the sample of unrelated individuals were performed using BOLT v2.3.4 (https://alkesgroup.broadinstitute.org/BOLT-LMM/).

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Contributor Information

Alexander I. Young, Email: alextisyoung@gmail.com

Augustine Kong, Email: augustine.kong@bdi.ox.ac.uk.

Extended data

is available for this paper at 10.1038/s41588-022-01085-0.

Supplementary information

The online version contains supplementary material available at 10.1038/s41588-022-01085-0.

References

  • 1.Mills MC, Rahal C. A scientometric review of genome-wide association studies. Commun. Biol. 2019;2:1–11. doi: 10.1038/s42003-018-0261-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Meuwissen TH, Hayes BJ, Goddard ME. Prediction of total genetic value using genome-wide dense marker maps. Genetics. 2001;157:1819–1829. doi: 10.1093/genetics/157.4.1819. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Young AI, Benonisdottir S, Przeworski M, Kong A. Deconstructing the sources of genotype-phenotype associations in humans. Science. 2019;365:1396–1400. doi: 10.1126/science.aax3710. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Kong A, et al. The nature of nurture: effects of parental genotypes. Science. 2018;359:424–428. doi: 10.1126/science.aan6877. [DOI] [PubMed] [Google Scholar]
  • 5.Price AL, et al. Principal components analysis corrects for stratification in genome-wide association studies. Nat. Genet. 2006;38:904–909. doi: 10.1038/ng1847. [DOI] [PubMed] [Google Scholar]
  • 6.Yang J, Zaitlen NA, Goddard ME, Visscher PM, Price AL. Advantages and pitfalls in the application of mixed-model association methods. Nat. Genet. 2014;46:100–106. doi: 10.1038/ng.2876. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Berg JJ, et al. Reduced signal for polygenic adaptation of height in UK Biobank. Elife. 2019;8:1–47. doi: 10.7554/eLife.39725. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Zaidi AA, Mathieson I. Demographic history mediates the effect of stratification on polygenic scores. Elife. 2020;9:e61548. doi: 10.7554/eLife.61548. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Lee JJ, et al. Gene discovery and polygenic prediction from a genome-wide association study of educational attainment in 1.1 million individuals. Nat. Genet. 2018;50:1112–1121. doi: 10.1038/s41588-018-0147-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Brumpton B, et al. Avoiding dynastic, assortative mating, and population stratification biases in Mendelian randomization through within-family analyses. Nat. Commun. 2020;11:1–13. doi: 10.1038/s41467-020-17117-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Sohail M, et al. Polygenic adaptation on height is overestimated due to uncorrected stratification in genome-wide association studies. Elife. 2019;8:8–11. doi: 10.7554/eLife.39702. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Young AI, et al. Relatedness disequilibrium regression estimates heritability without environmental bias. Nat. Genet. 2018;50:1304–1310. doi: 10.1038/s41588-018-0178-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Visscher PM, et al. Assumption-free estimation of heritability from genome-wide identity-by-descent sharing between full siblings. PLoS Genet. 2006;2:e41. doi: 10.1371/journal.pgen.0020041. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Benyamin B. Family-based genome-wide association studies. Pharmacogenomics. 2009;10:181–190. doi: 10.2217/14622416.10.2.181. [DOI] [PubMed] [Google Scholar]
  • 15.Weiner DJ, et al. Polygenic transmission disequilibrium confirms that common and rare variation act additively to create risk for autism spectrum disorders. Nat. Genet. 2017;49:978–985. doi: 10.1038/ng.3863. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Selzam S, et al. Comparing within-and between-family polygenic score prediction. Am. J. Hum. Genet. 2019;105:351–363. doi: 10.1016/j.ajhg.2019.06.006. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Mostafavi H, et al. Variable prediction accuracy of polygenic scores within an ancestry group. Elife. 2020;9:e48376. doi: 10.7554/eLife.48376. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Fulker DW, Cherny SS, Sham PC, Hewitt JK. Combined linkage and association sib-pair analysis for quantitative traits. Am. J. Hum. Genet. 1999;64:259–267. doi: 10.1086/302193. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Hickey JM, Kinghorn BP, Tier B, van der Werf JHJ, Cleveland MA. A phasing and imputation method for pedigreed populations that results in a single-stage genomic evaluation. Genet. Sel. Evol. 2012;44:9. doi: 10.1186/1297-9686-44-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Sargolzaei M, Chesnais JP, Schenkel FS. A new approach for efficient genotype imputation using information from relatives. BMC Genomics. 2014;15:478. doi: 10.1186/1471-2164-15-478. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Whalen A, Gorjanc G, Hickey JM. AlphaFamImpute: high-accuracy imputation in full-sib families from genotype-by-sequencing data. Bioinformatics. 2020;36:4369–4371. doi: 10.1093/bioinformatics/btaa499. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Bycroft C, et al. The UK Biobank resource with deep phenotyping and genomic data. Nature. 2018;562:203–209. doi: 10.1038/s41586-018-0579-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Manichaikul A, et al. Robust relationship inference in genome-wide association studies. Bioinformatics. 2010;26:2867–2873. doi: 10.1093/bioinformatics/btq559. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Cavalli-Sforza LL, Feldman MW. Cultural versus biological inheritance: phenotypic transmission from parents to children (a theory of the effect of parental phenotypes on children’s phenotypes) Am. J. Hum. Genet. 1973;25:618–637. [PMC free article] [PubMed] [Google Scholar]
  • 25.Rice J, Cloninger CR, Reich T. Multifactorial inheritance with cultural transmission and assortative mating. I. Description and basic properties of the unitary models. Am. J. Hum. Genet. 1978;30:618–643. [PMC free article] [PubMed] [Google Scholar]
  • 26.Yengo L, et al. Imprint of assortative mating on the human genome. Nat. Hum. Behav. 2018;2:948–954. doi: 10.1038/s41562-018-0476-3. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Cook JP, Mahajan A, Morris AP. Fine-scale population structure in the UK Biobank: implications for genome-wide association studies. Hum. Mol. Genet. 2020;29:2803–2811. doi: 10.1093/hmg/ddaa157. [DOI] [PubMed] [Google Scholar]
  • 28.Abdellaoui A, et al. Genetic correlates of social stratification in Great Britain. Nat. Hum. Behav. 2019;3:1332–1342. doi: 10.1038/s41562-019-0757-5. [DOI] [PubMed] [Google Scholar]
  • 29.Kruglyak L, Daly MJ, Reeve-Daly MP, Lander ES. Parametric and nonparametric linkage analysis: a unified multipoint approach. Am. J. Hum. Genet. 1996;58:1347. [PMC free article] [PubMed] [Google Scholar]
  • 30.Kong A, et al. Detection of sharing by descent, long-range phasing and haplotype imputation. Nat. Genet. 2008;40:1068–1075. doi: 10.1038/ng.216. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Gudbjartsson DF, et al. A frameshift deletion in the sarcomere gene MYL4 causes early-onset familial atrial fibrillation. Eur. Heart J. 2016;38:27–34. doi: 10.1093/eurheartj/ehw379. [DOI] [PubMed] [Google Scholar]
  • 32.Rubin, D. B. Multiple Imputation for Nonresponse in Surveys (John Wiley & Sons, 2004).
  • 33.Munafò MR, Tilling K, Taylor AE, Evans DM, Davey Smith G. Collider scope: when selection bias can substantially influence observed associations. Int. J. Epidemiol. 2017;47:226–235. doi: 10.1093/ije/dyx206. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Tyrrell J, et al. Genetic predictors of participation in optional components of UK Biobank. Nat. Commun. 2021;12:1–13. doi: 10.1038/s41467-021-21073-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Benonisdottir, S. & Kong, A. The genetics of participation: method and analysis. Preprint in bioRxiv10.1101/2022.02.11.480067 (2022).
  • 36.Trejo S, Domingue BW. Genetic nature or genetic nurture? Introducing social genetic parameters to quantify bias in polygenic score analyses. Biodemogr. Soc. Biol. 2019;64:3–4. doi: 10.1080/19485565.2019.1681257. [DOI] [PubMed] [Google Scholar]
  • 37.Turley P, et al. Problems with using polygenic scores to select embryos. N. Engl. J. Med. 2021;385:78–86. doi: 10.1056/NEJMsr2105065. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Border, R. et al. Cross-trait assortative mating is widespread and inflates genetic correlation estimates. Preprint at bioRxiv10.1101/2022.03.21.485215 (2022). [DOI] [PMC free article] [PubMed]
  • 39.Hwang L-D, et al. Estimating indirect parental genetic effects on offspring phenotypes using virtual parental genotypes derived from sibling and half sibling pairs. PLoS Genet. 2020;16:e1009154. doi: 10.1371/journal.pgen.1009154. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Crow, J. F. & Kimura, M. An Introduction to Population Genetics Theory (Harper & Row, 1970).
  • 41.Nagylaki T. Assortative mating for a quantitative character. J. Math. Biol. 1982;16:57–74. doi: 10.1007/BF00275161. [DOI] [PubMed] [Google Scholar]
  • 42.Balbona JV, Kim Y, Keller MC. Estimation of parental effects using polygenic scores. Behav. Genet. 2021;51:264–278. doi: 10.1007/s10519-020-10032-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Howie B, Fuchsberger C, Stephens M, Marchini J, Abecasis GR. Fast and accurate genotype imputation in genome-wide association studies through pre-phasing. Nat. Genet. 2012;44:955–959. doi: 10.1038/ng.2354. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.McCarthy S, et al. A reference panel of 64,976 haplotypes for genotype imputation. Nat. Genet. 2016;48:1279–1283. doi: 10.1038/ng.3643. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Okbay A, et al. Polygenic prediction of educational attainment within and between families from genome-wide association analyses in 3 million individuals. Nat. Genet. 2022;54:437–449. doi: 10.1038/s41588-022-01016-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Bulik-Sullivan B, et al. LD score regression distinguishes confounding from polygenicity in genome-wide association studies. Nat. Genet. 2015;47:291–295. doi: 10.1038/ng.3211. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47.Vilhjálmsson BJ, et al. Modeling linkage disequilibrium increases accuracy of polygenic risk scores. Am. J. Hum. Genet. 2015;97:576–592. doi: 10.1016/j.ajhg.2015.09.001. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Loh P-R, et al. Efficient Bayesian mixed-model analysis increases association power in large cohorts. Nat. Genet. 2015;47:284–290. doi: 10.1038/ng.3190. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Young, A. I. & Moeen Nehzati, S. snipar v0.0.9 [computer software]. Zenodo10.5281/zenodo.6484858 (2022).

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary Information (756.7KB, pdf)

Supplementary note (PDF). Supplementary tables are provided as separate file (sib_imputation_supplementary_tables_March_18_22).

Reporting Summary (1.1MB, pdf)
Peer Review File (2.3MB, pdf)
Supplementary table (62.8KB, xlsx)

Legends/captions are contained within the XLSX file.

Data Availability Statement

Summary statistics for the direct effects, NTCs, and population effects of 1,586,010 SNPs on nine phenotypes can be downloaded from http://www.thessgac.org/data, subject to a terms of use to encourage responsible use of the data. Applications for access to the UKB data can be made on the UKB website (http://www.ukbiobank.ac.uk/register-apply/).

The code for IBD inference, imputation and genome-wide association and PGI analyses is available as a Python package, snipar49, under an MIT license at https://github.com/AlexTISYoung/snipar. Analyses were performed using Anaconda3 with Python 3.7.6 (https://repo.anaconda.com/archive/). Phasing was performed using SHAPEIT v2.r904 (https://mathgen.stats.ox.ac.uk/genetics_software/shapeit/shapeit.html), and haplotype merging was performed using QCTOOL v2.0.7 (https://www.well.ox.ac.uk/~gav/qctool_v2/). Relationship inference was performed using KING 2.2.4 (http://people.virginia.edu/~wc9c/KING). LD scores were computed using LDSC v1.0 (https://github.com/bulik/ldsc). Genome-wide association analyses in the sample of unrelated individuals were performed using BOLT v2.3.4 (https://alkesgroup.broadinstitute.org/BOLT-LMM/).


Articles from Nature Genetics are provided here courtesy of Nature Publishing Group

RESOURCES