Michael Lynch1, Wei-Chin Ho1. 1. Biodesign Center for Mechanisms of Evolution, Arizona State University.
Abstract
The ability to obtain genome-wide sequences of very large numbers of individuals from natural populations raises questions about optimal sampling designs and the limits to extracting information on key population-genetic parameters from temporal-survey data. Methods are introduced for evaluating whether observed temporal fluctuations in allele frequencies are consistent with the hypothesis of random genetic drift, and expressions for the expected sampling variances for the relevant statistics are given in terms of sample sizes and numbers. Estimation methods and aspects of statistical reliability are also presented for the mean and temporal variance of selection coefficients. For nucleotide sites that pass the test of neutrality, the current effective population size can be estimated by a method of moments, and expressions for its sampling variance provide insight into the degree to which such methodology can yield meaningful results under alternative sampling schemes. Finally, some caveats are raised regarding the use of the temporal covariance of allele-frequency change to infer selection. Taken together, these results provide a statistical view of the limits to population-genetic inference in even the simplest case of a closed population.
The ability to obtain genome-wide sequences of very large numbers of individuals from natural populations raises questions about optimal sampling designs and the limits to extracting information on key population-genetic parameters from temporal-survey data. Methods are introduced for evaluating whether observed temporal fluctuations in allele frequencies are consistent with the hypothesis of random genetic drift, and expressions for the expected sampling variances for the relevant statistics are given in terms of sample sizes and numbers. Estimation methods and aspects of statistical reliability are also presented for the mean and temporal variance of selection coefficients. For nucleotide sites that pass the test of neutrality, the current effective population size can be estimated by a method of moments, and expressions for its sampling variance provide insight into the degree to which such methodology can yield meaningful results under alternative sampling schemes. Finally, some caveats are raised regarding the use of the temporal covariance of allele-frequency change to infer selection. Taken together, these results provide a statistical view of the limits to population-genetic inference in even the simplest case of a closed population.
Most evolutionary features ultimately depend on the magnitudes of a few key population-genetic parameters—rates of mutation, recombination, and migration, the strength and pattern of selection, and the stochastic noise caused by random genetic drift. As the magnitudes of these forces are typically quite small at the molecular level, most estimates derive from observations on standing patterns of variation in samples of multiple individuals acquired at a single time point, which are typically assumed to reflect cumulative, equilibrium effects. A diversity of methods relies on such strategies, including those focused on variation at genomic sites or on the magnitude of linkage disequilibrium among sites (Walsh and Lynch 2018, chapters 2–4).One limitation of single-sample approaches is that most patterns of variation are functions of at least two evolutionary forces. If one desires an estimate of one particular population-genetic parameter, this then requires a preexisting estimate of another key parameter. For example, a common procedure uses silent-site diversity (π, obtained as an average from a sample of multiple individuals and nucleotide sites) as an estimator of the equilibrium expectation , which is equivalent to the ratio of the power of mutation to that of drift, where N is the effective population size (the inverse of which governs the stochasticity of allele-frequency change) and u is the mutation rate per nucleotide site per generation. Extrapolation of an estimate of N from π requires an estimate of u. In the absence of such information, it is often simply assumed that π will scale positively with N, but this ignores the fact that the mutation rate varies by at least three orders of magnitude across the Tree of Life, scaling nearly inversely with N (Lynch et al. 2016; Long et al. 2018). Additional uncertainties associated with single-sample methods include the assumptions of drift-mutation equilibrium and neutrality of the observed polymorphisms.Similar caveats arise when measures of linkage disequilibrium are used to infer the scaled recombination rate 4N, where c is the recombination rate between sites, and when measures of variation at putatively selected sites are used to estimate 4N, where s is the strength of selection operating on a nucleotide site. Although some single-sample methods have been derived for reconstructing historical patterns of N from the information in site-frequency spectra (e.g., Liu and Fu 2015) or patterns of linkage disequilibrium (Li and Durbin 2011), thereby providing insight into population-size stability, these are unable to estimate N within the past several hundred generations, simply because the pool of very young (and rare) alleles is essentially unobservable unless sample sizes are enormous. Moreover, such methods typically retain the assumption of a closed-population structure.With the field of population genomics now well established, the goal here is to evaluate the limits to the information that can be extracted from temporal sequences of samples of the genomes of multiple individuals, where 106 or so polymorphisms in a sample is in the realm of possibility. An advantage of sequential-sample estimators of N and s is that they often do not require estimates of mutation or recombination rates (provided these forces are weak relative to those being estimated). In principle, for example, it ought to be possible to estimate the current effective size of a population from observed temporal fluctuations in allele frequencies, provided sample sizes are large enough that the true signal of drift is not overwhelmed by sampling error (Krimbas and Tsakas 1971; Nei and Tajima 1981; Pollak 1983; Waples 1989). However, because such N estimators still rely on the assumption of neutrality and a closed-population structure, there is a need for methodology to verify in advance that the molecular markers under consideration are actually consistent with such conditions.Here, we explore three general issues relevant to the estimation of population-genetic parameters using temporal series of data. First, we develop a simple test for the consistency of the data with neutrality and closed-population structure, as these conditions are ultimately required if temporal fluctuations in allele frequencies are to be reliable indicators of N. Second, we explore ways to further evaluate whether polymorphisms at individual nucleotide sites are experiencing significant directional selection, and if not, whether significant fluctuating selection, for example, quasi-neutrality in the sense of Wright (1948) and Kimura (1954) is occurring. Finally, for situations in which the data appear to be consistent with the assumptions of the model, we evaluate the challenges of estimating N in large populations by the sequential sampling method.As the goal is to determine the limits to the ability to estimate current-day population-genetic parameters, it will be assumed throughout that accurate estimates of individual genotypes have been obtained (assured, e.g., with adequate depth of sequencing coverage per site and application of suitable base-call quality screening). All sampling error is therefore associated with the number of surveyed individuals and nucleotide sites. Polymorphic sites will be assumed to be biallelic, as is almost always observed in population samples, although pooling of alleles can be performed with tri- or tetra-allelic sites. As the focus is on populations of relatively large size, it will be assumed that the sampling procedure has minimal effect on the change in population allele frequencies over time. For purposes of presentation, an even temporal distribution of samples will be assumed throughout. The derived expressions for the expected sampling variances of estimates are those for single surveys, but if one had the luxury of performing η experimental replications, then the expected sampling variances would be 1/η times the reported expressions, and the standard errors should be multiplied by
Validating the Primacy of Random Genetic Drift
A critical assumption in the application of temporal methods for estimating N is that the series of sequential changes in allele frequencies across sampling points are consistent with a random walk. Consider a temporal series of allele frequencies with population parametric values at nucleotide site i equal to over T equally spaced intervals (e.g., generations) (fig. 1). At each sampling point , the genotypes are determined for n, individuals (here assumed to be diploid), yielding a series of allele-frequency estimates . In the following, we will drop the subscript for nucleotide sites for simplicity unless otherwise noted, and we will assume a constant sample size n. From these data, a series of allele-frequency change estimates can be obtained between adjacent samples: . More generally, allowing for any number of generations separating samples
. 1.
—Sampling scheme for allele frequencies, with p denoting the parametric frequency in the population, denoting the estimated frequency after sampling n individuals, and denoting the interval-specific estimated change in frequency.
—Sampling scheme for allele frequencies, with p denoting the parametric frequency in the population, denoting the estimated frequency after sampling n individuals, and denoting the interval-specific estimated change in frequency.If random genetic drift is the predominant evolutionary force, because the process has no memory, there should be no correlation between the parametric allele-frequency changes in different intervals, and the interval-specific changes should be random values with expectations equal to zero. The expected variance of change between generation j and j + 1 is equal to (assuming constant N across generations), although as discussed below, additional variance is introduced by sampling of individuals each generation.There are a number of ways to test for randomness in allele-frequency change. For example, one might evaluate whether the changes in allele frequencies in intervals spaced by a specific number of generations are correlated, which would not be expected if random drift were the predominant evolutionary force (Buffalo and Coop 2019). Even here, however, a number of subtleties can lead to misleading interpretations. First, even under a pure drift model, changes in adjacent intervals will be negatively correlated, owing to the sharing of an intermediate sampling point—if p is overestimated by investigator sampling error, then will be overestimated and will be underestimated, and vice versa if p is underestimated. As this leads to a substantial expected covariance equal to , a comparison of allele-frequency changes in adjacent intervals must be avoided. One might imagine an efficient use involving the pairing of changes separated by single intervals, that is, with with , etc. However, even in this case, owing to the sharing of time points 3, 6, and so on, the expected covariance of pairs of changes has a positive bias , where m = T/3 is the total number of paired intervals. Thus, we now focus on three sampling schemes with minimal to zero bias in the expected values for the covariance in allele-frequency changes under neutrality, the first two focused on the specific behavior of individual sites, and the third involving an aggregate measure over multiple sites.
Sampling Scheme 1
Given the amount of effort invested in a temporal survey, one will want to use as much of the data as possible, and avoiding the types of adjacent pairings noted above, this might still be accomplished by evaluating the covariance of allele-frequency changes for all pairs of observations separated by single intervals. This can be accomplished by pairing Δ0,1 with Δ2,3, Δ1,2 with Δ3,4, Δ2,3 with Δ4,5, up to with . One issue with this approach is that some of the Δ values are used twice (e.g., Δ2,3), and most still share a sampling point (e.g., Δ0,1 and Δ1,2), that is, the terms involved in the analysis are still not completely independent. The net result is that the expected covariance is slightly negative, rather than zero.To see this, note that the unbiased sample covariance estimator for m pairs of variables, x and y, isFor this particular sampling scheme, so that when T = 5 (six samples in total), m = 3, and the covariance for the site-specific changes is obtained by lettingGeneralizing to arbitrary T, taking expectations of all terms, and noting that all expected cross-products of terms not sharing sampling points are equal to zero (as they share no drift or sampling deviations), the expected covariance for this sampling scheme under neutrality becomes
where is the expected squared deviation of allele-frequency change over interval (t, t + 1) resulting from genetic drift. Because the expected heterozygosity declines by a factor of 1/(2N) per generation, the previous expression reduces to
where However, for populations with (most practical applications), andThis shows that the expected sampling covariance of allele-frequency changes separated by an interval is negative if all intervals are used. Although the absolute bias is expected to be very small in the case of very large populations, the dependency on N remains a concern, as this is the parameter that one wishes to eventually estimate.
Sampling Scheme 2
Now consider the situation in which there is no overlap at all in the use of time points in different pairings, that is, contrasting Δ0,1 with Δ2,3, Δ4,5 with Δ6,7, Δ8,9 with Δ10,11, up to with . The expected covariance under neutrality is zero with this sampling scheme, although the cost is a substantially longer experiment. For example, with scheme 1, three sets of comparisons can be obtained with T = 5, but this requires T = 11 with scheme 2. A simple expression for the expected sampling variance of the covariance under scheme 2 can be obtained by noting from equation (1),Expanding the terms for , and noting that for two uncorrelated variables each with expectations zero, and that in this case, (because , where denotes an estimate, is derived from two samples containing 2n genes), leads to the expected sampling standard error for the covariance of changes at a particular site
where m is the number of paired Δ comparisons. Averaging over L independent sites with different allele frequencies,In contrast, for sampling scheme 1, owing to the nonindependence of data and the associated reduction in degrees of freedom,Assuming T + 1 consecutive samples, for scheme 2, and equation (3c) reduces to
and because with scheme 1, for equivalent T, the sampling error associated with scheme 2 is that for scheme 1. Thus, aside from the slight bias, scheme 1 may be viewed as yielding more efficient use of the data. In either case, the preceding expressions indicate that the expected standard error of the test statistic is inversely proportional to the number of individuals sampled per time point (n), but only with the approximate square root of the total number of nucleotide sites sampled ( for large T).Note that here and below it is assumed that when estimators are averaged over sites, the vast majority of sites are effectively in linkage equilibrium, as the L deployed in the sampling-variance estimators is equivalent to the number of degrees of freedom. This will generally not be a problem if unlinked sites are relied upon. However, studies involving specialized base-population crosses, such as multiparent populations that initiate with high levels of linkage disequilibrium (King and Long 2017), could be especially challenging here. Although the actual degrees of freedom might be approximated through computational comparison of observed sampling variances with those expected with L degrees of freedom, this would require prior information on recombination rates. The key point is that, when applied to composite estimators based on multiple loci, all expressions derived herein yield lower-bound estimates of the sampling variance if L is used as the number of degrees of freedom.
Genome-Wide Survey
Whereas the two preceding sampling schemes consider the covariance of change within particular loci over multiple intervals, such approaches are strongly limited by the duration of sampling. An alternative route is to evaluate the average genome-wide covariance of change across L sites with a shorter temporal-series duration,
where j and k denote two time intervals, and the means in the numerator are over all sites. Under neutrality, assuming the time intervals share no samples, has expected value zero, and assuming , sampling standard error
identical to equation (3c) with m = 2. Note that this sort of analysis can be performed on any pair of intervals over the sampling period, provided there is no overlap in the sampling points. One might, for example, consider the covariance of change between interval (0,1) and interval (2,3), interval (3,4), etc.For hypothesis testing, we take advantage of work by Pearson et al. (1929), where the sampling distribution of a covariance for a bivariate normal sampling distribution was derived. Letting denote a sample covariance, and σ, σ, and ρ be the parametric standard deviations of x and y, and their correlation coefficient, and using the standardized variable ,
where is the gamma function, and denotes a modified Bessel function of the second kind. For the special case in which ρ = 0 (our null hypothesis), Pearson et al. (1929) found that the preceding expression can be closely approximated (perfectly to the first four moments) withIn our case, and with equation (8b) simplifies further to
showing that the standardized covariance measure v is normally distributed with variance L.This suggests a relatively simple test for random allele-frequency changes across different intervals. Let be the covariance of standardized allele-frequency changes for pairs of intervals, with the change at each site being normalized by the expected standard deviation of changes, that is, using as the standardized change between the time points j0 and j1 for interval j, with being the average allele frequency over the two time samples at the site, with a similar definition for interval k. Because , it follows that
that is, under the null hypothesis, the sample covariance of standardized allele-frequency changes has expectation zero and variance (Again, as noted above, if the assayed loci are linked, L needs to be replaced with the appropriate degrees of freedom.) A test for random change is then achieved by comparing the absolute value of with the critical two-tail cutoff points of the normal distribution. If the data are consistent with a model of pure drift, for large L, there is a 5% probability that the absolute value of will exceed by chance, and a 1% probability that it will exceed by chance. Observed values of beyond these critical points imply that sampling heterogeneity problems, migration, and/or selection have contributed to the average observed pattern of change.
Estimation of the Mean and Variance of Selection Intensity
Results from hundreds of single-sample studies in molecular population genetics suggest that the intensity of directional selection operating at the single-nucleotide level is often on the order of the reciprocal of N or a factor several-fold larger. Selection coefficients at the nucleotide level >0.01 are exceedingly rare in studies of natural populations, and as these only induce an change in allele frequency per generation, the challenges in estimating selection at the DNA level with temporal data are clear. An additional issue (aside from possible contributions from nonselective forces) is that temporal changes in allele frequencies may result from direct selection on the nucleotide site of interest or indirectly from selection operating on adjacent sites in linkage disequilibrium. Thus, the best that we can hope to achieve with a temporal survey is a measure of the net strength of selection operating on a site.One way forward is to note that in the absence of frequency-dependent selection, and assuming additive fitness effects, the expected change in allele frequency over an interval of t time units is
where
and μ is the average interval-specific selection coefficient over the entire sampling period (Crow and Kimura 1970). It follows that the slope of a regression of ζ on time provides an estimate of μ for the allele designated by frequency p. This estimator is only defined when the allele-frequency estimate is at all sample points. In principle, the selection coefficient may also fluctuate in time, one case of special interest being quasi-neutrality, wherein the long-term average s is equal to zero with the interval-specific magnitudes of selection wandering randomly around this mean with temporal variance (Wright 1948; Kimura 1954).
Estimation of Mean Selection Coefficients
An efficient means of estimating μ for a nucleotide site is to perform a least-squares regression of ζ on time. Allowing for both selection and drift in a Wright–Fisher framework, followed by random sampling, computer simulations indicate that the regression coefficients provide unbiased estimates of μ over reasonable sample sizes and allele frequencies, so long as selection is strong enough to dominate random genetic drift (fig. 2, left). Negative bias occurs, independent of the experimental duration and sample size, when consistent with the view that selection operates in nearly deterministic fashion only after an allele frequency exceeds (Walsh and Lynch 2018, chapter 7), as assumed in equation (9b). In principle, a more elaborate expression for allele-frequency change that allows for the influence of drift might be developed, but this would require an estimate of
. 2.
—(Left) Mean estimates of the selection coefficient s obtained from the least-squares regression approach. Each point is the average of the results from 107 simulations based on Wright–Fisher allele-frequency dynamics incorporating selection and drift, followed by random sampling of n = 100 diploid individuals at each sampling point. Black symbols are for effective population size , and red for , and results are reported for a range of starting allele frequencies, p0. The horizontal dashed lines denote the expectations for four evaluated selection coefficients (with temporal variance, , equal to zero), and the different symbols denote experiments of different durations (T). (Right) Sampling standard deviations for estimates of s for the case of , from simulations as noted above for three values of N, four of s, and a sample size of 100, compared with the theoretical expectation, equation (10). The diagonal dashed line denotes points of perfect agreement, and many symbols cannot be seen as they overlie each other on this line.
—(Left) Mean estimates of the selection coefficient s obtained from the least-squares regression approach. Each point is the average of the results from 107 simulations based on Wright–Fisher allele-frequency dynamics incorporating selection and drift, followed by random sampling of n = 100 diploid individuals at each sampling point. Black symbols are for effective population size , and red for , and results are reported for a range of starting allele frequencies, p0. The horizontal dashed lines denote the expectations for four evaluated selection coefficients (with temporal variance, , equal to zero), and the different symbols denote experiments of different durations (T). (Right) Sampling standard deviations for estimates of s for the case of , from simulations as noted above for three values of N, four of s, and a sample size of 100, compared with the theoretical expectation, equation (10). The diagonal dashed line denotes points of perfect agreement, and many symbols cannot be seen as they overlie each other on this line.An expression for the expected sampling variance of the regression coefficient (the sample estimate of the population parameter μ), the steps of which can be found in the Appendix, is
where is the among-generation variance in s. This expression provides an essentially unbiased estimate of the sampling variance obtained in computer simulations, for a wide range of experimental durations (T = 5–90), sample sizes (n = 100–1,000), full range of allele frequencies (–0.50), and a range of selection coefficients ( to ), provided (fig. 2, right). For weak selection and long experimental durations, equation (10) somewhat underestimates the sampling variance because it does not account for the cumulative effects of random genetic drift.In practical applications, one would ordinarily accept the estimate of the sampling variance of the regression coefficient from direct statistical analysis, but the expectation given by equation (10) provides insight into the optimal design of sampling schemes for estimating Regardless of the average strength of selection, provided is small relative to the sampling variance of ζ, for T > 10 or so, the sampling variance of is inversely related to the product of the sample size and the cube of the number of temporal samples. Thus, for a fixed investment in the total amount of genotyping that can be done, which is proportional to Tn, there is a very strong premium on extending the experiment in time, as the expected standard error of will be inversely proportional to .One can go further and consider the overall design necessary to detect a nucleotide with mean selection coefficient Assuming is small relative to the sampling-error term in equation (10), which seems likely for most reasonable scenarios, the minimum sampling variance reduces to To detect a selection coefficient at the 5% significance level, one then requires The greatest power is achieved with high allele frequencies, so letting the critical value for detection in this case is , which implies for and for Assuming a moderate sample size of n = 100, the critical experimental durations in these two cases become 21 and 100 consecutive generations of allele-frequency estimation. For a rarer allele with frequency these critical values become larger.The key point here is that when selection is weak, as is generally the case at the nucleotide level, its detection using temporal series of data demands very long surveys. Increasing the sample size helps, but in expanding n to 1,000, the above critical T values decline by only and temporal variance in the selection coefficient will make such an enterprise more demanding. If one simply desires an estimate of the average absolute value of μ over a large sample of sites (e.g., particular sites within codons at particular frequencies), the sampling variance of the mean estimate is given by equation (10) divided by the number of sites jointly evaluated.How much accuracy in estimation would be lost if one simply relied upon a two-point estimate of
rather than using allele-frequency estimates at each time point? From Lynch (1987), the expected sampling variance of the two-point estimate isAssuming and the ratio of the sampling variance in this case relative to that with a full survey isThe minimum improvement gained by the full survey is therefore a reduction in the standard error of the estimate by a factor of , that is, with T = 24, and with T = 96. In the limit of weak selection and/or short survey duration, such that the inflation in sampling variance with the simpler method is a factor of whereas as the allele frequency approaches loss or fixation, that is, the inflation factor can exceed T.Equation (10) can also be used to evaluate the consequences of more intermediate sampling schemes. Rather than sampling each of consecutive generations, one could skip various generations, so that the duration of each sampling interval is D (rather than 1 or T) generations. The expected sampling variance of is then obtained by dividing equation (10) by D and substituting the number of multigenerational time intervals, , for T. For T divisible by D, the inflation in the sampling standard error is As an example, for a full survey with T = 49 and D = 1, from equation (10), the expected sampling variance is Keeping constant, and reducing the overall effort by half by skipping single generations, and D = 2, and the expected inflation of the standard error of is . With and D = 4 (skipping periods of three generations), the expected inflation is , and with and D = 8, the expected inflation is . From equation (13), the expected inflation in the extreme case of sampling at just the starting and ending points (equivalent to a 25-fold reduction in effort) is ∼ The key point here is that, for a given total survey duration, the improvement in the accuracy of estimation of μ with increased frequency of sampling is relatively small compared with the increase in effort.
Estimator for the Variance of Selection Coefficients
To estimate the variance in true selection coefficients among generations, , we note that the estimated selection coefficient in interval i can be partitioned as
where s is the true selection coefficient operating on the site in generation i, and e is the estimation error resulting from finite sample size. From this, it follows that an estimator of the variance in s among intervals is
where is the average sampling variance of the s. Here, we focus on the most fine-grained sampling scheme of T intervals of single-generation duration, as this will yield estimates of with the highest degree of accuracy. To obtain an estimate of unfettered by nonindependence problems, we focus on the variance of s estimates obtained for nonoverlapping time intervals, for example, For even T, this yields estimates, with
being the estimated variance among interval-specific sample estimates of s. From equation (11) with T = 1, estimates of s based on adjacent generations are simply equal to the difference in estimates of ζ across the interval.To estimate the average sampling variance, we utilize all of the data but allow for nonindependence of adjacent s estimates (owing to allele frequencies at shared time points),(from Lynch and Walsh 1998, p. 845). Note that the second term, which accounts for nonindependent estimates of the selection coefficient, has nonzero entries only for pairs of estimates in adjacent intervals. From Lynch (1987, eq. 12),
with for and where n is the number of diploid individuals in the ith sample (the two being removed in the case of haploidy). Substituting into equation (17), for the situation in which a string of T consecutive estimates of s is available,Solving equations (16 and 19), and applying to equation (15) then provides an estimate of the variance in the selection coefficient for a nucleotide site.Computer simulations incorporating generational episodes of selection and random genetic drift, with were used to determine the bias and sampling error associated with this estimator of (fig. 3). Two points are immediately apparent. First, the estimates for tend to be downwardly biased, particularly when initial allele frequencies are low and sample sizes are on the order of 100 or smaller. This bias becomes negligible when sample sizes are as large as 1,000. However, even in the latter case, and even for the long experimental durations illustrated, an unbiased estimate of cannot be achieved if Given that the latter implies a standard deviation of s of 0.01, which may be beyond what operates at most nucleotide sites, the implication is that achieving accurate estimates of at single-nucleotide sites is nearly unattainable without enormous sample sizes and survey durations.
. 3.
—Mean and CV of estimates of for series of samples taken at T + 1 consecutive time points, each involving sample sizes of n = 100 or 1,000 diploid genomes. Results are given for a range of initial allele frequencies, each based on 106 simulations with an effective population size of 108 individuals, ensuring essentially no genetic drift on the time scale of the analyses, and mean selection coefficient Closed points refer to situations in which , whereas open points are for Data points are excluded for some cases at low allele frequencies where the mean estimates of were negative.
—Mean and CV of estimates of for series of samples taken at T + 1 consecutive time points, each involving sample sizes of n = 100 or 1,000 diploid genomes. Results are given for a range of initial allele frequencies, each based on 106 simulations with an effective population size of 108 individuals, ensuring essentially no genetic drift on the time scale of the analyses, and mean selection coefficient Closed points refer to situations in which , whereas open points are for Data points are excluded for some cases at low allele frequencies where the mean estimates of were negative.Second, of even greater concern is the coefficient of variation (CV) of estimates of , which is virtually always >1.0 and often as high as 500. With a sampling CV of 1.0, if one wanted an average estimate of pooled over sites to have a standard error <0.1 of the mean, 100 sites would need to be pooled, and with a per-site sampling CV of 500, this same level of accuracy would require the pooling of 25,000,000 sites.
Estimation of Short-Term N
The effective size of a population (N) governs a wide range of evolutionary features, including the probability of fixation, levels of standing molecular variation, patterns of linkage disequilibrium, and the range of selection coefficients of mutant alleles that are effectively neutral (Charlesworth 2009; Walsh and Lynch 2018). Unfortunately, N is also an exceptionally difficult population-genetic parameter to estimate directly. Almost all direct approaches rely on estimates of allele-frequency change, which invariably have very high sampling variances. Nonetheless, as studies of temporal changes in allele frequencies have become increasingly common, there has been a resurgence of interest in using such data to estimate N.The motivation for the general approach is that random genetic drift generates stochastic changes in neutral allele frequencies to a degree determined by in diploids (and in haploids). With suitable correction for the additional variation in allele-frequency estimates induced by sampling, observed divergence can then be used to infer N provided the variation evaluated is neutral (Krimbas and Tsakas 1971). Often, a method of moments is used to infer N from the observed allele-frequency changes and the sample sizes (Nei and Tajima 1981; Pollak 1983; Waples 1989), although likelihood-based procedures have also been suggested (Wang 2001; Bollback et al. 2008; Malaspinas et al. 2012; Hui and Burt 2015; Ferrer-Admetlla et al. 2016). Almost all applications have been confined to small populations, with N typically well below 5,000. In this case, with suitable numbers of markers and time spans between samples, reasonable N estimates (often within 10% of the expected values) are obtainable.Because most natural populations are thought to have N in the range of 104 to 109 (Lynch 2007), it is desirable to know in advance the joint influence of the numbers of sampled nucleotide sites, individuals, and generations separating samples on the ability to achieve a perceptible signal from drift. Is there an important tradeoff between the size of samples and the duration of sampling? Are there significant advantages of incremental sampling, as opposed to simply sampling at the starting and ending points of a survey? Do the frequencies of alleles at the sampled nucleotide sites have a substantial degree of influence?To answer these questions, we proceed under the assumption that the investigator has settled on a set of molecular markers that suitably fulfill the expectations under neutrality based, for example, on the types of tests suggested above. The key indicator variable for estimating N is then
where i denotes the nucleotide site, j and k denote two sampling times, and n and n are the associated numbers of sampled individuals (here assumed to be diploid). is a normalized measure of the observed allele-frequency change between the two time points,
where is the estimated allele frequency at time t, and In essentially all of the following analyses, simulations show that the ratio of the variance of individual estimates to the squared average value is in the range of 1.90–2.00, as expected for a -distributed variable (Nei and Tajima 1981). In the following, it will be assumed that the sample sizes are constant across time periods, so thatThe logic underlying the use of is that the expected value of ϕ is very close to t/(2N) provided the number of generations separating the two samples (t) is much smaller than (Nei and Tajima 1981; Pollak 1983; Waples 1989), which will generally be the case for a study of natural populations. The resultant method-of-moments estimator of N from two temporal samples is then
where is the average value of ϕ over all sites. (This averaging of the denominator term to obtain a single estimate of N rather than obtaining an estimate for each site and then averaging minimizes the spurious sampling variation that can occur with individual ratios.)Pollak (1983; see also Waples 1989) has usefully found that the expected sampling variance of is
where L is the number of sampled polymorphic sites (assumed to be independent), is the harmonic mean of the sample sizes (equal to n in all that follows), and N is the actual number of breeding adults (typically much larger than N; Walsh and Lynch 2018). Although an approximation, this formula provides immediate insight into the determinants of the precision of N estimates by the temporal method. Because we expect , equation (23a) reduces toThe coefficient of sampling variation of (the ratio of the standard deviation of estimates to the expected value) is thenThe remaining issue is whether the preceding formulae, all of which involve approximations, do indeed yield reasonable estimates of N and its sampling variance. This was evaluated by simulating three sources of binomial sampling of allele frequencies: random genetic drift between points j and k and individual sampling at the two time points. For any particular set of conditions, starting with a known allele frequency p, drift involved the random sampling of N = N individuals to generate p, and then from these two true population values, the estimated frequencies and were obtained. For any particular set of L, t, and n, the mean and variance of (estimated by eq. 22) was obtained over a full range of allele frequencies. Over a range of to 106, the preceding theory is highly consistent with the results from simulations—equations (22 and 23b) give essentially unbiased estimates of the mean and variance of N estimates, provided .Equation (24) indicates that changing the survey duration t or the sample size n by the same factor has an equivalent effect on the accuracy of N estimates by the temporal method. Such a scaling provides a logical basis for the optimal sampling design constrained by economic considerations and practicalities with respect to long-term sampling. The CV scales with because the variance of allele-frequency change resulting from drift (the signal that we wish to detect) depends on the reciprocal of this quantity. On the other hand, the CV scales only with the inverse of the square root of the number of loci sampled, which assuming complete genome sequencing is an absolute limit that cannot be modified by sampling.This sampling theory highlights the difficulties in estimating N in large populations by direct observations of allele-frequency changes. Nonsensical estimates of N can be expected if , as then exceeds 0.5, and even negative estimates will be likely. Suppose one desires to reduce the CV of an N estimate to 0.1. According to equation (24), this requires Further supposing the luxury of sites, the critical point reduces to which means that with , tn must exceed 28,600, a steep task—sample sizes of nearly 3,000 if one were to rely on a temporal duration of 10 generations. On the other hand, with tn need only exceed 290, an achievable situation with today’s sequencing costs (e.g., two samples of size 60, five generations apart).The preceding estimator is based on a simple two-point comparison, and one might imagine that more resolution would be achievable by sampling at multiple intervals during time span t. There is, however, reason to expect a minimum payoff of such additional monitoring, the primary being that there is such a strong covariance in allele frequencies across generations that most of the information is contained within the contrast between starting and ending points (Hill 1972; Lynch 1987). Indeed, an analysis of a multigenerational maximum-likelihood (ML) procedure for estimating N from temporal data (Hui and Burt 2015, table 1) shows that for the two-sample situation, the method-of-moments and ML procedures have almost identical sampling variance, and whereas the method of moments yields higher sampling variance when extended to three samples (over an equal total time span), the sampling error with the ML method is essentially identical whether two or three samples are applied. Such behavior can be understood from the structure of equation (23b), which shows that the sampling variance of N scales inversely with t2. Subdivision of t into x smaller episodes of equal length τ () yields more independent estimates of N, which reduces the sampling variance linearly in x, but the sampling variance for each episode increases quadratically, the end result being that the sampling variance scales asTo evaluate this matter more formally, allowing for larger N, the above kinds of analyses were performed three ways with six samples (providing five intervals of data): 1) using the simple starting and ending points, 2) performing two two-generation analyses (intervals 0–2, and 3–5), and 3) performing three single-generation analyses (intervals 0–1, 2–3, and 4–5). In the limit of the preceding argument suggests that the sampling standard deviation of N for these three schemes will scale approximately as 1.0:1.4:1.7. The simulation results indicate that the increase in the sampling standard deviation is reasonably consistent with the scaling suggested above, but that the use of multiple estimates also leads to downward bias in the mean estimate. Both features may be a consequence of the positive covariance between seemingly independent samples. An allele-frequency change resulting from drift causes a correlated change in the denominator of consecutive applications of equation (21) via the effects on heterozygosity at the site. In principle, computationally intensive ML techniques might be constructed to alleviate this problem, but taken together, these and prior analyses suggest that there are minimal advantages to doing so.
Discussion
To ease the presentation, the formulations developed above assumed a setting in which populations are sampled on a timescale equal to generation length but are readily extended to longer intervals. For example, if the sampling interval is equivalent to D generations, to account for the temporal accrual of selection effects, the estimated should be divided by D, and the estimated variance of s should be divided by D2. Likewise, the estimated N would need to be multiplied by D, as the effects of drift accumulate linearly with the number of generations. The expressions for the standard errors of these estimates would all have to be scaled in the same way, leaving the coefficients of sampling variance unchanged. There are, of course, alternative sampling schemes such as the fortuitous acquisition of DNA samples from single individuals at uneven intervals in the past. However, these do not easily lend themselves to the sampling theory outlined above, as there is additional uncertainty on the number of generations between intervals and even on lines of descent.Our results demonstrate that although population genomics offers opportunities for obtaining relatively accurate estimates of previously elusive but key population-genetic parameters, the sampling requirements for achieving such ends remain substantial. As one example, Karasov et al. (2010) have suggested that the current effective population size of Drosophila melanogaster exceeds more than an order of magnitude larger than prior estimates. If one wished to show by direct estimation that N is significantly >107 by an order of magnitude, a standard error of the estimate of N of about 45,000,000 would be required. From equation (20b), generously assuming 106 informative neutral sites, this requires that the product of the duration of the survey (t, in generations) and the sample size at each point (n) exceed , which is equivalent to fully genotyping 60,000 individuals at two time points separated by 10 generations. Although such an extreme might be possible in the not too distant future by pooled population sequencing to depth of coverage, pooled sequencing is compromised by sequencing errors that obscure small frequency changes, as well as by likely variation in the contributions of individuals of different sizes to the pooled DNA. Thus, estimation of large N almost certainly requires information on individual genotypes, necessary for factoring out contributions from sequencing errors (Lynch et al. 2014; Maruki and Lynch 2015).Although the methods outlined above involving temporal covariance of allele-frequency changes provide a formal basis for testing whether temporal series of data are consistent with a random-walk model, it should be noted that violations of the null model need not imply the action of selection. For example, in nonequilibrium situations, persistent migration into a sampling site can lead to consistent directional changes in allele frequencies across intervals. One of the most likely problems, perhaps nearly unavoidable in natural settings, is the presence of spatial heterogeneity within populations. Owing to physical limitations on all organisms, nonrandom dispersal can be expected to be the rule even in populations uninfluenced by migration. Even if neutral, microlocale (spatial) heterogeneity in allele frequencies will manifest as temporal heterogeneity in a series of samples that do not fully account for such structure. In a test tube of microbes, such microheterogeneity might be eliminated by thoroughly mixing the sample before sampling, but this is essentially impossible for natural populations. Given that the shifts in allele frequency generated by random genetic drift are very small when N is large, even a small amount of any of these kinds of biases can be problematical.Assuming an absence of these kinds of problems, Buffalo and Coop (2019) suggested that genome-wide patterns of selection can be inferred indirectly by estimating the covariance in temporal allele-frequency change of neutral markers. Their proposed measure is closely related to the genome-wide covariance method outlined above, except that they normalize the measures of frequency change by dividing by . The motivation of this method is the idea that the expected covariance of allele-frequency change is zero in the absence of linked selection, and that when the latter prevails, alleles with larger frequency changes consistently exhibit such behavior across intervals because they happen to be stochastically associated with linked variants with greater fitness effects. The magnitude of such associations depends on the recombination rate among sites and on the time interval between surveys.It is difficult to project the likely values of the scaled covariance of frequency change with linked selection in natural populations, but preliminary calculations by Buffalo and Coop (2019) suggest that values well below may be common. This could present substantial challenges. Rearranging equation (7) indicates that the expected standard error of the temporal covariance of change in the null situation of no linked selection is , where L is the number of polymorphic sites in the analysis. Assuming a sample size of then if an observed measure of standardized covariance is , rejection of the null hypothesis at the 5% level would require L > 400, and for covariances of and , the minimum number of sites grows to 40,000 and 4,000,000, respectively. These constraints are generous in that they assume unlinked loci. If analyses were restricted to bins of strongly linked region of markers, as might be the case in searches for chromosomal regions under various levels of selection, to a first-order approximation, and the expected standard error is The minimum sample size for rejecting the null hypothesis is then on the order of twice the reciprocal of the observed measure of covariance of change. Thus, aside from the physical limitations of obtaining completely random samples, the method of Buffalo and Coop (2019) appears to be extremely demanding with respect to required sampling effort.There is also an issue with the view that linked selection will always generate positive covariance of allele-frequency change across generations. Even assuming that the selection coefficients of all polymorphisms remain constant in time, it can be seen from equations (9a and 9b) that for any strength of selection, there is an inflection point in the rate of allele-frequency change at p = 0.5 such that on opposite sides of this point the expected rate of change (although always of the same sign) will go from an acceleration to a deceleration phase. This behavior, which is a simple consequence of the frequency dynamics of selected alleles being proportional to , means that even with constant selection, marker alleles in different frequency classes are expected to yield different covariances of frequency change ranging from positive to near-zero to negative. The extent to which such complications will obscure the expected signature of linked selection will depend on the site-frequency spectrum of selected alleles and the relative incidence and magnitude of positive and purifying selection. This raises questions about the interpretation of the covariance of allele-frequency change, including whether the neutral expectation of zero overall covariance of change is also likely to arise emerge under some conditions of selection.Computationally intensive methods involving likelihood and Bayesian frameworks are becoming increasingly popular routes to estimating population-genetic parameters such as N and s, separately or as the product (Bollback et al. 2008; Malaspinas et al. 2012; Foll et al. 2015; Ferrer-Admetlla et al. 2016). So far, the utility of these methods has been primarily confined to situations involving very small N () and large s (>0.05), conditions that do not commonly occur in natural populations of cellular organisms. A potential advantage of likelihood methods that arises with large or is that these conditions raise the possibility of allele-frequency estimates of 0.0 or 1.0, especially if sample sizes are small. Such extremes lead to undefined method-of-moment estimators but can in principle be factored into likelihood functions that attempt to account for the full sampling distribution of alleles. Nevertheless, the latter types of methods do not supersede those outlined above or the statistical limitations that we have highlighted. Indeed, even when s is estimated in a Bayesian framework, the background N is still frequently estimated with a genome-wide application of the method of moments, equations (20–22), often without prior testing for the neutral behavior of the underlying polymorphisms.
Authors: Parul Johri; Charles F Aquadro; Mark Beaumont; Brian Charlesworth; Laurent Excoffier; Adam Eyre-Walker; Peter D Keightley; Michael Lynch; Gil McVean; Bret A Payseur; Susanne P Pfeifer; Wolfgang Stephan; Jeffrey D Jensen Journal: PLoS Biol Date: 2022-05-31 Impact factor: 9.593