Skip to main content
Genetics logoLink to Genetics
. 2018 Nov 2;211(1):235–262. doi: 10.1534/genetics.118.301687

Reconstructing the History of Polygenic Scores Using Coalescent Trees

Michael D Edge 1,1, Graham Coop 1,1
PMCID: PMC6325695  PMID: 30389808

As both GWAS and procedures for inferring gene genealogies progress, there will be major opportunities for learning about trait evolution using gene genealogies of trait-associated loci. Edge and Coop introduce statistical procedures for estimating....

Keywords: polygenic score, coalescent, selection

Abstract

Genome-wide association studies (GWAS) have revealed that many traits are highly polygenic, in that their within-population variance is governed, in part, by small-effect variants at many genetic loci. Standard population-genetic methods for inferring evolutionary history are ill-suited for polygenic traits: when there are many variants of small effect, signatures of natural selection are spread across the genome and are subtle at any one locus. In the last several years, various methods have emerged for detecting the action of natural selection on polygenic scores, sums of genotypes weighted by GWAS effect sizes. However, most existing methods do not reveal the timing or strength of selection. Here, we present a set of methods for estimating the historical time course of a population-mean polygenic score using local coalescent trees at GWAS loci. These time courses are estimated by using coalescent theory to relate the branch lengths of trees to allele-frequency change. The resulting time course can be tested for evidence of natural selection. We present theory and simulations supporting our procedures, as well as estimated time courses of polygenic scores for human height. Because of its grounding in coalescent theory, the framework presented here can be extended to a variety of demographic scenarios, and its usefulness will increase as both GWAS and ancestral-recombination-graph inference continue to progress.


SOME of the most compelling examples of phenotypic evolution come from time courses that reveal the pace of evolution, either through observations across generations (Cook et al. 1986; Grant and Grant 2002) or through changes in the fossil record (Gingerich 1983; MacFadden 2005; Bell et al. 2006). For many traits and species, it can be difficult to ascertain whether these changes reflect genetic change. For example, we have fairly detailed knowledge of human height through time, but some changes in height are likely driven by environmental and dietary changes (Stulp and Barrett 2016). Thanks to ancient DNA, we can now sometimes obtain a partial picture of long-term genetic changes involving relatively simple traits like pigmentation (Ludwig et al. 2009) or more complex traits (Mathieson et al. 2015). However, we are usually not fortunate enough to have access to genotype data from across time, and even when ancient DNA are available, the resulting time courses will necessarily be incomplete.

One alternative to direct measurement of phenotypes through time is to reconstruct the history of a phenotype using contemporary genetic data. Positive selection on simple genetic traits drives large allele-frequency changes at the causal loci and linked neutral alleles (Smith and Haigh 1974). There are many procedures for detecting this kind of selection on individual alleles and for dating and modeling their spread through populations (Tajima 1989; Fay and Wu 2000; Sabeti et al. 2002; Voight et al. 2006; Ronen et al. 2013; Garud et al. 2015; Crawford et al. 2017).

One obstacle to understanding the evolutionary basis of phenotypes is the polygenic architecture of many traits. Complex traits (traits affected by many genetic loci and by environmental variation) are ill-suited to study by single-locus methods. In recent years, genome-wide association studies (GWAS) have made it possible to aggregate subtle evolutionary signals that are distributed across the many genetic loci that are associated with a trait of interest (Turchin et al. 2012; Berg and Coop 2014; Robinson et al. 2015; Field et al. 2016; Racimo et al. 2018; Uricchio et al. 2018). For example, Field et al. (2016) developed the singleton density score (SDS) to infer recent selection on a variety of traits among the ancestors of people in the United Kingdom. [As discussed below, some empirical findings of these studies have not replicated using effect-size estimates from less-structured GWAS samples, raising the possibility that the selection tests are sensitive to residual population stratification (Berg et al. 2018; Sohail et al. 2018). Nonetheless, given correct effect-size estimates, these methods are useful.]

Field et al. relied on the fact that selection distorts the gene genealogies, or coalescent trees, at genetic loci under selection. In particular, loci under positive selection will have increased in frequency in the recent past, leading to relatively faster coalescence of lineages than if the allele frequency had been constant [the method of Palamara et al. (2018) also capitalizes on this idea]. The principle on which the SDS relies is quite general: selection, even when its effect is spread over many loci, leaves systematic signals in coalescent trees at loci underlying trait variation.

The ancestral recombination graph (ARG) (Griffiths and Marjoram 1997) collects coalescent trees at loci along a recombining sequence, encoding information about allele-frequency changes at each site, as well as recombination events between sites. Recently, computational methods for inferring ARGs have advanced considerably (Rasmussen et al. 2014; Mirzaei and Wu 2016), allowing a range of applications (Palacios et al. 2015).

In this work, we consider ways in which ARGs—and in particular, the coalescent trees of sites associated with a phenotype—might be used to reconstruct the history of the phenotype with which they are associated. The ARG-based approaches we consider are motivated by polygenic traits, and the population-mean level of a polygenic score (a prediction of phenotype from an individual’s genotype) is the target of estimation. We present methods for estimating the time course of a population-mean polygenic score through the past, as well as a test for assessing whether an estimated time course is consistent with neutral evolution alone.

We begin by describing estimators and a hypothesis test for phenotypic time courses based on previous theory. Next, we apply these procedures to simulated data, using both true and reconstructed ARGs. Finally, we apply our methods to some human heights in the GBR (Great Britain) subset of the 1000 Genomes panel (1000 Genomes Project Consortium et al. 2012), using ARGs inferred by RENT+ (Mirzaei and Wu 2016).

Theory

Background and motivation

The ARG expresses the shared genealogical history of a sample of individuals at a set of genetic loci, accounting for correlations among neighboring loci that arise because of linkage. The ARG contains a coalescent tree for every site in the genome—these trees for specific sites are marginal trees. Our methods make use of the marginal trees at a set of sites that are associated with a phenotype. In particular, we concentrate on the information revealed by the number of coalescent lineages that remain (i.e., that have not yet coalesced) at a time t in the past. The number of lineages at a given time in the past is described by a stochastic process called the ancestral process (e.g., Tavaré 1984).

The intuition behind the methods we present here is shown in Figure 1. If an allele has been selected upward in frequency in the recent past, then the number of chromosomes carrying the allele will likely have increased. Looking backward in time, the number of carriers in the recent past is less than in the present, which forces an excess of recent coalescence events. Similarly, if an allele has been selected downward recently, then there will tend to be fewer recent coalescent events compared with the neutral expectation. If the trait that has been under selection is polygenic, then the signal at each locus associated with the trait will be smaller, and its strength and direction will depend on the effect size at the locus. In Appendix A, we derive the relationship between the rate of coalescence and selection on the phenotype. We show that phenotypic selection acting to increase the population-mean trait value increases the rate of coalescence for alleles that increase the trait and lowers the coalescence rate for alleles that decrease the trait. In contrast, stabilizing selection acting on a trait for which the population mean is at the fitness optimum does not have a systematic directional effect on the coalescent rates.

Figure 1.

Figure 1

Selection distorts the coalescent tree at a locus. (A) The frequency time course for an allele that has been favored by recent selection is shown in gray. Superimposed is a coalescent tree relating a sample of chromosomes; the top half are of the disfavored type, and the bottom half are of the favored type. Because the favored alleles trace to a pool of ancestors that was small before selection, there is an excess of recent coalescence on the subtree of the favored allele. (B) If a polygenic trait is under directional selection, the rate of coalescence depends on effect size. The time under selection is shown on the horizontal axis, and the vertical axis shows the ratio of lineages remaining compared with the neutral expectation. Different lines show different effect sizes in units of trait standard deviation. Results are an average across 1000 simulations; selection coefficients are determined as if the trait experiences 1% directional truncation selection. Sel., selection.

Our target of estimation is the population-average polygenic score for a trait going backward through time. By polygenic score, we mean a weighted sum of an individual’s genotypes, where the weights are the additive effect sizes of each allele. In our case, we are interested in the population-average polygenic score, so we take a weighted sum of the allele frequencies:

Z(t)=2i=1kβipi(t). (1)

Here, Z(t) is the population-average polygenic score at time t in the past; pi(t) is the population frequency of one of the two alleles at locus i at time t in the past, and βi is the additive effect size of the allele whose frequency is pi(t), where the effect sizes have been scaled so that the other allele has an effect size of zero. (In practice, effect sizes will be estimated with error, but in this article we treat the effect sizes as known.) The 2 arises because of diploidy.

If the k loci included in the calculation of Z(t) include all the causal loci, then changes in Z(t) (the population-average polygenic score) reflect changes in the population-average phenotypic value in the absence of changes in the distribution of environmental effects on the trait, changes in the effect size, epistasis, and gene-by-environment interaction. Even if these strong assumptions are not met, rapid changes in Z(t) could provide evidence that natural selection has acted on the trait.

Our strategy for estimating Z(t) is to estimate the historical allele-frequency time courses, pi(t), for the loci associated with a trait. Given an estimator of the allele-frequency time courses, pi(t)^, we estimate polygenic scores as

Z(t)^=2i=1kβipi(t)^. (2)

If the loci contributing to the polygenic score are independent, then the variance of the polygenic-score estimator is

Var[Z(t)^]=4i=1kβi2Var[pi(t)^]. (3)

We present three methods for estimating historical allele-frequency time courses. A number of authors have investigated estimating allele-frequency time courses from coalescent genealogies (Slatkin 2001; Coop and Griffiths 2004; Chen and Slatkin 2013) or by applying Wright–Fisher diffusion theory to time-series data (Bollback et al. 2008; Schraiber et al. 2016). Our approaches are cruder than some of these but have the advantage of being fast enough to be applicable to thousands of GWAS loci.

Estimating the allele-frequency time course at a single locus

We present several methods for estimating the historical allele-frequency time course at a specific biallelic locus given a coalescent tree at the locus (Figure 2). (Our procedures could be generalized to loci with multiple alleles.) In each case, the goal is to estimate the frequency of an allele of interest (e.g., the effect allele) at locus i at time t in the past, or pi(t).

Figure 2.

Figure 2

Schematics of three estimators of historical allele frequencies using coalescent trees. In each tree, we show the information used to estimate allele frequency in the population at a time represented by the horizontal dashed line. (A) The proportion-of-lineages estimator. The estimate of the derived-allele frequency in the population is the derived-allele frequency among the ancestors of the sample, or 2/5 in the picture. (B) The waiting-time estimator. Relative “sizes” of the subpopulations of ancestral-allele and derived-allele carriers are estimated as a function of intercoalescence times among the ancestors of the present-day ancestral- and derived-allele carriers. (C) The lineages-remaining estimator. The relative sizes of the subpopulations of ancestral-allele and derived-allele carriers are estimated by examining the number of coalescence events that occur between prespecified time points, here called t0 and t1.

Proportion-of-lineages estimator:

The simplest way to estimate a historical allele frequency is to treat the lineages ancestral to the sample at time t as representative of the population at time t. If the locus has evolved neutrally between the present and time t in the past, then the lineages ancestral to the sample at time t are a random sample—with respect to allelic type—from the population at time t. If the lineages ancestral to the sample are a random sample from the population at time t, then a reasonable estimator of pi(t) is the proportion of lineages at time t that carry the allele of interest,

pi(t)^=ji(t)ri(t), (4)

where ri(t) is the total number of lineages ancestral to the present-day sample at locus i at time t and ji(t) is the number of lineages at time t that carry the allele of interest. Assuming that the mutation distinguishing the alleles has only appeared once in the history of the sample, the lineages that carry the derived allele are those ancestral to contemporary copies of the derived allele, which must coalesce to one lineage before coalescing with the rest of the tree. If the tree for the locus is known, then the branch on which the mutation must have appeared is known, but the exact time of the mutation is not. In practice, we assume that the mutation occurred in the middle of the branch connecting the derived subtree to the rest of the tree. (We make this assumption when implementing all estimators.)

If the population size at time t is large compared with the number of ancestral lineages at time t, then conditional on ri(t), the number of ancestral lineages carrying the allele of interest, ji(t), is distributed approximately as a binomial[ri(t),pi(t)] random variable. Thus, Equation 4 is the maximum-likelihood estimator of pi(t) and, conditional on ri(t), its sampling variance can be estimated as (dropping the subscript i’s and parenthetical t’s for compactness)

Var(p^)=jr(1jr)r=j(rj)r3. (5)

In Appendix B, we give a Bayesian interpretation of the proportion-of-lineages estimator that relies on connections between neutral diffusion and the ancestral process (Tavaré 1984).

If chromosomes carrying the two alleles have differed in fitness between the present and time t, then Equation 4 will in general be a biased and inconsistent estimator of pi(t). Chromosomes carrying alleles that have been favored by selection will be more likely to leave offspring in the present-day population than will chromosomes carrying unfavored alleles. Favored alleles will thus be overrepresented among the lineages ancestral to the sample compared with their actual frequency at time t. However, even if Equation 4 is an inconsistent estimator of the population’s allele frequency, it retains the interpretation of being the allele frequency among lineages ancestral to the sample. Thus, when Equation 2 is applied to allele frequencies estimated by Equation 4, the result is the mean polygenic score among chromosomes ancestral to the present-day sample at some time in the past.

Waiting-time estimator:

The proportion-of-lineages estimator proposed in Equation 4 works well under neutrality, but under selection it tends to underestimate the degree of allele-frequency change experienced by selected alleles. One potential solution is to consider the chromosomes in the population as two separate subpopulations (Hudson and Kaplan 1988)—one for the carriers of each of the two alleles at the locus—and to estimate the sizes of those two populations over time. At locus i, denote the sizes of these two subpopulations at time t as Ni(t) (for the allele of interest) and Mi(t) (for the other allele). The frequency of the allele of interest at time t in the past, or pi(t), is

pi(t)=Ni(t)Ni(t)+Mi(t). (6)

Here, we propose to estimate Ni(t) and Mi(t) on the basis of properties of the coalescent trees for the two alleles. We then estimate by plugging these estimates, Ni(t)^ and Mi(t)^, into Equation 6, giving

pi(t)^=Ni(t)^Ni(t)^+Mi(t)^. (7)

The estimator in Equation 7 is not unbiased in general, even if the estimates of Ni(t) and Mi(t) are unbiased. But separating the problems of estimating the two subpopulations confers an advantage: this estimator does not assume, as the proportion-of-lineages estimator does, that the two allelic types have had equal fitness between t and the present.

Assuming that the mutation that distinguished the two alleles occurred only once in the history of the sample, the chromosomes carrying the two alleles can be treated as two distinct subsamples between the time of the mutation and the present. Among the ancestors of the allele subsample carrying the allele of interest, coalescent time τ accrues according to

τi(t)=0t1/Ni(z)dz,

where t is measured in generations. It follows that

dτi(t)dt=1/Ni(t),

suggesting that Ni(t) can be estimated by assessing the rate at which coalescent time accrues. Mi(t) can then be estimated analogously and pi(t) can be estimated by Equation 7. We present two related approaches to estimating the rate of accrual of coalescent time in each subsample: one approach in which estimates are made with respect to waiting times between coalescent events, and another in which estimates are made with respect to the number of lineages ancestral to the subsample at a specified time in the past. In both approaches, we assume that Ni(t) and Mi(t) are piecewise constant, but it is possible to modify these estimators under other assumptions about how Ni(t) and Mi(t) change between time points.

The number of coalescence events in a time interval depends on the amount of coalescent time passed. Our approaches amount to inverting this relationship to estimate the amount of coalescent time passed on each lineage (and thus their relative population sizes) in a method-of-moments framework. In this subsection, we assess Ni(t) and Mi(t) according to the time passed between fixed numbers of coalescent events.

Suppose that Ni(t)=N, assumed to be constant from a time point of interest (defined here to be t=0) until coalescences have occurred within the subsample, which at t=0 consists of ni lineages. Define Yk as the waiting time to the kth coalescence, starting from the k1th coalescence event (or from t=0 if k=1). Define the total waiting time from t=0 to the th coalescence as Y=k=1Yk. Then, in units of generations, each Yk is an independent, exponentially distributed random variable with rate (nik+1)(nik)/(2N). Thus,

E(Y)=k=12N(nik+1)(nik)=w=ni+1ni2Nw(w1)=2N(1ni1ni), (8)

and

Var(Y)=4N2w=ni+1ni1w2(w1)2. (9)

For large ni and intermediate values of , Y is approximately normally distributed with expectation and variance given by Equation 8 and Equation 9 (Chen and Chen 2013). One estimator of Ni(t)=N, which is both a method-of-moments estimator and the maximum-likelihood estimator under the asymptotically normal distribution of Y, is

Ni(t)^=Y2[1/(ni)1/ni]. (10)

With =1, this is the “skyline” estimator of Pybus et al. (2000), and with 1, it is the generalized skyline estimator of Strimmer and Pybus (2001). It is unbiased under the assumption of constant Ni(t) between coalescence events. In our implementation, after the tree has coalesced down to one lineage, we assume that Ni(t) remains constant into the past if its allele is ancestral and that Ni(t) remains constant before dropping to zero in the middle of the branch on which the mutation arose if its allele is derived. (In principle, derived vs. ancestral status may be determined by the tree topology or “forced” on the basis of prior knowledge if the tree topology may be in error. We use the tree topology.)

One may estimate pi(t) by

pi(t)^=Ni(t)^Ni(t)^+Mi(t)^, (11)

where Mi(t) is estimated analogously to Ni(t). In principle, the estimates of Ni(t) and Mi(t) may be based on waiting times for different numbers of coalescences (),and they will likely be constant for different intervals of time. By a first-order Taylor approximation argument described in Appendix C,

E[pi(t)^]pi(t),

but in practice, pi(t)^ can be substantially biased. Its approximate variance is given in Appendix C.

One important decision in using this estimator is the choice of i.e., the number of coalescence events to wait for—for each allele. Small values of lead to variable estimates. On the other hand, the estimator assumes that the size of the subpopulation is constant until coalescent events have occurred, which may be increasingly unrealistic for large . In this article, we use =1 and defer investigation of different choices of for future work.

Lineages-remaining estimator:

The next estimator, which we term the “lineages-remaining” estimator, operates on a principle similar to the waiting-time estimator. The coalescent time passed on each allele’s background is evaluated by looking at the local rate of coalescence, and the relative numbers of carriers of each allele are estimated to form an allele-frequency estimate. The difference is that whereas the waiting-time estimator estimates population sizes for each allele between coalescent events, the lineages-remaining estimator estimates the population sizes between prespecified times by comparing the number of lineages of each type that remain (i.e., have not coalesced) at the more ancient end of a time interval with the number present at the more recent end of the interval.

Suppose that Ni(t)=N during an interval of Δt generations. At the end of the interval closer to the present there are ni(0) lineages, and at the end of the interval further into the past there are ni(t) lineages. The expected number of lineages remaining at the end of the interval can be approximated as

E[ni(t)]ni(0)ni(0)+[1ni(0)]eτ/2, (12)

where τ is the amount of coalescent-scaled time elapsed during the interval (Griffiths 1984; Maruvka et al. 2011; Chen and Chen 2013; Jewett and Rosenberg 2014). Here, Ni(t) is a haploid population size, so τ=Δt/Ni(t). For large ni(0) and intermediate lengths of time, ni(t) is approximately normally distributed (Griffiths 1984; Chen and Chen 2013). An estimator for Ni(t)=N, which is both a method-of-moments estimator—one based on the approximate value of E[ni(t)]—and the maximum-likelihood estimator under the limiting normal distribution, is

Ni(t)^=Δt2{log[ni(t)ni(t)1]log[ni(0)ni(0)1]}. (13)

As the tree coalesces to few lineages, there are several edge cases in which the estimator is undefined. Our methods for handling these cases are discussed in Appendix C.

It may be impractical to estimate Ni(t) because Δt in generations may be unknown. However, Δt cancels in the estimator of the allele frequency pi(t),

Ni(t)^Ni(t)^+Mi(t)^=log[mi(t)mi(t)1]log[mi(0)mi(0)1]log[mi(t)mi(t)1]log[mi(0)mi(0)1]+log[ni(t)ni(t)1]log[ni(0)ni(0)1], (14)

where Mi(t) is the number of carriers of the reference allele in the population at locus i at time t, and mi(0) and mi(t) are the numbers of lineages carrying the reference allele at the ends of the time interval closer to and more distant from the present, respectively. Approximate expressions for the variance of the estimator in Equation 14 are in Appendix C.

In practice, the estimator in Equation 14 will be evaluated at a set of times. Here, we evaluate the estimator every 0.001 coalescent units, starting at the present and extending back four coalescent units. The grid of times at which changes in the number of lineages of each type are considered will influence the estimate. Finer grids will lead to estimates that are more variable but less biased by the assumption of constant Ni(t) and Mi(t) between time points.

Testing time courses for selection

Once a polygenic-score time course has been constructed, it can be tested for selection. Whereas the relevance for trait evolution of the estimators proposed in the previous sections depends on the proportion of trait variance accounted for by the polygenic score, polygenic-score time courses can be tested for selection even if they account for a small proportion of the trait variance. Further, although we apply the test in this section to estimated polygenic-score time courses, it is also applicable to measured time-series data on allele frequencies when available.

We propose a test for selection that amounts to a modification of the QX framework of Berg and Coop (2014), an analog of QSTFST tests for phenotypic selection (Whitlock 2008). Berg and Coop proposed QX to test for overdispersion of polygenic scores among population samples, relative to neutral expectations. Here, we check for overdispersion among a set of time points along one population branch. We denote our time-based modification of QX as TX.

Suppose that for each time tj in a sequence of times, we observe a population-level polygenic score, Z(tj)=2i=1kβipi(tj), as in Equation 1. Assume that changes across time at distinct loci are independent. Following the QX framework, we model polygenic scores using a multivariate normal distribution. Specifically, we posit that at each locus, over short timescales, allele-frequency changes between time points follow a normal[0,fpi(1pi)] distribution (Cavalli-Sforza et al. 1964; Nicholson et al. 2002). (Approximate normality fails over longer timescales, in part because allele frequencies are bounded by 0 and 1.) Here, f is the coalescent time that has passed between time points and pi is the allele frequency at locus i at one end of the interval. (In practice, we choose pi to be the allele frequency at the end of the interval closer to the present.) The parameter f is constant across loci.

If allele-frequency changes at each locus are independent and normally distributed, then changes between time points in the polygenic scores are normal with expectation 0 and variance f4i=1kβi2pi(1pi). The variance of polygenic-score changes can also be written as f2VA, where VA=2i=1kβi2pi(1pi) is the additive genetic variance of the trait.

Imagine we have a time course of polygenic scores Z(t0),Z(t1),Z(t2),,Z(tw), with t0<t1<<tw. Under neutrality, for each time point j1,,w, the statistic

Xj=Z(tj)Z(tj1)2VA(tjtj1) (15)

has a normal(0,1) distribution. (VA can be recomputed for each value of j using allele frequencies at tj1. In practice, we use the same VA—the one computed from allele-frequency estimates closest to the present—for each time interval.) Moreover, under neutrality, allele-frequency changes in distinct time intervals are independent, so values of Xj are independent for distinct j. Thus, the sum across time points

TX=j=1wXj2 (16)

has a χ2(w) distribution. [For details on the equivalence of the TX statistic in Equation 16 to the QX statistic of Berg and Coop (2014) in this scenario, see Appendix D.] In contrast, under directional selection, changes in allele frequency across time depend on the effect size of the locus, leading to large changes in the polygenic score and TX values larger than predicted by the χ2(w) distribution. This test is an analog of time-course tests for phenotypic selection based on neutral Brownian motion (Lande 1976; Turelli et al. 1988), but with the advantage that we know VA.

TX can be compared with a χ2(w) distribution to test for significance, or it can be compared with a distribution obtained by permuting either effect sizes or their signs. If the χ2(w) distribution is used, then coalescent times elapsed between polygenic scores can be estimated by assessing estimated allele-frequency changes between time points, either at putatively neutral loci or trait-associated loci. Using estimated times produces type-I error rates closer to the nominal value because the estimators we use tend to change at a systematically different rate than the actual allele frequencies: the proportion-of-lineages estimator changes more slowly than do population allele frequencies, and the other estimators change more quickly than population allele frequencies. In practice, we use the sample variance of Δ(p^)/[p^(1p^)] as an estimate of coalescent time passed between time points, where Δ(p^) is an estimated allele-frequency change at a variable locus and p^ is the estimated allele frequency at the more recent end of the time interval. Assessing elapsed time on the basis of trait-associated loci may lead to a power decrement, but it will not be large—most of the TX signal comes from coordination of small shifts across loci and not from larger-than-expected allele-frequency changes (Berg and Coop 2014).

Data availability

Supplemental material, including code for the article, available at Figshare: https://doi.org/10.25386/genetics.6955367. Additionally, code used for running the simulations and implementing all data analyses presented here is available at http://github.com/mdedge/rhps_coalescent. The version of the code used here is permanently archived at doi: 10.5281/zenodo.1461077.

Simulation Results

We examined the performance of our methods in coalescent simulations. In particular, we simulated coalescent trees for unlinked loci associated with a phenotype. The simulated loci evolve neutrally or under directional selection. In particular, if an allele at locus i has effect size βi on a trait, and the trait experiences a selection gradient α(t) at time t, then the selection coefficient on the allele—representing the fitness of the heterozygote minus the fitness of the ancestral homozygote—is s(t)=α(t)βi (Charlesworth and Charlesworth 2010, equation B3.7.7). The coalescent simulations were run in mssel (Berg and Coop 2015), a version of ms (Hudson 2002) that takes allele-frequency time courses that may be produced by selection, and assumed a constant population size. Effect sizes for the derived allele are drawn from a normal distribution centered at zero. For details on the simulations, see Appendix E.

We consider the performance of the methods when (1) the true trees are provided as input, and (2) when the trees must be reconstructed from sequence data. We use the software RENT+ (Mirzaei and Wu 2016) for tree reconstruction.

Before considering systematic results over many simulations, we present estimated time courses for one representative simulation (Figure 3). In the simulation shown, the trait was under selection upward in the past but has evolved neutrally recently.

Figure 3.

Figure 3

The behavior of two of the proposed estimators, the proportion-of-lineages estimator and the lineages-remaining estimator, in a single simulation. The true time course of the population-average polygenic score is shown in black. The trait is under selection upward from 0.04 to 0.02 coalescent units in the past, leading to a shift of approximately two standard deviations in present-day units. Between the present and the most recent period of selection, the proportion-of-lineages estimator performs well. During the period of selection (and before), the ancestors of the sample are no longer representative of the ancestral population and the estimator becomes biased. In contrast, the lineages-remaining estimator is variable at all times but is less affected by bias associated with the period of selection. (For readability, results for the waiting-time estimator are not shown, but they are similar to the lineages-remaining estimator.) The estimates shown are formed from simulated coalescent trees for a sample of 200 chromosomes.

The proportion-of-lineages estimator (Equation 4) estimates allele frequencies as the proportion of lineages ancestral to the sample carrying each allele. It is expected to perform well under neutrality, and it does here: in the neutral period between the offset of selection and the present, it tracks the true polygenic score closely. During the period of selection, looking backward in time, the proportion-of-lineages estimator strays off target, slowly recovering in the period before the onset of selection. Looking forward in time, it is as if the proportion-of-lineages estimator “anticipates” shifts due to selection. As mentioned in the Proportion-of-lineages estimator subsection, the apparent anticipation occurs because, if there has been selection between the present and time t in the past, then the ancestors of the present-day sample at time t are a biased sample from the population at time t. For example, if the trait has been selected upward, then the ancestors of a present-day sample will have had high trait values compared with their peers.

The waiting-time estimator (Equation 11) and the lineages-remaining estimator (Equation 14) do not rely on an explicit neutrality assumption. Instead, they track the relative passage of coalescent time—measured, roughly, in terms of coalescence events—for each allelic type. These estimators track the rapid change in the polygenic score during the period of selection much more closely than the proportion-of-lineages estimator. (Only the lineages-remaining estimator is shown in Figure 3.) At the same time, these estimators rely on a highly stochastic signal—in the case of the waiting-time estimator (with =1), single coalescence events—and they are noisier than the proportion-of-lineages estimator as a result.

The patterns seen in Figure 3 reflect the performance of the methods over many simulations, as detailed in the next subsections.

Estimator performance: bias and mean squared error

Figure 4 shows bias and mean squared error (MSE) of our estimators of the historical polygenic score across three scenarios: one in which the trait has evolved neutrally, one in which there has been recent directional selection on the trait, and a third in which there has been directional selection on the trait in the past but the trait has recently evolved neutrally. These estimators are also compared with a “straight-line” estimator: a straight line that goes from the present value to the ancestral state (i.e., all derived-allele frequencies zero) in two coalescent units. In the neutral case, none of the estimators show marked bias and the proportion-of-lineages estimator has the lowest variance (and thus lowest MSE). Estimators formed from trees reconstructed by RENT+ (dashed lines) rather than the true trees (solid lines) are noisier and they do not outperform the straight-line estimator under neutrality.

Figure 4.

Figure 4

Bias and MSE of the proposed estimators. For the estimates computed from true coalescent trees (solid lines), 1000 simulations were performed; RENT+ was used to reconstruct trees for 100 of these trials (dashed lines). In each trial, the polygenic scores were formed from 100 loci. The polygenic scores either evolved neutrally (A and B) or with selection leading to a shift in mean polygenic score of approximately two standard deviations (in present-day units), either occurring from 0.02 coalescent units ago to the present (C and D), or from 0.04 to 0.02 coalescent units ago (E and F).

In the presence of selection, the proportion-of-lineages estimator is badly biased, and the severity of the bias increases during the interval of selection (looking backward in time). The waiting-time and lineages-remaining estimators are less strongly biased in the presence of selection and they achieve similar MSEs under selection and neutrality. Again, estimators formed from RENT+ trees perform worse than estimators formed from the true trees, but in the presence of selection, they outperform the straight-line estimator.

Interval estimation: coverage probabilities

Figure 5 shows the coverage probabilities of nominal 95% confidence intervals formed on the basis of the proportion-of-lineages, waiting-time, and lineages-remaining estimators and their (approximate) variances.

Figure 5.

Figure 5

Confidence-interval coverage for nominal 95% confidence intervals based on the proposed estimators. All confidence intervals were formed assuming an approximately normal distribution for the estimator, adding ±1.96 SE to the estimate. Standard errors were computed by taking the square root of the approximate variance of each estimator. Coverage probabilities are based on (A, C, and E) 1000 simulations for true trees or (B, D, and F) 100 simulations for RENT+ trees. Simulations were conducted under either (A and B) neutrality, (C and D) a shift of approximately two standard deviations over the last 0.02 coalescent units, or (E and F) a shift of two standard deviations from 0.04 to 0.02 coalescent units ago.

Under neutrality, and when using the true trees, all confidence intervals have approximately the correct coverage, although coverage for confidence intervals for both the lineages-remaining and waiting-time estimators decays further into the past. The decay of the coverage probability far in the past makes sense for the lineages-remaining and waiting-time estimators: both of these estimators implicitly assume that the number of carriers of each allele in the population remains constant between coalescent events. This assumption may be a reasonable approximation in the recent past, when coalescent events are frequent, but become untenable in the distant past, when coalescence times are longer.

Confidence intervals computed on the basis of RENT+ trees only achieve the nominal coverage in the very recent past and become anticonservative further back in time. This behavior is expected; the variances we use incorporate stochasticity in the coalescent process but do not account for randomness arising from errors in tree estimation. [Stochasticity in the coalescent process has been called “coalescent error” and contrasted with randomness from errors in tree estimation, or “phylogenetic error” (Ho and Shapiro 2011)].

Under selection, confidence intervals from the proportion-of-lineages estimator have very low coverage—this arises from the bias documented in Figure 4. The coverage probabilities of the waiting-time and lineages-remaining estimators are less changed by selection.

Power of TX

We assessed the performance of the TX statistic (Equation 16) as a test statistic for detecting selection in the simulations shown in Figure 4 and Figure 5. We constructed the test statistic from the allele-frequency estimates produced by each of the proposed estimators and compared it against both the theoretical χ2 distribution and against a permutation distribution. Table 1 shows the results. Under neutrality (first two rows), comparing TX against a distribution formed by randomly permuting the effect sizes produces acceptable type-I error rates. (There are 100 simulations using RENT+ and the values in Table 1 do not differ significantly from 0.05.) When the theoretical χ2 distribution is used, RENT+ type-I error rates are unacceptably high, but the type-I error rates produced from the true trees are acceptable.

Table 1. Power/type-I error of various implementations of the TX statistic.

Input Proportion-of-lineages estimator Waiting-time estimator Lineages-remaining estimator
χ2 distribution Permutation distribution χ2 distribution Permutation distribution χ2 distribution Permutation distribution
Neutral True trees 0.053 0.054 0.030 0.060 0.061 0.064
RENT+ 0.17 0.08 0.31 0.04 0.11 0.09
Selection, 0.02 coalescent units ago–now True trees 1 1 0.033 0.060 0.194 0.222
RENT+ 0.87 0.05 0.15
Selection, 0.04–0.02 coalescent units ago True trees 0.969 0.954 0.035 0.065 0.058 0.084
RENT+ 0.37 0.08 0.02

Power/type-I error (at the 0.05 level) of various implementations of the TX statistic in the simulations shown in Figure 4 and Figure 5, with 200 chromosomes sampled in the present. Power is not shown for methods with type-I error rates 0.1. TX was computed using allele-frequency estimates 0,0.01,0.02,,0.1 coalescent units before the present.

Of the methods with acceptable type-I error, tests using the allele frequencies estimated by the proportion-of-lineages estimator have by far the highest power. It may seem paradoxical that the proportion-of-lineages estimator is the best of our estimators at detecting selection, given that the estimated time courses produced by the proportion-of-lineages estimator are biased in the presence of selection. However, in our simulations, the proportion-of-lineages estimator generally moves in the correct direction in the presence of selection, albeit more slowly than it should. In contrast, the other two allele-frequency estimators are highly variable, leading to wide null distributions and decreased power. The proportion-of-lineages estimator can also be thought of as the mean polygenic score among lineages ancestral to the sample, and the test for selection responds to changes in the mean polygenic score of the ancestors that are faster than would be expected under the null hypothesis of neutral evolution.

With the proportion-of-lineages estimator, using true trees unsurprisingly gives better power than RENT+ trees, but RENT+ trees still have substantial power.

In Table 1, power is higher when selection occurs closer to the present. To explore the relationship between the timing of selection and present-day sample size, we conducted additional simulations. In these simulations, we assessed the power of the TX test (using the proportion-of-lineages allele-frequency estimates from true trees, and comparing with a permutation distribution) to detect an approximate one-standard-deviation shift in the population-mean polygenic score. We varied the timing of the shift and the present-day sample size. Figure 6 shows the results. For detecting selection close to the present, power increases with sample size. However, for selection further in the past, power reduces to the type-I error rate, regardless of the present-day sample size. This is because power to detect selection depends on unusual coalescent times during the period of selection, and by 0.1 coalescent units in the past, most coalescent events have already occurred, even in large samples. For example, even extremely large present-day samples have, in expectation, 200.5 ancestors tracing back 0.01 coalescent units in the past and 20.5 ancestors 0.1 coalescent units in the past (Maruvka et al. 2011; Jewett and Rosenberg 2014). Thus, it will likely be impossible to detect all but the strongest selective events by their signatures in coalescent trees if they are over 0.1 coalescent units in the past. TX’s power to detect selection up to 0.020.04 coalescent units into the past represents an extension of the SDS statistic (figure S6 in Field et al. 2016), which has excellent power in the very recent past but very little power beyond the expected length of a terminal branch [2/n in coalescent units, where n is the present-day sample size (Fu and Li 1993)]. In Appendix F, we show empirical power for a test statistic analogous to SDS computed from the lengths of the terminal branches (Figure F1). This SDS analog has similar power to TX near the present, but its power decays more rapidly for selection further in the past.

Figure 6.

Figure 6

Power of the TX test as a function of timing of selection and present-day sample size. Power is shown on the vertical axis. The horizontal axis shows the timing of a pulse of selection lasting 0.005 units and resulting in a shift in the population-average polygenic score of approximately one standard deviation (in present-day standard deviations). Each point is based on power from 100 simulations, using the proportion-of-lineages estimator on the true trees and using a null distribution obtained by randomly permuting locus effect sizes.

Simulations with larger numbers of loci

All of the above simulations are of polygenic scores that incorporate 100 loci each. Reassuringly, the performance is extremely similar for all estimators and tests if the number of loci is increased, using the estimators based on the true trees. In Supplemental Material, Figure S1, Figure S2, and Table S1, we show results analogous to Figure 4, Figure 5, and Table 1 with 1000 loci per polygenic score.

Empirical Application: Human Height

We applied our proposed estimators to human polygenic scores for height. Genetic variation within Europe related to human height has been studied by many investigators interested in polygenic selection (Turchin et al. 2012; Berg and Coop 2014; Robinson et al. 2015; Field et al. 2016; Berg et al. 2017; Racimo et al. 2018; Uricchio et al. 2018). A recent pair of articles compared the results produced by existing tests for polygenic selection when applied to human height using GWAS effect sizes from two different studies (Berg et al. 2018; Sohail et al. 2018). Most previous work has used GWAS effect sizes from the Genetic Investigation of Anthropometric Traits (GIANT) consortium (Wood et al. 2014), whereas the new work uses GWAS effect sizes from the larger and presumably less structured UK Biobank sample (Sudlow et al. 2015). Tests for polygenic selection on height provide much less evidence for selection when UK Biobank effect sizes are used than when effect sizes from GIANT are used. One possible explanation is that GIANT effect sizes are contaminated by some degree of population stratification.

In Figure 7, we show estimated population-mean polygenic-score time courses among populations ancestral to the GBR (British in England and Scotland) subsample of the 1000 Genomes Project (1000 Genomes Project Consortium et al. 2012). In the top panel GIANT effect sizes are used, and in the bottom panel UK Biobank effect sizes are used. Polygenic scores were constructed by taking the top locus in each of 1700 approximately independent genetic regions. [These polygenic scores are identical to those used in Berg et al. (2018); our “UK Biobank” is their “UKB-GB.”] Coalescent trees for these loci were estimated in RENT+. (Details in Appendix G.)

Figure 7.

Figure 7

Estimated population-mean polygenic scores for height in the population ancestral to the GBR subset of the 1000 Genomes Project (91 genomes). Time is displayed in approximate coalescent units, defined such that the mean across loci of the time (measured in mutations) to the most recent common ancestor is 2. To construct the polygenic scores, the top locus in each of 1700 approximately unlinked genomic regions was chosen. (See Appendix G for more information.) The top panel shows the results when effect sizes estimated by GIANT are used; the bottom panel shows analogous results when UK Biobank effect-size estimates are used. In both panels, the effect sizes are scaled so that the standard deviation of the polygenic score is 1 in the present, assuming linkage equilibrium among SNPs. 1000G, 1000 Genomes.

When the time courses are constructed using GIANT, all three estimators suggest that the population-mean polygenic score for height has increased in the recent past. Using the proportion-of-lineages approach, an increase of approximately three present-day polygenic-score standard deviations is estimated. In contrast, time courses estimated using the UK Biobank effect sizes show little apparent change in the recent past: the proportion-of-lineages estimator suggests a recent decrease of ∼0.34 standard deviations.

Further, when the change from the present to the most recent time point (0.001 units in RENT+) is assessed by the TX test, both sets of effect sizes yield some evidence of selection, but the evidence is stronger with GIANT effect sizes than with UK Biobank effect sizes. Specifically, with GIANT, TX(1)=14.9, P=0.0005 from 10,000 permutations, and with UK Biobank, TX(1)=7.0, P=0.0112. [We do not claim that the difference between the TX values across the data sets is itself significant (Gelman and Stern 2006), merely that the pattern of weakened evidence in the UK Biobank matches that observed by recent work (Berg et al. 2018; Sohail et al. 2018).] However, using both data sets, the evidence for selection is limited to periods very close to the present. If the same set of times evaluated in the simulations is evaluated for the height polygenic scores (approximate coalescent times 0,0.01,0.02,,0.1 before the present), neither polygenic-score time course provides evidence for selection (P0.2 in both cases). GIANT effect sizes produced much lower P-values for recent selection on height in the UK in a recent article (Field et al. 2016), but that work used a sample of 3195 genomes, whereas the GBR subset of the 1000 Genomes sample contains only 91 genomes.

Thus, our estimators broadly recapitulate the pattern of other methods for detecting polygenic selection, finding evidence suggestive of selection when GIANT effect sizes are used but much weaker evidence when UK Biobank effect sizes are used.

Discussion

We have proposed a set of estimators and tests for population-mean polygenic scores over time, given (additive) effect sizes for a trait at independent trait-associated loci and coalescent trees for the trait-associated loci. Estimation of the population-mean polygenic-score time course is most effective when the trait (and its associated loci) evolves neutrally and the ancestors of the sample are representative of the ancestral population. When the trait has been under selection, estimation is still possible, but the estimates obtained are noisier. Tests for polygenic selection that are based on coalescent trees have the potential to be powerful in the recent past.

In terms of practical applications, we have produced one estimator that produces good estimates of population-mean polygenic-score time courses under neutrality and that is also well powered to detect departures from neutrality (the proportion-of-lineages estimator). The other two estimators are less biased by selection, but they are variable and less useful for detecting selection. At this writing, one sensible procedure for fitting these methods to data would be to form initial estimates using the proportion-of-lineages estimator and test them for selection using the TX statistic. If the test suggests selection, then the ancestors of the sample may not be representative of the ancient population and polygenic-score time courses from the proportion-of-lineages estimator may be biased. In that case, the waiting-time or lineages-remaining estimators might be applied.

These methods add to a set of methods that use GWAS information to study the history of complex traits (Berg and Coop 2014; Field et al. 2016; Berg et al. 2017; Racimo et al. 2018; Uricchio et al. 2018). Many of these methods have been applied to human height, and our methods produce similar conclusions when applied to the same data (Berg et al. 2018; Racimo et al. 2018; Sohail et al. 2018; Uricchio et al. 2018). Our methods add to previous work by estimating the historical time courses of mean polygenic scores and by leveraging ARGs.

As with other population-genetic methods for studying polygenic traits, results from our methods are accompanied by many qualifiers to interpretation (Novembre and Barton 2018).

In general, estimates arising from the methods presented here should not be viewed as necessarily reflecting the historical time course of trait values within a population. In our simulations, the association between genotype and phenotype was assumed to remain constant over time. In contrast, polygenic scores estimated in practice are better thought of as functions that encode present-day associations between genotype and phenotype. The genotype–phenotype association captured by a polygenic score may be due to causal effects of the included genotypes, but it might also be due to linkage disequilibrium between tag SNPs and ungenotyped causal SNPs, to indirect genetic effects (Kong et al. 2018; Walsh and Lynch 2018, Chap. 22), or to environmental effects that covary with genotype for other reasons. Any of these sources of association between genotype and phenotype might change as the environment and genetic background of the population change over time, causing time courses estimated by our method to deviate from the history of average trait values in the population. For example, the genetic architecture may change across the time period over which estimates are made, for example because of changes in linkage disequilibrium between tag loci and causal loci (Martin et al. 2017), or because loci that explained trait variation in the past have since fixed or been lost. Further, real-world estimates of effect size will be subject to noise in estimation and possibly bias due to stratification. [Even small amounts of stratification can seriously mislead tests for selection (Berg et al. 2018; Sohail et al. 2018).] Particularly in case-control studies, ascertainment biases may also lead to confounding between the evolutionary status of an allele (i.e., derived or ancestral status) and power to detect trait associations (Chan et al. 2014). Also, importantly, changes in the environment may drive changes in mean levels of the trait that either amplify or oppose changes in population-mean polygenic scores, either via their direct effects or via gene–environment interactions. Finally, for most human traits, current polygenic scores explain relatively small proportions of the trait variance. In addition to all the issues above that might lead to bias in an inferred time course, using a weakly predictive polygenic score adds measurement error to the inferred time course—much of the variance in the trait will not be reflected by the polygenic score. This added variance would not be expected to increase the type-I error rate of tests of neutrality, but it will make the inferred time courses less likely to reflect the history of the trait closely.

Beyond these general caveats, the methods we propose here have several limitations that suggest directions for future work. The first three limitations concern outstanding statistical issues. First, the polygenic scores we estimate here are weighted sums of effect sizes estimated under additive models. Our variance estimates also assume that the loci incorporated in the polygenic score are in linkage equilibrium. Because our estimators work by estimating historical allele frequencies at the loci contributing to the polygenic score, they can in principle be adapted to estimate any function of allele frequencies, including trait predictions that account for dominance, epistasis, and linkage among loci, and also to single-locus trajectories. However, the strategies we use here for variance estimation and hypothesis testing may need to be modified for more general functions of allele frequencies. Second, any applications of these methods to real data will entail noise that is not accounted for by the variance estimates we propose. In particular, effect sizes will be estimated with error and so will the coalescent trees for sites included in the polygenic score. It will be important to incorporate these sources of variance in future estimates of sampling variation. Third, as suggested in the Theory section, the waiting-time and lineages-remaining estimators implicitly contain smoothing parameters. Fully characterizing the effects of these smoothing parameters and of alternative smoothing strategies—such as those used to smooth coalescent-based estimates of population-size history (Drummond et al. 2005; Minin et al. 2008)—will reveal the potential of these estimators, which have high variance in the forms in which they are used here.

The next three possible extensions are suggested by biological applications and by the coalescent framework in which we work. First, the theory we develop here is for a single population, but our setting within a coalescent framework suggests the possibility for extension to multiple populations, perhaps by developing multivariate analogs of our statistics within a coalescent-with-migration framework (Kaplan et al. 1991). Similarly, whereas we work with polygenic scores for a single trait, our methods can be extended to consider polygenic scores for multiple, correlated traits. In a similar vein, Berg et al. (2017) have recently extended the QX statistic to multiple correlated traits, drawing inspiration from the framework of Lande and Arnold (1983). Working with multiple traits will allow us to distinguish hypotheses in which a trait is directly subject to selection from hypotheses in which a correlated trait is the target of selection. Finally, because the coalescent framework explicitly represents the evolution of the sample backward in time, it will be productive to incorporate ancient samples.

The methods we propose are promising in part because they capitalize on illuminating descriptions of genetic variation that will become increasingly widely available. ARGs encode all the coalescence and recombination events reflected in the present-day sample, and thus are richly informative about the history of the sample’s ancestors. Statistics computed from these ARGs have the potential to capture all the information about an allele’s frequency time course that is available in a present-day sample. Approaches to traits that are based on sample ARGs will improve with the development of our understanding of the architecture of complex traits and of our ability to reconstruct ARGs.

Acknowledgments

We thank members of the Coop laboratory and Arbel Harpak for useful discussions, Jeremy Berg for providing the height loci and effect sizes used in Berg et al. (2018), and Sajad Mirzaei for support with RENT+ software. Joshua Schraiber and Jay Taylor provided helpful comments on the manuscript. The authors acknowledge support from National Institutes of Health (R01 GM-108779) and National Science Foundation (1262327 and 1353380).

Appendix A: The Relationship Between Coalescent Rates and Phenotypic Selection

In this appendix, we describe the consequences of directional and stabilizing selection on a trait for coalescence rates at loci associated with the trait.

We begin by considering the general effects of selection on coalescence before considering the specific cases of directional and stabilizing selection. If the frequency of the allele of interest at locus i at time t is pi(t) in a population of 2N chromosomes, then the probability of any one of (n2) pairs coalescing in the preceding generation is

λ(t1)=(n2)12Npi(t1) (A1)

(Hudson and Kaplan 1988). Writing the frequency in the preceding generation as pi(t1)=pi(t)Δi(t), then

λ(t1)=(n2)12N[pi(t)Δi(t)](n2)12Npi(t)[1+Δi(t)/pi(t)] (A2)

assuming that Δi(t) is small so that higher-order terms in the Taylor expansion can be ignored. We can decompose the change in frequency from the preceding generation into Δi(t)=Δi(N)(t)+Δi(S)(t), the contributions of random genetic drift (N) and selection (S), respectively. Then, taking the expectation over the frequency in the preceding generation,

E[λ(t1)](n2)12Npi(t){1+E[Δi(t)/pi(t)]}=(n2)12Npi(t)[1+Δi(S)(t)/pi(t)] (A3)

because E[Δi(N)(t)]=0 and Δi(S)(t) is the deterministic change due to selection.

If the allele of interest affects a trait that is under selection, then the form of Δi(S)(t) depends on the allele’s role in the trait’s architecture and on the specifics of selection on the trait. The simplest case is one in which directional selection acts on a phenotype whose genetic architecture is purely additive. Denote the selection gradient—that is, the slope of fitness regressed on phenotype—as α. If the effect size of the ith locus on the phenotype is βi, and the loci that affect the phenotype are unlinked, then

Δi(S)(t)=αβipi(1pi) (A4)

(equation 3.17 in Charlesworth and Charlesworth 2010). Therefore, the expected coalescent rate over the possible allele-frequency changes in the preceding generation is

EΔ[λ(t1)](n2)12Npi(t)[1+αβi(1pi)]. (A5)

Therefore, recent directional selection increases the coalescence rate among alleles that move the phenotype in the direction in which selection acts. For example, if larger trait values have been selected recently, the coalescence rate will be higher among alleles associated with larger values of the trait and lower among alleles associated with smaller values of the trait. This is true regardless of the frequency of the allele.

If the phenotype is subject to both directional selection and stabilizing selection, the allele frequency matters. For example, one common and reasonably general model incorporating directional and stabilizing selection is the quadratic optimum model, where the fitness of an individual with phenotype G is W(G)=1s(POG)2. There is directional selection on the phenotype when the population mean (G¯) deviates from the optimum δ=POG¯0. (When δ>0, the population mean is below the optimum, and selection will favor larger trait values.) Under this model,

Δi(S)(t)=2sβiδpi(1pi)Directional selection+sβi2pi(1pi)(2pi1)Stabilizing selection; (A6)

see Barton (1986), Bürger (2000), and Simons et al. (2018) for a recent discussion. Note the similarity of the directional selection term—with the selection gradient now controlled by sδ—to Equation 20, resulting in similar coalescent rates to Equation 21. The Δ term for stabilizing selection matches that of a disruptive-selection model with an unstable equilibrium at 1/2δ/βi.

Incorporating both directional and stabilizing selection, the expected coalescent rate is approximately

EΔ[λ(t1)](n2)12Npi(t)[1+2sβiδ(1pi)Directional selection+sβi2(1pi)(2pi1)Stabilizing selection]. (A7)

The stabilizing selection term decreases the coalescent rate of whichever allele has frequency <1/2. The average coalescent rate among “up” alleles (βi>0) depends on the value of EΔ[λ(t1)] averaged over the frequency distribution of pi. Thus, when directional selection acts on the phenotype, we again expect an increased coalescence rate among alleles whose effects have been favored. If the population is at the optimum, i.e., δ=0, then averaging across loci there is no net effect on the coalescent rates if there is a symmetric distribution of pi1/2 (across all effect sizes). This symmetric distribution will result when the population is at equilibrium and there is no mutational bias (i.e., there is no difference in the mutational input of up and down alleles).

Appendix B: A Bayesian View of the Proportion-of-Lineages Estimator

To arrive at a Bayesian view of the estimator proposed in Equation 4, define the frequency of an allele of interest at a biallelic locus at time t in the past as pi(t)=x. If the allele of interest is equally likely to be derived or ancestral, a reasonable prior distribution would be proportional to the limit (as the mutation rates approach 0) of the stationary distribution of the neutral diffusion with mutation, or x1(1x)1 (equation 5.70 in Ewens 2004). Assume that the two alleles at the locus have experienced equal reproductive success between the present and time t—that is, assume that the locus has evolved neutrally in the time interval. In that case, the lineages ancestral to a random sample of chromosomes in the present are themselves a random sample from the population at time t, and if there are r ancestral lineages at time t, then the number carrying the allele of interest is a binomial(r,x) random variable. If we observe that j out of r ancestral lineages at time t carry the allele of interest, then the posterior distribution for x is proportional to

fx(x|r,j)(rj)xj(1x)rjx(1x)=(rj)xj1(1x)rj1.

Noticing that xj1(1x)rj1 is the kernel of a β(j,rj) distribution gives the posterior,

fx(x|r,j)=(r1)!(j1)!(rj1)!xj1(1x)rj1. (B1)

Equation B1 suggests the posterior mean of pi(t) as an estimate of the frequency (when r2 and j1), which is equal to Equation 4. The posterior variance is

Var[pi(t)|pi(0)=p,ni(t)=j,mi(t)=rj]=j(rj)r2(r+1), (B2)

which differs from the binomial sampling variance in Equation 5 by a factor of r/(r+1).

It may be interesting to note that there is a connection between this Bayesian view of the estimator and the neutral Wright–Fisher diffusion process, reviewed by Tavaré (1984). Under a neutral Wright–Fisher diffusion model without mutation, the probability that an allele frequency changes forward in time from pi(t)=p to pi(0)=x in time t can be written as (equation 7.18 in Tavaré 1984)

P[pi(0)=x|pi(t)=p]=r=2gr(t)j=1r1(rj)pj(1p)rj(r1j1)xj1(1x)rj1, (B3)

here gr(t) is the probability that r lineages of an initially infinite number of lineages survive to time t. Because the neutral diffusion is time reversible (Ewens 2004),

P[pi(0)=x|pi(t)=p]=P[pi(t)=x|pi(0)=p],

and the expression on the right side of Equation B3 is thus also an expression for the allele frequency in the past given the allele frequency in the present, P[pi(t)=x|pi(0)=p]. One way to interpret Equation B3 is that if r lineages survive to time t, then the number j of lineages carrying a focal allele at time t is a binomial(r,p) random variable. Then, conditional on j, the frequency pi(t) has a β(j,rj) distribution.

Appendix C: Mathematical Details for the Waiting-Time and Lineages-Remaining Estimators

Taylor-Series Expansions for Expectations and Variances of Ratios

Both the waiting-time and lineages-remaining estimators take the form

p^=f(N^,D^)=N^D^, (C1)

where D^=N^+M^, and N^ and M^ are population-size estimators that are independent of each other. We assume that P(D^0)=0. Equation C1 is equivalent to Equation 7 from the main text, with the subscripts and time notation removed for compactness.

In this subsection we present general Taylor-series approximations for the expectation and variance of the estimator in Equation C1 in terms of the expectation and variance of N^ and M^. Similar presentations are available in other references (sections 10.5–10.6 in Stuart and Ord 1987), but we present the argument here for completeness.

The first-order Taylor expansion of Equation C1 evaluated at (μN^,μD^) is

f(N^,D^)=f(μN^,μD^)+fN^(μN^)(N^μN^)+fD^(μD^)(D^μD^)+Z, (C2)

where fN^ and fD^ are the partial derivatives of f, and Z represents the contribution of higher-order terms. The expectation of f(N^,D^) is therefore

E[f(N^,D^)]=E[f(μN^,μD^)+fN^(μN^)(N^μN^)+fD^(μD^)(D^μD^)+Z]=f(μN^,μD^)+fN^(μN^)E(N^μN^)+fD^(μD^)E(D^μD^)+E(Z),

with the second step coming from the linearity of expectation and the fact that f(μN^,μD^) is not random. Choosing μN^ and μD^ to be equal to the expectations of N^ and D^ gives

E[f(N^,D^)]=f(μN^,μD^)+fN^(μN^)0+fD^(μD^)0+E(Z)=f(μN^,μD^)+E(Z)f(μN^,μD^)=μN^μD^, (C3)

where the approximation depends on the higher-order terms represented by Z being small. Equation C3 underlies the claim in the main text that the waiting-time estimator is approximately, to first order, unbiased (under the unrealistic assumption that the number of carriers of each allele is constant between coalescent events).

To obtain the approximate variance of the estimator in Equation C1, we use Equation C3 and note that

Var[f(N^,D^)]=E({f(N^,D^)E[f(N^,D^)]}2)E{[f(N^,D^)f(μN^,μD^)]2}. (C4)

Substituting the first-order Taylor expansion in Equation C2 for f(N^,D^), ignoring the higher-order terms represented by Z, gives

Var[f(N^,D^)]E{[f(μN^,μD^)+fN^(μN^)(N^μN^)+fD^(μD^)(D^μD^)f(μN^,μD^)]2}=E{[fN^(μN^)(N^μN^)+fD^(μD^)(D^μD^)]2}=E[fN^(μN^)2(N^μN^)2+2fN^(μN^)fD^(μD^)(N^μN^)(D^μD^)+fD^(μD^)2(D^μD^)2]=fN^(μN^)2E[(N^μN^)2]+2fN^(μN^)fD^(μD^)E[(N^μN^)(D^μD^)]+fD^(μD^)2E[(D^μD^)2]=fN^(μN^)2Var(N^)+2fN^(μN^)fD^(μD^)Cov(N^,D^)+fD^(μD^)2Var(D^). (C5)

The last step comes from the definitions of variance and covariance and the fact that we choose μN^ and μD^ to be equal to the expectations of N^ and D^. In our case, f(N^,D^)=N^/D^, implying that fN^(μN^)=1/μD^ and fD^(μD^)=μN^/μD^2. Plugging these values into Equation C5 gives

Var[f(N^,D^)]Var(N^)μD^22μN^Cov(N^,D^)μD^3+μN^2Var(D^)μD^4, (C6)

with the useful alternative form

Var[f(N^,D^)](μN^μD^)2[Var(N^)μN^22Cov(N^,D^)μN^μD^+Var(D^)μD^2]. (C7)

Finally, in our setting, D^=N^+M^, and N^ and M^ are independent conditional on the true but unknown allele-frequency time course (Kaplan et al. 1988; Coop and Griffiths 2004). Conditional independence gives μD^=μN^+μM^, Var(D^)=Var(N^)+Var(M^), and Cov(N^,D^)=Var(N^). Using these identities in Equation C7 gives

Var(p^)(μN^μN^+μM^)2[Var(N^)μN^22Var(N^)μN^(μN^+μM^)+Var(N^)+Var(M^)(μN^+μM^)2]. (C8)

Approximate Variance of the Waiting-Time Estimator

As noted in the main text, the waiting-time estimator has the form

pi(t)^=Ni(t)^Ni(t)^+Mi(t)^,

where

Ni(t)^=Y2(1/[ni]1/ni).

Y is the waiting time associated with a set of coalescent events on the allele of interest’s background that envelop time t, and ni is the number of allele-of-interest lineages that exist before any of the coalescent events have occurred. Mi(t)^ is analogous, substituting in a waiting time and number of lineages from the other allele’s background, and possibly a different value of .

It is also noted in the main text (Equation 9) that the waiting time Y has variance

Var(Y)=4Ni(t)2w=ni+1ni1w2(w1)2.

Thus, the variance of Ni(t)^ is

Var[Ni(t)^]=Ni(t)2w=ni+1ni1w2(w1)2[1/(ni)1/ni]2. (C9)

If =1, Equation C9 reduces to Var[Ni(t)^]=Ni(t)2. If ni, then

w=ni+1ni1w2(w1)2ni2(ni1)2,

and Var(Ni(t)^)Ni(t)2/.By Equation C8 and the fact that Ni(t)^ and Mi(t)^ are unbiased, the approximate variance of the waiting-time estimator is

Var[pi(t)^]Ni(t)2[Ni(t)+Mi(t)]2{σN2Ni(t)22σN2Ni(t)[Ni(t)+Mi(t)]+σN2+σM2[Ni(t)+Mi(t)]2}, (C10)

where σN2 and σM2 are the variances of Ni(t) and Mi(t), respectively. If =1 is used to estimate both Ni(t) and Mi(t), then Var[Ni(t)^]=Ni(t)2, Var[Mi(t)^]=Mi(t)2, and Equation C10 reduces to

Var[pi(t)^]Ni(t)2[Ni(t)+Mi(t)]2{Ni(t)2Ni(t)22Ni(t)2Ni(t)[Ni(t)+Mi(t)]+Ni(t)2+Mi(t)2[Ni(t)+Mi(t)]2}=Ni(t)2[Ni(t)+Mi(t)]2{12Ni(t)Ni(t)+Mi(t)+Ni(t)2+Mi(t)2[Ni(t)+Mi(t)]2}=Ni(t)2[Ni(t)+Mi(t)]2{1+Mi(t)2Ni(t)22Ni(t)Mi(t)[Ni(t)+Mi(t)]2}=Ni(t)2[Ni(t)+Mi(t)]2{1+2Mi(t)2[Ni(t)+Mi(t)]21}=2pi(t)2[1pi(t)]2. (C11)

If Ni(t) and Mi(t) are estimated using the same value of , and is much smaller than the starting number of lineages for both loci, so that σN2Ni(t)2/ and σM2Mi(t)2/, then Equation C9 can be rewritten as

Var[pi(t)^]2pi(t)2[1pi(t)]2.

Approximate Variance of the Lineages-Remaining Estimator

In the main text, we propose to estimate Ni(t) as

Ni(t)^=Δt2{log[ni(t)ni(t)1]log[ni(0)ni(0)1]}, (C12)

where Δt is the number of generations elapsed between two ends of a predefined time interval, ni(0) is the number of lineages of the allele of interest at the end of the time interval closer to the present, and ni(t) is the number of lineages of the allele of interest at the end of the interval further into the past. The only random component of Ni(t)^ is ni(t), which depends on the number of coalescent events that occur during the interval. This estimator of Ni(t) is leads to an estimator for pi(t), the allele frequency of interest,

pi(t)^=log[mi(t)mi(t)1]log[mi(0)mi(0)1]log[mi(t)mi(t)1]log[mi(0)mi(0)1]+log[ni(t)ni(t)1]log[ni(0)ni(0)1]. (C13)

(The expression in Equation C13 is the same as in Equation 14.)

To obtain an approximate sampling variance for pi(t)^, we use Equation C8, making the substitutions

N^=log[mi(t)mi(t)1]log[mi(0)mi(0)1]

and

M^=log[ni(t)ni(t)1]log[ni(0)ni(0)1].

To use Equation C8, we need (at least approximate) expectations and variances for both these terms. To compute an approximate expectation, we replace mi(t) and ni(t) with their expectations. Taking the case of ni(t), notice that by Equation 12,

log{E[ni(t)]E[ni(t)]1}=log{ni(0)ni(0)+[1ni(0)]eτ/2ni(0)ni(0)+[1ni(0)]eτ/21}=log{ni(0)ni(0)+[1ni(0)]eτ/2ni(0)ni(0)[1ni(0)]eτ/2ni(0)+[1ni(0)]eτ/2}=log[ni(0)eτ/2ni(0)1]=log[ni(0)ni(0)1]+τ2. (C14)

In Equation C14, τ represents the coalescent time passed on the allele of interest’s background, or Δt/Ni(t), and so

E{log[ni(t)ni(t)1]log[ni(0)ni(0)1]}Δt2Ni(t), (C15)

and analogously for mi(t),

E{log[mi(t)mi(t)1]log[mi(0)mi(0)1]}Δt2Mi(t). (C16)

Next we compute the approximate variances of these terms. Because ni(0) is a constant,

Var{log[ni(t)ni(t)1]log[ni(0)ni(0)1]}=Var{log[ni(t)ni(t)1]}. (C17)

By a first-order Taylor approximation, the variance is approximately

Var{log[ni(t)ni(t)1]}(f{E[ni(t)]})2Var[ni(t)], (C18)

where f{E[ni(t)]} is the derivative of the right side of Equation C17 with respect to ni(t), evaluated at E[ni(t)]. (The argument for this approximation is entirely parallel to the one in Equation C5, but for a function of a single random variable.) The derivative of the right side of Equation C17 with respect to ni(t), evaluated at E[ni(t)], is

f{E[ni(t)]}=1E[ni(t)]{E[ni(t)]1}. (C19)

To write the approximate variance of ni(t), we use the asymptotic variance derived by equation 5 in Griffiths (1984), using the version for β=0 and α< (see also Chen and Chen 2013). To change the expression into our notation, we make the replacements α=ni(0)Δt/[2Ni(t)], β=Δt/[2Ni(t)] (because we assume only a single mutation distinguishing the two allelic types, so θ=0 conditional on that mutation), and η=E[ni(t)]Δt/[2Ni(t)] (by Griffiths’ equation 4). Doing so and simplifying yields

Var[ni(t)]E[ni(t)]2{E[ni(t)]1}2{1E[ni(t)]+1E[ni(t)]11ni(0)1ni(0)1ΔtNi(t){. (C20)

Plugging the expressions for f{E[ni(t)]} and Var[ni(t)] into Equation C18 gives an approximate variance,

Var{log[ni(t)ni(t)1]}1E[ni(t)]+1E[ni(t)]11ni(0)1ni(0)1ΔtNi(t). (C21)

Analogously, for the mi(t) term,

Var{log[mi(t)mi(t)1]}1E[mi(t)]+1E[mi(t)]11mi(0)1mi(0)1ΔtMi(t). (C22)

Now, to obtain an approximate variance for pi(t)^, we plug the expressions in Equation C21, Equation C16, Equation C21, and Equation C22 into Equation C8. Doing so gives the expression

Var[pi(t)^][Ni(t)Ni(t)+Mi(t)]2{{1E[mi(t)]+1E[mi(t)]11mi(0)1mi(0)1ΔtMi(t)}{1[Δt2Mi(t)]22Δt2Mi(t)[Δt2Mi(t)+Δt2Ni(t)]+1[Δt2Mi(t)+Δt2Ni(t)]2}+{1E[ni(t)]+1E[ni(t)1]1ni(0)1ni(0)1ΔtNi(t)}1[Δt2Mi(t)+Δt2Ni(t)]2}.

Noticing that pi(t)=Ni(t)/[Ni(t)+Mi(t)], expanding the products in the denominators and factoring out common terms gives:

Var[pi(t)^]4pi(t)2Mi(t)2Δt2{{1E[mi(t)]+1E[mi(t)1]1mi(0)1mi(0)1ΔtMi(t)}[1pi(t)]2+{1E[ni(t)]+1E[ni(t)1]1ni(0)1ni(0)1ΔtNi(t)}pi(t)2}.

Finally, noticing that Ni(t)=pi(t)[Ni(t)+Mi(t)] and Mi(t)=[1pi(t)][Ni(t)+Mi(t)] and defining the coalescent time passed with respect to the whole sample, τs=Δt[Ni(t)+Mi(t)], gives

Var[pi(t)^]4pi(t)2[1pi(t)]2τs2{{1E[mi(t)]+1E[mi(t)]11mi(0)1mi(0)1τs1pi(t)}[1pi(t)]2+{1E[ni(t)]+1E[ni(t)]11ni(0)1ni(0)1τspi(t)}pi(t)2}. (C23)

To estimate the approximate variance in Equation C23, we replace pi(t) with its estimated value from the lineages-remaining estimator, τs with the (known or estimated) coalescent time elapsed between time points, and the expectations of ni(t) and mi(t) with their realized values.

The approximate variance in Equation C23 relies on an asymptotic variance of the number of ancestral lineages from Griffiths (1984). In practice, Equation C23 gives variance estimates that are much too large when the number of lineages are small and the time passed is short. For example, with ni(0)=mi(0)=10, pi(t)=1/2, and τs=0.001, Equation C23 produces 1.4. Because pi(t)^[0,1], its maximum variance is 0.25. Our strategy is to use the minimum of Equation C23 and the estimated variance of the waiting-time estimator with =1, or 2pi(t)^2[1pi(t)^]2 (Equation C11). The rationale is that 2pi(t)2[1pi(t)]2 represents the variance obtained when one estimates pi(t) from only one coalescent event on each background—the lineages-remaining estimator is always based on at least one coalescent event on each background.

Computing the Lineages-Remaining Estimator for Edge Cases

If no coalescences have occurred in the interval and ni(0)=ni(t), then the estimator in Equation 13 is undefined. In this case, we compute the estimator for a larger value of Δt in which at least one coalescence event has occurred, extending Δt to the next time on the predefined grid in which a coalescence has occurred. The estimator is also undefined if ni(t)=1 because the expected number of lineages remaining approaches but never reaches 1. In this case, we assume the coalescent time passed in the interval is 2[11/ni(0)], which is the expected amount of time to coalesce from ni(0) lineages to one lineage. Finally, once a subtree coalesces to one lineage, we assume that population size remains constant into the past for the ancestral allele and, for the derived allele, that it remains constant before dropping to zero at in the middle of the branch connecting the derived subtree to the rest of the tree.

The approximate variance in Equation C23 is undefined if the estimated allele frequency pi(t)^ is equal to 0 or 1, in which case we define the estimated variance of pi(t)^ to be 0. It is also undefined if only one lineage remains on either background at the more recent end of the time interval [ni(0) = 1 or mi(0)=1]. If one lineage remains on one of the backgrounds, then we estimate the variance as the variance of the waiting-time estimator with =1. If only one lineage remains on each of the two backgrounds, we define the estimated variance of pi(t)^ to be 1/12, which is the variance of a uniform(0,1) random variable.

Appendix D: The Correspondence of TX and QX

In this section, we explain the correspondence between the TX statistic proposed in Equation 16 and the QX statistic of Berg and Coop (2014). If the population history is tree-like, then QX can be thought of as checking for overdispersion (relative to neutral expectations) of polygenic scores at the tips of the population tree. In contrast, TX checks for overdispersion at a set of time points along one branch of a population tree (i.e., a single population at different times).

Briefly, Berg and Coop (2014) start with a vector Z whose elements are population-mean polygenic scores for a set of populations minus an assumed value for the population-mean polygenic score in an ancestral population. Under neutrality, Z follows a multivariate normal (MVN)(0,2VAF) distribution, where VA is the additive genetic variance, and F is a matrix reflecting the shared history of the populations. In particular, if the population history is tree-like, then entry Fij in the F matrix reflects the branch length shared by populations i and j since their descent from the ancestral population. If ZMVN(0,2VAF), then the transformed vector X=(1/2VA)C1Z (where C comes from the Cholesky decomposition of F, such that F=CCT) obeys an MVN(0,I) distribution. Thus, the sum of the squared entries of the transformed vector X (the quantity labeled QX) obeys a χ2(w) distribution under neutrality, where w is the length of X.

In the setting of this article, we have population-mean polygenic scores Z(t0),Z(t1),,Z(tw) for the population ancestral to one present-day population, assessed at various times. Each tj represents some amount of time before the present and 0t0<t1<<tw. In practice, we set t0=0 and treat Z(0), the population-mean polygenic score in the present, as Berg and Coop treated the ancestral polygenic score, so

Z=[Z(t1)Z(t2)Z(tw)]Z(0).

In this setting, with the present-day population serving the role of “ancestor,” the shared branch length for two time points along one branch of a population tree is their shared distance backward from the present day, which is to say the branch length from the present back to the more recent of the time points. Thus, for this instance of Z, each entry Fij in the F matrix is equal to tmin(i,j), meaning

F=(t1t1t1t1t1t2t2t2t1t2t3t3t1t2t3tw).

The Cholesky decomposition F=CCT then gives

C=(t1000t1t2t10t1t2t1t3t20t1t2t1t3t2twtw1).

The inverse of this matrix is

C1=(1/t10001/t2t11/t2t1001/t3t21/t3t200001/twtw1).

If VA is a constant, then the entries of X=(1/2VA)C1Z are equal to the Xj values of Equation 15, and QX is equal to the quantity in Equation 16.

Appendix E: Simulation Details

We ran simulations of polygenic scores, as well as coalescent trees and haplotypes associated with them, with and without selection.

For each trait, we simulated the frequency of the derived allele at each of k independent, trait-associated loci. We ensured that at all loci the minor allele frequency was at least 0.01, both at the onset of selection (if applicable) and at the present. Allele-frequency time courses were simulated using the normal approximation to the diffusion.

In particular, for each locus, an effect size for the derived allele was drawn from the normal distribution with expectation zero and variance equal to h2σZ2w/k, where h2 is the desired heritability (because we are focused on polygenic scores rather than traits themselves, h2=1), σZ2 is the desired variance of the trait (i.e., polygenic score; always 1 in our simulations), w is a modified version of Watterson’s constant for the population i=2Nc(1c)2N1/i with c equal to the minimum minor allele frequency being drawn (here, c=0.01), and k is the number of independent loci affecting the trait. Drawing effect sizes from this distribution gives the property that, under neutrality, if the loci affecting the trait are independent and a trait is formed by adding the individual’s polygenic score to an independent “environmental” term with variance 1h2, then the resulting trait has variance σZ2 in expectation.

Once the effect size was specified, we selected a derived-allele frequency from the population-level neutral site frequency spectrum, conditional on the requirement that the minor allele frequency be at least 0.01. That is, we set the probability of drawing a derived-allele frequency k/(2N) to be proportional to 1/k for all k{0.01×2N,,0.99×2N} (and zero otherwise). Under neutrality, this randomly drawn allele frequency was treated as the derived-allele frequency at the present. In simulations including a period of selection before the present, this frequency was used as the allele frequency at the start of selection. In simulations with selection, the derived-allele frequency was simulated forward in time in steps of 1/(2N) coalescent units (i.e., one diploid generation). Conditional on frequency pt, the frequency at the next time step, pt+1, was drawn from a normal distribution with expectation pt+spt(1pt) and variance pt(1pt)/(2N). Here, s is the selection coefficient on the derived allele at time t, which is computed as s=αβ (equation 3.17 in Charlesworth and Charlesworth 2010), where α is the selection gradient on the trait at time t and β is the effect size of the derived allele. Two clarifications about the selection coefficient: first, this is the selection coefficient for the heterozygote, meaning that if the fitness of the ancestral homozygote is proportional to 1 (marginalizing over the other loci that affect the trait), then the fitness of the heterozygote is 1+s and the fitness of the derived homozygote is 1+2s. Similarly, the effect size α is the expected trait value difference between the heterozygote and the ancestral homozygote, holding the genotype at all other loci constant. Second, the selection gradient is equal to α=S/σZ2, where S is the selection differential on the trait—that is, the mean difference in phenotype between the parents of the next generation and the overall population (section 3.3.iii in Charlesworth and Charlesworth 2010)—and σZ2 is the trait variance. Here, we used the expected trait variance at the onset of selection (which was 1) to set the value of α, which was retained over the course of the period of selection, regardless of the realized value of the trait variance.

Once the allele-frequency time course was simulated forward to the present, it was retained if the minor allele frequency in the present was at least 0.01. (Otherwise, the time course was discarded and the process was repeated.) To simulate the period from the origin of the mutation up until the onset of selection, we simulated steps backward in time using the normal approximation to the neutral diffusion, conditional on loss of the allele. In particular, given a derived-allele frequency pt, the allele frequency 1/(2N) coalescent time units further in the past was drawn from a normal distribution with expectation pt[11/(2N)] and variance pt(1pt)/(2N) (Przeworski et al. 2005; Berg and Coop 2015; Lee and Coop 2017).

In each set of simulations with selection, we retained polygenic-score time courses if their difference in value between the beginning and end of the period of selection was within 5% of the target value, which is given by 2NδtS, where N is the effective population size, δt is the duration of selection in coalescent units, and S is the selection differential.

To simulate coalescent trees and haplotypes at each locus, these allele-frequency time courses were used as input to mssel (Berg and Coop 2015), a version of ms (Hudson 2002) that can incorporate by conditioning on user-specified allele-frequency time courses. In mssel, we set the sample size to 200 and the number of derived chromosomes to the value of a binomial(200,p) random draw, where p is the present-day frequency of the derived allele. If the random draw was equal to 0 or 200, then it was set to 1 or 199, respectively, to force the locus to be segregating in the sample. We chose a population size of 10,000, a haplotype length of 200,000 (with the effect locus at position 100,000), a per-base-pair mutation rate of 2×108, and a per-base-pair recombination rate of 2.5×108. These values imply population-scaled ms inputs of -r 199.5 and -t 159.68. Here, 4NrL=200 and 4NμL=160; our slight differences from these values arise from the fact that we compute 4Nf(0), where f is the probability distribution function of either a binomial(L,r) random variable or a binomial(L,μ) random variable, respectively, with L=200,000. That is, we define the locus-wide recombination (or mutation) rate as one minus the probability that no recombinations (or no mutations) occur anywhere in the locus. We used the flags -T and -L to include the true trees and times to the most recent common ancestor in the output.

The coalescent trees produced by mssel for the selected sites were used as the true trees, and the haplotypes produced were used as input to RENT+ to generate estimated trees (Mirzaei and Wu 2016). Both true and estimated trees were read into R (R Core Team 2013) and handled using the ape package (Paradis et al. 2004). All the estimators and tests used in this article were coded in R.

Appendix F: Power Comparison with an Analog of trait SDS

Field et al. (2016) proposed the SDS as a test statistic for detecting very recent selection. Because recent selection distorts the terminal branches of the coalescent at a selected locus, Field et al. reasoned that recent selection would alter the distribution of singleton mutations around selected sites. Specifically, favored alleles are expected to have short terminal coalescent branches and thus relatively few singletons nearby compared with disfavored alleles.

Field et al. use distances to the nearest singletons on each allele’s background to estimate the difference in the mean length of the terminal branches for the two alleles. This estimated mean difference is then standardized by an empirical mean and standard deviation computed from neutral simulations at a similar derived-allele frequency. To test for selection on polygenic traits, they construct a trait SDS (tSDS) by summing each locus’s standardized SDS, signed so that positive values suggest selection for higher trait values.

Here, we compute power for an analog of tSDS in the simulations shown in Figure 6, with the differences that in our case the true terminal branch lengths are known, and we use the true effect sizes in computing tSDS. Both of these changes should enhance the power of tSDS. Specifically, at each locus the SDS value is

S=t¯at¯dD¯DAFSD(DDAF), (F1)

where ta¯ is the mean terminal branch length for the ancestral allele, td¯ is the mean terminal branch length for the derived allele, D¯DAF is the sample mean of ta¯td¯ computed from 500 neutral simulations at the same sample size and derived-allele frequency (in bins of 0.005), and SD(DDAF) is the sample standard deviation of ta¯td¯ from the same 500 neutral simulations. [It is also possible to replace D¯DAF and SD(DDAF) with analytical values from Fu and Li (1993) under the assumption that the allele frequency does not change. Doing so gives similar results to those we report here.] To compute the tSDS statistic for a polygenic score, we use

tSDS=iβiSi, (F2)

where βi is the derived-allele effect size at locus i and Si is the value of Equation F1 for locus i. [In Field and colleagues’ version, βi is replaced with sign(βi), which has lower power when the effect size is known.] A polygenic score will tend to have higher tSDS if higher polygenic-score values have been selected for recently. To test for significance, we form a permutation distribution by recomputing tSDS 10,000 times while randomly permuting the effect sizes.

The power of the tSDS analog as a function of the timing of a selective pulse leading to a change in the polygenic score of approximately one standard deviation is shown in Figure F1. We also show the power of TX with a sample size of 1000 chromosomes for comparison (from Figure 6). Compared with TX, the tSDS has lower power, and its power drops off more rapidly as the timing of selection moves further into the past. This is not surprising because tSDS relies only on terminal branches, and TX uses all the intercoalescent times.

Figure F1.

Figure F1

Power of the tSDS analog as a function of timing of selection and present-day sample size. In addition to results for the tSDS analog, we show power from the TX test with a sample of 1000 chromosomes as a guide to the eye for comparisons with Figure 6 (dashed black line). As in Figure 6, power is shown on the vertical axis, and the horizontal axis shows the timing of a pulse of selection lasting 0.005 units and resulting in a shift in the population-average polygenic score of approximately one standard deviation (in present-day standard deviations). Each point is based on power from 100 simulations.

At this writing, tSDS has the advantage of scaling readily to large samples. In contrast, TX requires a reconstructed tree, which is currently error prone and computationally intensive. However, as tree reconstruction becomes faster and more accurate, the ability to use information from nonterminal branches will provide power benefits, especially beyond the very recent past.

Appendix G: Height Analysis Details

We estimated the time courses of two of the polygenic scores for height studied in Berg et al. (2018). Information about the loci included in each polygenic score (including reference SNP ID, effect size, chromosome, and position) was provided by Jeremy Berg. Each polygenic score was initially constructed by choosing the locus with the lowest P-value for a test of association with height, conditional on a minor allele frequency of at least 5%, within each of ∼1700 approximately independent genomic regions defined by Berisa and Pickrell (2016). (For GIANT, the polygenic score includes 1697 loci, and for UK Biobank, 1700 loci are included.) For the GIANT polygenic score, effect sizes and P-values were taken from Wood et al. (2014), and for the UK Biobank polygenic score, effect sizes and P-values were taken from Neale Lab (2017). [Berg et al. (2018) includes several polygenic scores constructed from UK Biobank effect sizes; the one we use corresponds to their UKB-GB.]

We used sequence information from the 1000 Genomes GBR subsample (1000 Genomes Project Consortium et al. 2012, release 20130502), which includes 91 genomes. For each locus included in each polygenic score, we extracted phased sequence information in a window extending 100,000 bases from the locus on each side using tabix (Li 2011). The resulting .vcf file was processed into a form acceptable by RENT+ using vcftools (Danecek et al. 2011) and R (R Core Team 2013). We then used RENT+ (Mirzaei and Wu 2016) to estimate an ARG for the region, including the “-t” flag to estimate branch lengths. Our version of RENT+ was modified slightly to print branch lengths to greater precision and to print RENT+’s internal estimate of θ that it uses to scale the branch lengths.

For both polygenic scores, we rescaled the effect sizes so that their standard deviation in the present-day sample is one, assuming linkage equilibrium among loci. In particular, if the sample frequencies of the effect alleles at the k loci are p1,p2,,pk and the effect sizes are β1,β2,,βk, then if the loci are independent, the variance of the polygenic-score Z is

Var(Z)=2i=1kβi2pi(1pi).

If Var(Z) is computed from the original effect sizes, then we rescale the effect sizes as βi=βi/Var(Z) when computing the polygenic scores.

Finally, we rescaled the branch lengths estimated by RENT+. RENT+ estimates a per-nucleotide, population-scaled mutation rate θ=4Nμ using Watterson’s estimator (Watterson 1975). That is, for a sample of n haplotypes each covering a region of w base pairs, with S the number of segregating sites in the sample, θ is estimated as

θ^=S/wi=1n11i.

The time in coalescent units separating a pair of haplotypes is then estimated as t=2H/(Lθ^), where H is the Hamming distance between a pair of haplotypes. For samples of size greater than two, RENT+ estimates branch lengths using a similar logic but using local distance matrices that take into account inferred recombinations.

We scaled RENT+’s estimated times because the Watterson estimator is biased downward if the population has been growing exponentially, and the human population has grown superexponentially (Keinan and Clark 2012). As a result, the inferred coalescent times from RENT+ were implausibly large. We first multiplied branch lengths at each locus by the θ estimate at each locus, giving branch lengths in units of twice the mutational distance per base pair at all sites. To convert these mutational distances into approximate coalescent units, we computed the time to the most recent common ancestor (tMRCA) at each locus, and then rescaled the branch lengths at all loci by a constant factor that set the mean tMRCA to two, the expectation in coalescent units under neutrality.

Footnotes

Supplemental material available at Figshare: https://doi.org/10.25386/genetics.6955367.

Communicating editor: R. Nielsen

Literature Cited

  1. 1000 Genomes Project Consortium. Abecasis G. R., Auton A., Brooks L. D., DePristo M., et al. , 2012.  An integrated map of genetic variation from 1,092 human genomes. Nature 491: 56–65. 10.1038/nature11632 [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Barton N. H., 1986.  The maintenance of polygenic variation through a balance between mutation and stabilizing selection. Genet. Res. 47: 209–216. 10.1017/S0016672300023156 [DOI] [PubMed] [Google Scholar]
  3. Bell M. A., Travis M. P., Blouw D. M., 2006.  Inferring natural selection in a fossil threespine stickleback. Paleobiology 32: 562–577. 10.1666/05026.1 [DOI] [Google Scholar]
  4. Berg J. J., Coop G., 2014.  A population genetic signal of polygenic adaptation. PLoS Genet. 10: e1004412 10.1371/journal.pgen.1004412 [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Berg J. J., Coop G., 2015.  A coalescent model for a sweep of a unique standing variant. Genetics 201: 707–725. 10.1534/genetics.115.178962 [DOI] [PMC free article] [PubMed] [Google Scholar]
  6. Berg J. J., Zhang X., Coop G., 2017.  Polygenic adaptation has impacted multiple anthropometric traits. bioRxiv 167551. DOI https//.org/10.1101/167551. [Google Scholar]
  7. Berg J. J., Harpak A., Sinnott-Armstrong N., Joergensen A. M., Mostafavi H., et al. , 2018.  Reduced signal for polygenic adaptation of height in uk biobank. bioRxiv 354951. DOI https//.org/10.1101/354951. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Berisa T., Pickrell J. K., 2016.  Approximately independent linkage disequilibrium blocks in human populations. Bioinformatics 32: 283–285. [DOI] [PMC free article] [PubMed] [Google Scholar]
  9. Bollback J. P., York T. L., Nielsen R., 2008.  Estimation of 2Nes from temporal allele frequency data. Genetics 179: 497–502. 10.1534/genetics.107.085019 [DOI] [PMC free article] [PubMed] [Google Scholar]
  10. Bürger, R., 2000 The Mathematical Theory of Selection, Recombination, and Mutation (Wiley Series in Mathematical & Computational Biology). Wiley, New York. [Google Scholar]
  11. Cavalli-Sforza L. L., Barrai I., Edwards A. W. F., 1964.  Analysis of human evolution under random genetic drift. Cold Spring Harb. Symp. Quant. Biol. 29: 9–20. 10.1101/SQB.1964.029.01.006 [DOI] [PubMed] [Google Scholar]
  12. Chan Y., Lim E. T., Sandholm N., Wang S. R., McKnight A. J., et al. , 2014.  An excess of risk-increasing low-frequency variants can be a signal of polygenic inheritance in complex diseases. Am. J. Hum. Genet. 94: 437–452. 10.1016/j.ajhg.2014.02.006 [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. Charlesworth B., Charlesworth D., 2010.  Elements of Evolutionary Genetics, Vol. 42 Roberts and Company Publishers, Greenwood Village, CO. [Google Scholar]
  14. Chen H., Chen K., 2013.  Asymptotic distributions of coalescence times and ancestral lineage numbers for populations with temporally varying size. Genetics 194: 721–736. 10.1534/genetics.113.151522 [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Chen H., Slatkin M., 2013.  Inferring selection intensity and allele age from multilocus haplotype structure. G3 (Bethesda) 3: 1429–1442. 10.1534/g3.113.006197 [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Cook L. M., Mani G. S., Varley M. E., 1986.  Postindustrial melanism in the peppered moth. Science 231: 611–613. 10.1126/science.231.4738.611 [DOI] [PubMed] [Google Scholar]
  17. Coop G., Griffiths R. C., 2004.  Ancestral inference on gene trees under selection. Theor. Popul. Biol. 66: 219–232. 10.1016/j.tpb.2004.06.006 [DOI] [PubMed] [Google Scholar]
  18. Crawford N. G., Kelly D. E., Hansen M. E. B., Beltrame M. H., Fan S., et al. , 2017.  Loci associated with skin pigmentation identified in African populations. Science 358: eaan8433 10.1126/science.aan8433 [DOI] [PMC free article] [PubMed] [Google Scholar]
  19. Danecek P., Auton A., Abecasis G., Albers C. A., Banks E., et al. , 2011.  The variant call format and vcftools. Bioinformatics 27: 2156–2158. 10.1093/bioinformatics/btr330 [DOI] [PMC free article] [PubMed] [Google Scholar]
  20. Drummond A. J., Rambaut A., Shapiro B., Pybus O. G., 2005.  Bayesian coalescent inference of past population dynamics from molecular sequences. Mol. Biol. Evol. 22: 1185–1192. 10.1093/molbev/msi103 [DOI] [PubMed] [Google Scholar]
  21. Ewens W. J., 2004.  Mathematical Population Genetics I. Theoretical Introduction, Ed. 2 Springer-Verlag, New York: 10.1007/978-0-387-21822-9 [DOI] [Google Scholar]
  22. Fay J. C., Wu C.-I., 2000.  Hitchhiking under positive Darwinian selection. Genetics 155: 1405–1413. [DOI] [PMC free article] [PubMed] [Google Scholar]
  23. Field Y., Boyle E. A., Telis N., Gao Z., Gaulton K. J., et al. , 2016.  Detection of human adaptation during the past 2000 years. Science 354: 760–764. 10.1126/science.aag0776 [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Fu Y.-X., Li W.-H., 1993.  Statistical tests of neutrality of mutations. Genetics 133: 693–709. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Garud N. R., Messer P. W., Buzbas E. O., Petrov D. A., 2015.  Recent selective sweeps in north american Drosophila melanogaster show signatures of soft sweeps. PLoS Genet. 11: e1005004 10.1371/journal.pgen.1005004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  26. Gelman A., Stern H., 2006.  The difference between “significant” and “not significant” is not itself statistically significant. Am. Stat. 60: 328–331. 10.1198/000313006X152649 [DOI] [Google Scholar]
  27. Gingerich P. D., 1983.  Rates of evolution: effects of time and temporal scaling. Science 222: 159–161. 10.1126/science.222.4620.159 [DOI] [PubMed] [Google Scholar]
  28. Grant P. R., Grant B. R., 2002.  Unpredictable evolution in a 30-year study of Darwin’s finches. Science 296: 707–711. 10.1126/science.1070315 [DOI] [PubMed] [Google Scholar]
  29. Griffiths R. C., 1984.  Asymptotic line-of-descent distributions. J. Math. Biol. 21: 67–75. 10.1007/BF00275223 [DOI] [Google Scholar]
  30. Griffiths, R. C., and P. Marjoram, 1997 An ancestral recombination graph, pp. 257–270 in Progress in Population Genetics and Human Evolution. Springer, New York.
  31. Ho S. Y. W., Shapiro B., 2011.  Skyline-plot methods for estimating demographic history from nucleotide sequences. Mol. Ecol. Resour. 11: 423–434. 10.1111/j.1755-0998.2011.02988.x [DOI] [PubMed] [Google Scholar]
  32. Hudson R. R., 2002.  Generating samples under a wright–fisher neutral model of genetic variation. Bioinformatics 18: 337–338. 10.1093/bioinformatics/18.2.337 [DOI] [PubMed] [Google Scholar]
  33. Hudson R. R., Kaplan N. L., 1988.  The coalescent process in models with selection and recombination. Genetics 120: 831–840. [DOI] [PMC free article] [PubMed] [Google Scholar]
  34. Jewett E. M., Rosenberg N. A., 2014.  Theory and applications of a deterministic approximation to the coalescent model. Theor. Popul. Biol. 93: 14–29. 10.1016/j.tpb.2013.12.007 [DOI] [PMC free article] [PubMed] [Google Scholar]
  35. Kaplan N., Hudson R. R., Iizuka M., 1991.  The coalescent process in models with selection, recombination and geographic subdivision. Genet. Res. 57: 83–91. 10.1017/S0016672300029074 [DOI] [PubMed] [Google Scholar]
  36. Kaplan N. L., Darden T., Hudson R. R., 1988.  The coalescent process in models with selection. Genetics 120: 819–829. [DOI] [PMC free article] [PubMed] [Google Scholar]
  37. Keinan A., Clark A. G., 2012.  Recent explosive human population growth has resulted in an excess of rare genetic variants. Science 336: 740–743. 10.1126/science.1217283 [DOI] [PMC free article] [PubMed] [Google Scholar]
  38. Kong A., Thorleifsson G., Frigge M. L., Vilhjalmsson B. J., Young A. I., et al. , 2018.  The nature of nurture: effects of parental genotypes. Science 359: 424–428. 10.1126/science.aan6877 [DOI] [PubMed] [Google Scholar]
  39. Lande R., 1976.  Natural selection and random genetic drift in phenotypic evolution. Evolution 30: 314–334. 10.1111/j.1558-5646.1976.tb00911.x [DOI] [PubMed] [Google Scholar]
  40. Lande R., Arnold S. J., 1983.  The measurement of selection on correlated characters. Evolution 37: 1210–1226. 10.1111/j.1558-5646.1983.tb00236.x [DOI] [PubMed] [Google Scholar]
  41. Lee K. M., Coop G., 2017.  Distinguishing among modes of convergent adaptation using population genomic data. Genetics 207: 1591–1619. [DOI] [PMC free article] [PubMed] [Google Scholar]
  42. Li H., 2011.  Tabix: fast retrieval of sequence features from generic tab-delimited files. Bioinformatics 27: 718–719. 10.1093/bioinformatics/btq671 [DOI] [PMC free article] [PubMed] [Google Scholar]
  43. Ludwig A., Pruvost M., Reissmann M., Benecke N., Brockmann G. A., et al. , 2009.  Coat color variation at the beginning of horse domestication. Science 324: 485 10.1126/science.1172750 [DOI] [PMC free article] [PubMed] [Google Scholar]
  44. MacFadden B. J., 2005.  Fossil horses–evidence for evolution. Science 307: 1728–1730. 10.1126/science.1105458 [DOI] [PubMed] [Google Scholar]
  45. Martin A. R., Gignoux C. R., Walters R. K., Wojcik G. L., Neale B. M., et al. , 2017.  Human demographic history impacts genetic risk prediction across diverse populations. Am. J. Hum. Genet. 100: 635–649. 10.1016/j.ajhg.2017.03.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  46. Maruvka Y. E., Shnerb N. M., Bar-Yam Y., Wakeley J., 2011.  Recovering population parameters from a single gene genealogy: an unbiased estimator of the growth rate. Mol. Biol. Evol. 28: 1617–1631. 10.1093/molbev/msq331 [DOI] [PubMed] [Google Scholar]
  47. Mathieson I., Lazaridis I., Rohland N., Mallick S., Patterson N., et al. , 2015.  Genome-wide patterns of selection in 230 ancient eurasians. Nature 528: 499–503. 10.1038/nature16152 [DOI] [PMC free article] [PubMed] [Google Scholar]
  48. Minin V. N., Bloomquist E. W., Suchard M. A., 2008.  Smooth skyride through a rough skyline: bayesian coalescent-based inference of population dynamics. Mol. Biol. Evol. 25: 1459–1471. 10.1093/molbev/msn090 [DOI] [PMC free article] [PubMed] [Google Scholar]
  49. Mirzaei S., Wu Y., 2016.  Rent+: an improved method for inferring local genealogical trees from haplotypes with recombination. Bioinformatics 33: 1021–1030. [DOI] [PMC free article] [PubMed] [Google Scholar]
  50. Neale Lab, 2017 Rapid gwas of thousands of phenotypes for 337,000 samples in the uk biobank. Available at: http://www.nealelab.is/blog/2017/7/19/rapid-gwas-of-thousands-of-phenotypes-for-337000-samples-in-the-uk-biobank. Accessed: November 13, 2018.
  51. Nicholson G., Smith A. V., Jónsson F., Gústafsson O., Stefánsson K., et al. , 2002.  Assessing population differentiation and isolation from single-nucleotide polymorphism data. J. R. Stat. Soc. B 64: 695–715. 10.1111/1467-9868.00357 [DOI] [Google Scholar]
  52. Novembre J., Barton N. H., 2018.  Tread lightly interpreting polygenic tests of selection. Genetics 208: 1351–1355. 10.1534/genetics.118.300786 [DOI] [PMC free article] [PubMed] [Google Scholar]
  53. Palacios J. A., Wakeley J., Ramachandran S., 2015.  Bayesian nonparametric inference of population size changes from sequential genealogies. Genetics 201: 281–304. 10.1534/genetics.115.177980 [DOI] [PMC free article] [PubMed] [Google Scholar]
  54. Palamara P. F., Terhorst J., Song Y. S., Price A. L., 2018.  High-throughput inference of pairwise coalescence times identifies signals of selection and enriched disease heritability. Nat. Genet. 50: 1311–1317. 10.1038/s41588-018-0177-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  55. Paradis E., Claude J., Strimmer K., 2004.  APE: analyses of phylogenetics and evolution in R language. Bioinformatics 20: 289–290. 10.1093/bioinformatics/btg412 [DOI] [PubMed] [Google Scholar]
  56. Przeworski M., Coop G., Wall J. D., 2005.  The signature of positive selection on standing genetic variation. Evolution 59: 2312–2323. 10.1554/05-273.1 [DOI] [PubMed] [Google Scholar]
  57. Pybus O. G., Rambaut A., Harvey P. H., 2000.  An integrated framework for the inference of viral population history from reconstructed genealogies. Genetics 155: 1429–1437. [DOI] [PMC free article] [PubMed] [Google Scholar]
  58. Racimo F., Berg J. J., Pickrell J. K., 2018.  Detecting polygenic adaptation in admixture graphs. Genetics 208: 1565–1584. 10.1534/genetics.117.300489 [DOI] [PMC free article] [PubMed] [Google Scholar]
  59. Rasmussen M. D., Hubisz M. J., Gronau I., Siepel A., 2014.  Genome-wide inference of ancestral recombination graphs. PLoS Genet. 10: e1004342 10.1371/journal.pgen.1004342 [DOI] [PMC free article] [PubMed] [Google Scholar]
  60. R Core Team , 2013.  R: A Language and Environment for Statistical Computing. R Foundation for Statistical Computing, Vienna. [Google Scholar]
  61. Robinson M. R., Hemani G., Medina-Gomez C., Mezzavilla M., Esko T., et al. , 2015.  Population genetic differentiation of height and body mass index across europe. Nat. Genet. 47: 1357–1362. 10.1038/ng.3401 [DOI] [PMC free article] [PubMed] [Google Scholar]
  62. Ronen R., Udpa N., Halperin E., Bafna V., 2013.  Learning natural selection from the site frequency spectrum. Genetics 195: 181–193. 10.1534/genetics.113.152587 [DOI] [PMC free article] [PubMed] [Google Scholar]
  63. Sabeti P. C., Reich D. E., Higgins J. M., Levine H. Z. P., Richter D. J., et al. , 2002.  Detecting recent positive selection in the human genome from haplotype structure. Nature 419: 832–837. 10.1038/nature01140 [DOI] [PubMed] [Google Scholar]
  64. Schraiber J. G., Evans S. N., Slatkin M., 2016.  Bayesian inference of natural selection from allele frequency time series. Genetics 203: 493–511. 10.1534/genetics.116.187278 [DOI] [PMC free article] [PubMed] [Google Scholar]
  65. Simons Y. B., Bullaughey K., Hudson R. R., Sella G., 2018.  A population genetic interpretation of gwas findings for human quantitative traits. PLoS Biol. 16: e2002985 10.1371/journal.pbio.2002985 [DOI] [PMC free article] [PubMed] [Google Scholar]
  66. Slatkin M., 2001.  Simulating genealogies of selected alleles in a population of variable size. Genet. Res. 78: 49–57. 10.1017/S0016672301005183 [DOI] [PubMed] [Google Scholar]
  67. Smith J. M., Haigh J., 1974.  The hitch-hiking effect of a favourable gene. Genet. Res. 23: 23–35. 10.1017/S0016672300014634 [DOI] [PubMed] [Google Scholar]
  68. Sohail M., Maier R. M., Ganna A., Bloemendal A., Martin A. R., et al. , 2018.  Signals of polygenic adaptation on height have been overestimated due to uncorrected population structure in genome-wide association studies. bioRxiv 355057. DOI https//.org/10.1101/355057. [Google Scholar]
  69. Strimmer K., Pybus O. G., 2001.  Exploring the demographic history of dna sequences using the generalized skyline plot. Mol. Biol. Evol. 18: 2298–2305. 10.1093/oxfordjournals.molbev.a003776 [DOI] [PubMed] [Google Scholar]
  70. Stuart A., Ord J. K., 1987.  Kendall’s Advanced Theory of Statistics, Distribution Theory, Vol. I. Oxford University Press, London. [Google Scholar]
  71. Stulp G., Barrett L., 2016.  Evolutionary perspectives on human height variation. Biol. Rev. Camb. Philos. Soc. 91: 206–234. 10.1111/brv.12165 [DOI] [PubMed] [Google Scholar]
  72. Sudlow C., Gallacher J., Allen N., Beral V., Burton P., et al. , 2015.  Uk biobank: an open access resource for identifying the causes of a wide range of complex diseases of middle and old age. PLoS Med. 12: e1001779 10.1371/journal.pmed.1001779 [DOI] [PMC free article] [PubMed] [Google Scholar]
  73. Tajima F., 1989.  Statistical method for testing the neutral mutation hypothesis by dna polymorphism. Genetics 123: 585–595. [DOI] [PMC free article] [PubMed] [Google Scholar]
  74. Tavaré S., 1984.  Line-of-descent and genealogical processes, and their applications in population genetics models. Theor. Popul. Biol. 26: 119–164. 10.1016/0040-5809(84)90027-3 [DOI] [PubMed] [Google Scholar]
  75. Turchin M., Chiang C. W. K., Palmer C. D., Sankararaman S., Reich D., et al. , 2012.  Evidence of widespread selection on standing variation in europe at height-associated SNPs. Nat. Genet. 44: 1015–1019. 10.1038/ng.2368 [DOI] [PMC free article] [PubMed] [Google Scholar]
  76. Turelli M., Gillespie J. H., Lande R., 1988.  Rate tests for selection on quantitative characters during macroevolution and microevolution. Evolution 42: 1085–1089. 10.1111/j.1558-5646.1988.tb02526.x [DOI] [PubMed] [Google Scholar]
  77. Uricchio L. H., Kitano H. C., Gusev A., Zaitlen N. A., 2018.  An evolutionary compass for elucidating selection mechanisms shaping complex traits. bioRxiv 173815. DOI https//.org/10.1101/173815. [Google Scholar]
  78. Voight B. F., Kudaravalli S., Wen X., Pritchard J. K., 2006.  A map of recent positive selection in the human genome. PLoS Biol. 4: e72 [erratum: PLoS Biol. 4: e154; corrigenda: PLoS Biol. 5: e147 (2007)]. [DOI] [PMC free article] [PubMed] [Google Scholar]
  79. Walsh B., Lynch M., 2018.  Evolution and Selection of Quantitative Traits. Oxford University Press, Oxford: 10.1093/oso/9780198830870.001.0001 [DOI] [Google Scholar]
  80. Watterson G., 1975.  On the number of segregating sites in genetical models without recombination. Theor. Popul. Biol. 7: 256–276. 10.1016/0040-5809(75)90020-9 [DOI] [PubMed] [Google Scholar]
  81. Whitlock M. C., 2008.  Evolutionary inference from QST. Mol. Ecol. 17: 1885–1896. 10.1111/j.1365-294X.2008.03712.x [DOI] [PubMed] [Google Scholar]
  82. Wood A. R., Esko T., Yang J., Vedantam S., Pers T. H., et al. , 2014.  Defining the role of common variation in the genomic and biological architecture of adult human height. Nat. Genet. 46: 1173–1186. 10.1038/ng.3097 [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

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

Data Availability Statement

Supplemental material, including code for the article, available at Figshare: https://doi.org/10.25386/genetics.6955367. Additionally, code used for running the simulations and implementing all data analyses presented here is available at http://github.com/mdedge/rhps_coalescent. The version of the code used here is permanently archived at doi: 10.5281/zenodo.1461077.


Articles from Genetics are provided here courtesy of Oxford University Press

RESOURCES