A broad range of approaches have considered the challenge of inferring selection from time-resolved genome sequence data. Models describing deterministic changes in allele or haplotype frequency have been highlighted as providing accurate and computationally...
Keywords: inference of fitness landscapes, time-resolved sequence data, delay-deterministic model, viral adaptation
Abstract
A common challenge arising from the observation of an evolutionary system over time is to infer the magnitude of selection acting upon a specific genetic variant, or variants, within the population. The inference of selection may be confounded by the effects of genetic drift in a system, leading to the development of inference procedures to account for these effects. However, recent work has suggested that deterministic models of evolution may be effective in capturing the effects of selection even under complex models of demography, suggesting the more general application of deterministic approaches to inference. Responding to this literature, we here note a case in which a deterministic model of evolution may give highly misleading inferences, resulting from the nondeterministic properties of mutation in a finite population. We propose an alternative approach that acts to correct for this error, and which we denote the delay-deterministic model. Applying our model to a simple evolutionary system, we demonstrate its performance in quantifying the extent of selection acting within that system. We further consider the application of our model to sequence data from an evolutionary experiment. We outline scenarios in which our model may produce improved results for the inference of selection, noting that such situations can be easily identified via the use of a regular deterministic model.
FITNESS landscapes describe the relationship between the genome of an organism and its evolutionary fitness (de Visser and Krug 2014). Evolutionary fitness encompasses a broad range of important phenotypes of an organism, making the inference of details of fitness landscapes a topic of broad biological interest. In some important biological systems, adaptation occurs as a rapid and ongoing process (Buonagurio et al. 1986; Bergland et al. 2014). Where multiple beneficial mutations arise in a population simultaneously, linkage between mutations has a substantial impact upon evolutionary processes; a considerable body of literature has characterized the implications of such effects for adaptation (Barton 1995; Gerrish and Lenski 1998; Gillespie 2001; Rouzine et al. 2003; Desai and Fisher 2007; Schiffels et al. 2011; Good et al. 2012; Rouzine and Weinberger 2013).
Where adaptation is sufficiently rapid to be observed, time-resolved sequence data may be of assistance in measuring the extent to which a variant is under selection. Under the assumption of a large population size, the evolution of a single beneficial allele over time can be described by deterministic differential equations (Hartl and Clark 2007). Given sufficient observations of a population under study, the simplicity of this deterministic framework allows it to be extended to infer selection in far more complicated evolutionary scenarios (Illingworth and Mustonen 2011, 2013); fitting a deterministic model to data provides an estimate of the magnitude of selection acting upon one or very many alleles. In other situations, genetic drift is an important factor to account for; in a small population, changes in allele frequency occurring via drift may outweigh those caused by selection (Rouzine et al. 2001). In this situation, a variety of methods have therefore been developed to consider the evolution of a single-locus, two-allele system, estimating in a joint calculation the effective size of a population, and the magnitude of selection acting upon a variant allele (O’Hara 2005; Bollback et al. 2008; Malaspinas et al. 2012; Mathieson and McVean 2013; Foll et al. 2014; Lacerda and Seoighe 2014; Ferrer-Admetlla et al. 2016; Schraiber et al. 2016). In a similar calculation, one may estimate whether or not a change in the frequency of an allele has arisen through selection or genetic drift. Genetic drift induces an uncertainty in the future frequency of an allele (Kimura 1955); accounting for this, alleles that have changed by more than a given threshold may be identified, enabling the attribution of selection to genetic variants (Feder et al. 2014; Terhorst et al. 2015; Topa et al. 2015). A similar approach has been applied to the case where a population is large, but measurements of allele frequency are of limited quality; model selection procedures discriminate “neutral” from “selected” behavior in an allele frequency trajectory (Illingworth et al. 2014).
Where genetic drift is incorporated into a model, a variety of approaches to modeling Wright–Fisher propagation have been adopted (Tataru et al. 2016). Numerical solution of the stochastic dynamics of the population may be computationally intensive, inspiring the development of more rapid propagation methods and the consideration of potential alternative solutions (Khatri 2016; Krukov et al. 2017; Nené et al. 2018). In a recent work, considering a range of potential models for the demographic history of a population, it was concluded that deterministic approximations to evolution under drift can produce accurate estimates of the magnitude of selection (Jewett et al. 2016). Such models of selection, mutation, and recombination have been used to generate insights into viral adaptation (Ganusov et al. 2011; Illingworth 2015; Sobel Leonard et al. 2017). Time-resolved sequence data describing pathogenic populations is becoming increasingly available (Shankarappa et al. 1999; Zanini et al. 2015; Houldcroft et al. 2017; Xue et al. 2017); in so far as demographic effects can be ignored in such systems, evolutionary inference becomes possible at far-reduced computational cost, making this an important area for methodological development and application.
While acknowledging the potential for deterministic models to generate biological insight, we here present an important case in which a deterministic inference of selection from population sequence data produces a severely deficient result. In this case, a stochastic approach to inference produces a correct result, albeit with additional prior knowledge of the system and at the cost of a substantial amount of computational time. However, the use of what we term a delay-deterministic model, including a single extra model parameter, goes a substantial way to correcting the error in the deterministic calculation. We propose that under a range of evolutionary circumstances, the delay-deterministic model provides a useful framework for inference, combining the speed of a deterministic modeling framework with the accuracy achievable by more computationally intensive models.
Materials and Methods
Simulated trajectories under a Wright–Fisher propagation model
Simulated data from a population was generated according to a model of sequential mutation and selection steps. In this study, we wish to consider effects that arise when a population evolves into new haplotypes via mutation and positive selection; mutation creating individuals with new and fitter genotypes that then grow as a fraction of the population under the influence of positive selection. Such patterns of evolution have been observed in the experimental adaptation of an influenza virus to a novel mammalian host (Imai et al. 2012; Wilker et al. 2013). This imposes strong selection upon the virus; given the large size of a within-host influenza population and the high mutation rate of the virus, successive beneficial mutations may be gained relatively quickly.
In this study, we consider a simplified version of this model, comprising a population of N individuals occupying a linear network of distinct haplotypes, each haplotype being separated from the previous one by a single mutation. We model the fitness of each haplotype as continually increasing with the gain of each successive mutation, such that the fitness of haplotype i is given by for some arbitrary set of parameters In this study, we consider populations with a linear gain in fitness (i.e., with the restriction for all j), and examples of convex and concave fitness landscapes, for which this restriction does not apply, the gain of fitness with each additional haplotype either increasing or decreasing with the gain of each successive mutation (Figure 1). For reasons of computational efficiency, we restrict our model to systems with up to six distinct haplotypes.
Within a simulated population, we denote the number of individuals of haplotype i in the population after t generations by Each generation, propagation of the system was conducted using a simple model of mutation and selection. Mutation was modeled as occurring between adjacent haplotypes; for a given mutation rate μ, the number of mutants from haplotype i into an adjacent haplotype j was described by a Poisson distribution
(1) |
Subsequently, the next generation was drawn via a multinomial process
(2) |
where is the fitness of the haplotype i, is the number of individuals of haplotype i at time t after the effect of mutation has been accounted for, and is the mean fitness of the population. Sequencing of the population was simulated via a multinomial emission model with sequencing read depth So as to understand the performance of our inference model, we considered versions of the linear system with a variety of parameters. Simulations were conducted with population size and Samples from the population were collected via a multinomial process at the times for with sampling ceasing as soon as 99% of the population occupied the last, and fittest, haplotype in the system. By default, sampling was conducted to a depth of with a sample being collected from the population every generation. Systematic sampling of evolving populations is becoming increasingly feasible (Good et al. 2017); here, a very thorough sampling of the system was used to grant a clearer comparison of the different inference methods. To test the effect of a sparser sampling regime, a range of simulations were repeated with data collected to a depth of every 10 generations, that is, at Our model simulates the effect of strong selection, with but is not restricted to the strong mutation paradigm of (Rouzine et al. 2001; Park et al. 2010). In each case, the initial state of the system was defined by and for all
Inference methods
Inferences of selection were conducted using an evolutionary model to generate inferred haplotype frequencies across time. Given observations of the system, a multinomial log likelihood was calculated for the system
(3) |
where is the number of observations of the haplotype i at the time and the sum is calculated over data from all observed time points. Three models were used to generate inferred frequencies. In each model, the inferred frequencies are generated by the fitness parameters (in the case of the linear system, by the single parameter s) and by the initial haplotype frequencies with an additional parameter β being required for the delay-deterministic model. Parameters were optimized to identify the maximum log likelihood.
Deterministic inference model:
In the first model, haplotype frequencies were modeled under the assumption of an infinite population size. As such, in each generation a fraction of each haplotype was subject to mutation, specified by the function M:
(4) |
where the sum was conducted over all haplotypes j that differ from i by a single allele, giving mutation between adjacent haplotypes as illustrated in Figure 1. Selection was included in a similarly deterministic manner, with each haplotype increasing or decreasing in frequency according to its fitness, specified by the function S:
(5) |
where the sum was calculated over all haplotypes. The next generation is given by
(6) |
Stochastic inference model:
In the second model, allele frequencies were propagated in exactly the same way as in the model used for simulation. Stochastic simulations of viral populations have been used to explore the potential range of outcomes occurring in viral systems (Russell et al. 2012). To sample the space of potential outcomes, 1000 replicates of the model were run for each set of initial parameters s and generating 1000 sets of inferred frequencies The mean value of the likelihoods for these replicates was then computed, the likelihood for each replicate being calculated using Equation 3. A simple likelihood maximization approach was used in the optimization; to account for the stochasticity of the likelihood function, the optimization routine was prevented from resampling previously tested model parameters.
Delay-deterministic model:
Finally, a delay-deterministic model was implemented, identical to the deterministic model described above, but with the addition of a delay representing the time for establishment of individuals with a novel haplotype. Specifically, the mutation function of Equation 4 was modified, with mutation out of a haplotype occurring only if the frequency of that haplotype was greater than a specific threshold. Accordingly, mutation was modeled via the new function
(7) |
where the index function
(8) |
The parameter β was optimized to identify the maximum likelihood model.
We note that, of the three inference models, the stochastic model requires an estimation of the total population size, N; for the sake of computational time, we used the correct value of this parameter in our inferences. Neither the deterministic or delay-deterministic models require an estimate of population size.
Application to experimental data:
To explore the use of our approach with experimental data, the deterministic and delay-deterministic models were applied to influenza sequence data collected from an evolutionary experiment in which the transmission of a reassortant H5N1 influenza virus was observed between pairs of ferrets (Wilker et al. 2013). In this experiment, the evolution of the virus was observed using genome sequence data generated from samples collected from the inoculum and from directly infected index ferrets 1, 3, and 5 days after infection, and from the contact ferrets, infected via transmission, 7 and 9 days after contact with the index ferrets. A previous analysis of these data using a deterministic model inferred that, during the course of the experiment, new viral haplotypes, generated via mutation, grew in frequency under very strong positive selection (Illingworth 2015), matching the essential characteristics of the model system considered above. Here, deterministic and delay-deterministic models were applied to within-host data from a single animal in the study, denoted F3501 in the original work, for which the initial population diversity was relatively low. Genome sequence data from the hemagglutinin segment of the virus were processed using the method described in a previous publication (Illingworth 2015), identifying loci at which significant change in allele frequency was observed, then processing short-read data spanning these loci into a set of multi-locus variant calls and inferring haplotype frequencies that best fit the observed data using a maximum likelihood model. Mutation was initially modeled as occurring deterministically between haplotypes, identifying an optimal model of haplotype fitness using a model selection procedure, whereby the most parsimonious explanation of the data was calculated using the Bayesian Information Criterion (BIC) (Kass and Raftery 1995). Fitness parameters within this model were then reinferred using the delay-deterministic framework, comparing fitnesses inferred using each approach. In common with the default model in the original study, the rate of mutation was modeled as using an assumed generation time of 12 hr (Baccam et al. 2006). We note that this system departs from the linear arrangement of haplotypes used in the simulated systems; our simulations are intended to show where differences between the different models arise.
Data availability
Code used for this work is available at https://github.com/cjri/delaydet. The authors state that all data necessary for confirming the conclusions presented in the article are represented fully within the article.
Results
Linear fitness landscape
In the simulations modeling a linear fitness landscape, the stochastic and delay-deterministic models produced the most accurate inferences of selection. Selection coefficients inferred from the three different models are shown in Figure 2. For each of the values of the deterministic model underestimates the magnitude of selection, s, for values of L greater than 1 (that is, where there were three or more haplotypes in total), with an increasing degree of underestimation as L increases. Where the gradient of a linear regression model fitted to the mean inferred frequencies was equal to 0.095; roughly one-tenth of what would be given by a correct inference model. The results obtained also depend upon the value of where this statistic is larger, the extent to which the deterministic model underestimated the true magnitude of selection was reduced; here, for the case, the gradient of the fitted linear model was 0.39. Results from the stochastic inference model show a good reproduction of the correct fitness values; linear gradients varied between 0.98 and 1.02 for the case indicating an accurate reproduction of selection coefficients as would be expected given the identical models of propagation. The delay-deterministic method was close in performance to the stochastic model, with gradients between 0.88 and 0.97 indicating a small underestimate of the strength of selection. This underestimate was not reproduced in the case 10,000, for which gradients fitted to the delay-deterministic outputs were either side of 1. Results from our downsampled data set showed a slight increase in the variance of fitness estimates, but the fundamental pattern of results was preserved (Supplemental Material, Figure S1 in File S1). An analysis of the likelihoods produced under this sampling paradigm showed that the delay-deterministic model was favored under BIC for systems with (Figure S2 in File S1).
The results that we obtained can be intuitively understood via a plot of the evolutionary dynamics of the linear system (Figure 3). Given a deterministic model with the correct selection coefficient, the population propagates through the haplotypes substantially faster than does the stochastic model. In the Wright–Fisher model, given that a mean of one individual mutates from haplotype 0 to haplotype 1 in the first generation. Following the second generation, the probability of an individual being found in haplotype 2 is therefore approximately μ. In so far as double mutations are ignored within our model framework, at least one individual is required to occupy a haplotype before the next haplotype can be founded via mutation; this leads to a delay of multiple generations before a single individual reaches the final haplotype, following which selection ensures the eventual fixation of this haplotype. By contrast, in the deterministic model, mutation propagates the population rapidly through the system; after L generations, the final haplotype is deterministically occupied by a frequency of the population of order The increased fitness of this final haplotype therefore takes effect on the system more rapidly, leading to the observed faster propagation. When the deterministic model is optimized, a lower fitness parameter s is inferred to compensate for this effect, which increases dependent upon the number of haplotypes in the system. By contrast, the delay-deterministic model corrects for the error of the deterministic model. By imposing a delay on the rate at which new haplotypes are founded by mutation, the rate of propagation through the haplotypes is controlled, giving an improved fit to the data and therefore a more accurate inference of selection.
At higher values of differences between the stochastic and deterministic systems are reduced (Figure S3 in File S1). As N tends to infinity, the number of individuals mutating between haplotypes per generation approaches the deterministic limit and the time at which a haplotype becomes established decreases, with the consequence that less of a reduction in s is required to fit the model to the data. The deterministic model therefore provides a good description of the behavior of the discrete system as in the discrete model approaches a value much larger than 1. For a within-host model of influenza, where μ may be of the order (Pauly et al. 2017), and N potentially as large as (Russell et al. 2012), this implies that a value of L ≥ 4 could lead to failure of the deterministic model.
Within the delay-deterministic model fits, a broad range of values of the inferred parameter β were obtained, spanning several orders of magnitude (Figure 4). For cases in which and where the behavior of the deterministic model is furthest from that of the simulated population, quite large values of β were inferred, with a range in the median inferred values from 0.5 to 21%. Much smaller values of β were inferred where or For each of these cases, the deterministic model provides a better approximation of the dynamics of the system; the deterministic model may be considered as a special case of the delay-deterministic model for which As such, a smaller value of β was generally inferred. Substantial variation in the inferred value of β was observed between replicate simulations generated with the same parameters (Figure S4 in File S1). This suggests that the generation of an analytic approximation for this value is likely to prove a challenge.
Convex and concave fitness landscapes
Application of the deterministic and delay-deterministic models to data from the convex and concave fitness landscapes showed an improved inference of selection coefficients in the case of the delay-deterministic methods (Figure 5A). However, in contrast to the calculations for the linear fitness landscape, the delay-deterministic method showed substantial deviation from the correct selection coefficients. We propose that this arises from the mechanics of the emergence of haplotypes. The time to the emergence of a new haplotype is dependent upon the gain in fitness obtained by this transition, and in this case differs between pairs of haplotypes. The delay-determininstic method only has a single parameter with which to model this, so produced an approximation to the correct result. While an imperfect solution, the inclusion of a delay parameter granted a substantially better reproduction of the dynamics of the system. In so far as the deterministic model is a special case of the delay-deterministic model, the maximum likelihood fit of the delay-deterministic model can never be lower than that of the deterministic model. Nevertheless, the likelihood fits obtained for these two systems showed considerable differences between likelihoods (Figure 5B). We propose that where variation exists in the fitness differences between adjacent haplotypes, a model in which independent values of β were fitted to each haplotype could give a better fit to the data, albeit with a concurrent cost in the time taken to optimize individual parameters; more advanced delay-deterministic approaches were not investigated in this study.
Within-host influenza evolution
Application of the deterministic and delay-deterministic methods to data from an evolutionary experiment (Wilker et al. 2013) showed only small differences between inferred parameters. Details of each inference are given in Table S1 in File S1. Within this system evolution proceeds exceptionally fast, with mutation into new and highly advantageous haplotypes being inferred to drive the adaptation of the system over the course of an infection (Figure 6, A and B). Application of the delay-deterministic value gave a marginally improved fit to the data, with a maximum likelihood value 0.63 units better than the deterministic model without accounting for the additional parameter; under the BIC this does not represent a significant improvement in the model. The value of β was inferred to be smaller than that of any inferred initial haplotype frequency that was greater than zero. However, the inferred haplotype fitness values were very similar between the models, with deviations in fitness of not much more than 1% (Figure 6C). This final result can be understood in terms of the arrangement of haplotypes within the system; although some haplotypes were inferred to have initially zero frequency, being created by mutation from other haplotypes, there was insufficient time for haplotypes that were two or more mutations away to increase to an appreciable frequency. This result is informative for calculations performed on biological data sets; even where selection for novel variants is extreme in nature, a delay-deterministic model is unlikely to be required to generate correct inferences of selection on timescales of 4–5 days (∼10–20 generations). This result implies that previous inferences of selection for within-host influenza adaptation using deterministic methods are unlikely to be negatively affected by the use of a deterministic model of mutation (Sobel Leonard et al. 2017). Rather, the value of the method will arise over longer timescales, where the population grows under selection into haplotypes that are separated by multiple variants from those that comprise the initial population.
Discussion
Deterministic models of adaptation have been proposed as a rapid and effective method for inferring selection from time-resolved sequence data (Jewett et al. 2016). Here, we have highlighted a limitation of such frameworks whereby a deterministic model may severely underestimate the magnitude of selection in a system. This underestimation results from delays in the propagation of a finite population toward mutationally distant haplotypes; at least one individual is required to occupy a haplotype before mutation out of that haplotype may occur. As shown here, as this delay operates even at high values of we suggest that a population size satisfying would be required to remove this effect. As a solution to this problem, we propose an alternative inference procedure, which we term a delay-deterministic model. Under this model, the progress of a nominally infinite population through the system is delayed via the use of an additional model parameter, bringing the outcome closer to the behavior of the stochastic system. As such, relative to a regular deterministic model, an improved inference of selection is obtained; in the case of a linear fitness landscape, correct inferences were obtained.
In demonstrating the application of our model, we have chosen the simplest possible situation in which the effects we are studying apply; that of a linear set of haplotypes separated by single mutations. Such a system, with a linear fitness landsacpe, has previously been considered in an application to cancer, calculating the time at which a novel haplotype might arise (Beerenwinkel et al. 2007); while the system we consider is similar, our research question differs from this earlier study. We note that our model is not the only approach that would give a correct inference of selection under the circumstances of a population entering mutationally distant haplotypes. For example, inferring an “establishment time” for each haplotype, at which a haplotype enters a population at a frequency above the selection–drift threshold (Illingworth and Mustonen 2012), would likely generate correct results, albeit at the cost of learning a single parameter per haplotype in the system. The use of a model of time-dependent selection, in which selection only begins to affect a haplotype at a specific point in time (Kessinger et al. 2013), would also give an approximately correct inference of selection, delaying the impact of selection to a point at which the inferred trajectory would fit the data. However, this again would incur a computational cost and would require the imposition on the system of the potentially incorrect assumption of a change in the magnitude of selection with time. Approximations to the stochastic system based upon a reproduction of the stochastic distribution of allele frequencies (Martin and Lambert 2015) may have some potential for evolutionary inference, albeit this has not to our knowledge been attempted. The delay-deterministic model we present here gives a computationally rapid approach to infer the magnitude of selection, improving upon the accuracy of the regular deterministic approach.
In comparison with the stochastic model of inference, the delay-deterministic approach has the computational advantage of utilizing a framework of deterministic propagation. Whereas the stochastic model required a large number of replicate propagations of the model for each set of parameters tested, the delay-deterministic approach requires only the optimization of a single additional parameter. The relative cost of this is likely to vary considerably depending upon the complexity of the system in question; in the application to influenza data considered here, where the model contained tens of parameters to be optimized, a single additional parameter is not likely to add substantially to the computational cost, provided that the optimization procedure is implemented in an efficient manner. We note that faster implementations of the stochastic framework are likely to be achievable; the recent demonstration of such methods for the two-allele case suggest the extension to more generalized population models to be a valuable avenue for exploration (Khatri 2016; Krukov et al. 2017).
Applying our model to data from an evolutionary experiment, we identified very similar results between the deterministic and delay-deterministic methods; despite very high magnitudes of selection being inferred to act upon haplotypes in this case, little difference in the model inferences was found. Therefore, we propose that our method will be of relevance in cases where selection is strong and acts over longer time periods than those of the experiment considered, for which adaptation was observed over only a small number of generations. The identification of cases for which the deterministic model will produce correct or incorrect results is likely to be possible via application of the model itself; wherever a substantial proportion of a population is inferred to evolve into a haplotype that is more than two mutations distant from a haplotype occupied by the initial population, a delay-deterministic or similar approach should be considered.
Supplementary Material
Supplemental material is available online at www.genetics.org/lookup/suppl/doi:10.1534/genetics.118.300790/-/DC1.
Acknowledgments
This work was supported by a Sir Henry Dale Fellowship, jointly funded by the Wellcome Trust and the Royal Society (grant number 101239/Z/13/Z).
Footnotes
Communicating editor: Y. Song
Literature Cited
- Baccam P., Beauchemin C., Macken C. A., Hayden F. G., Perelson A. S., 2006. Kinetics of influenza A virus infection in humans. J. Virol. 80: 7590–7599. 10.1128/JVI.01623-05 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Barton N. H., 1995. Linkage and the limits to natural selection. Genetics 140: 821–841. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Beerenwinkel N., Antal T., Dingli D., Traulsen A., Kinzler K. W., et al. , 2007. Genetic progression and the waiting time to cancer. PLoS Comput. Biol. 3: e225 10.1371/journal.pcbi.0030225 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Bergland A. O., Behrman E. L., O’Brien K. R., Schmidt P. S., Petrov D. A., 2014. Genomic evidence of rapid and stable adaptive oscillations over seasonal time scales in Drosophila. PLoS Genet. 10: e1004775 10.1371/journal.pgen.1004775 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 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]
- Buonagurio D. A., Nakada S., Parvin J. D., Krystal M., Palese P., et al. , 1986. Evolution of human influenza A viruses over 50 years: rapid, uniform rate of change in NS gene. Science 232: 980–982. 10.1126/science.2939560 [DOI] [PubMed] [Google Scholar]
- Desai M. M., Fisher D. S., 2007. Beneficial mutation–selection balance and the effect of linkage on positive selection. Genetics 176: 1759–1798. 10.1534/genetics.106.067678 [DOI] [PMC free article] [PubMed] [Google Scholar]
- de Visser J. A. G. M., Krug J., 2014. Empirical fitness landscapes and the predictability of evolution. Nat. Rev. Genet. 15: 480–490. 10.1038/nrg3744 [DOI] [PubMed] [Google Scholar]
- Feder A. F., Kryazhimskiy S., Plotkin J. B., 2014. Identifying signatures of selection in genetic time series. Genetics 196: 509–522. 10.1534/genetics.113.158220 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ferrer-Admetlla A., Leuenberger C., Jensen J. D., Wegmann D., 2016. An approximate Markov model for the Wright-Fisher diffusion and its application to time series data. Genetics 203: 831–846. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Foll M., Poh Y.-P., Renzette N., Ferrer-Admetlla A., Bank C., et al. , 2014. Influenza virus drug resistance: a time-sampled population genetics perspective. PLoS Genet. 10: e1004185 10.1371/journal.pgen.1004185 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Ganusov V. V., Goonetilleke N., Liu M. K. P., Ferrari G., Shaw G. M., et al. , 2011. Fitness costs and diversity of the cytotoxic T lymphocyte (CTL) response determine the rate of CTL escape during acute and chronic phases of HIV infection. J. Virol. 85: 10518–10528. 10.1128/JVI.00655-11 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Gerrish P. J., Lenski R. E., 1998. The fate of competing beneficial mutations in an asexual population. Genetica 102–103: 127–144. 10.1023/A:1017067816551 [DOI] [PubMed] [Google Scholar]
- Gillespie J. H., 2001. Is the population size of a species relevant to its evolution? Evolution 55: 2161–2169. 10.1111/j.0014-3820.2001.tb00732.x [DOI] [PubMed] [Google Scholar]
- Good B. H., Rouzine I. M., Balick D. J., Hallatschek O., Desai M. M., 2012. Distribution of fixed beneficial mutations and the rate of adaptation in asexual populations. Proc. Natl. Acad. Sci. USA 109: 4950–4955. 10.1073/pnas.1119910109 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Good B. H., McDonald M. J., Barrick J. E., Lenski R. E., Desai M. M., 2017. The dynamics of molecular evolution over 60,000 generations. Nature 551: 45–50. 10.1038/nature24287 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Hartl D., Clark A., 2007. Principles of Population Genetics. Sinauer Associates, Sunderland, MA. [Google Scholar]
- Houldcroft C. J., Beale M. A., Breuer J., 2017. Clinical and biological insights from viral genome sequencing. Nat. Rev. Microbiol. 15: 183–192. 10.1038/nrmicro.2016.182 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Illingworth C. J., Mustonen V., 2011. Distinguishing driver and passenger mutations in an evolutionary history categorized by interference. Genetics 189: 989–1000. 10.1534/genetics.111.133975 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Illingworth C. J., Fischer A., Mustonen V., 2014. Identifying selection in the within-host evolution of influenza using viral sequence data. PLoS Comput. Biol. 10: e1003755 10.1371/journal.pcbi.1003755 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Illingworth C. J. R., 2015. Fitness inference from short-read data: within-host evolution of a reassortant h5n1 influenza virus. Mol. Biol. Evol. 32: 3012–3026. 10.1093/molbev/msv171 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Illingworth C. J. R., Mustonen V., 2012. A method to infer positive selection from marker dynamics in an asexual population. Bioinformatics 28: 831–837. 10.1093/bioinformatics/btr722 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Illingworth C. J. R., Mustonen V., 2013. Quantifying selection in evolving populations using time-resolved genetic data. J. Stat. Mech. 2013: P01004. [Google Scholar]
- Imai M., Watanabe T., Hatta M., Das S. C., Ozawa M., et al. , 2012. Experimental adaptation of an influenza H5 HA confers respiratory droplet transmission to a reassortant H5 HA/H1N1 virus in ferrets. Nature 486: 420–428. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Jewett E. M., Steinrücken M., Song Y. S., 2016. The effects of population size histories on estimates of selection coefficients from time-series genetic data. Mol. Biol. Evol. 33: 3002–3027. 10.1093/molbev/msw173 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kass R. E., Raftery A. E., 1995. Bayes factors. J. Am. Stat. Assoc. 90: 773–795. 10.1080/01621459.1995.10476572 [DOI] [Google Scholar]
- Kessinger, T. A., A. S. Perelson, and R. A. Neher, 2013 Inferring HIV escape rates from multi-locus genotype data Front. Immunol. 4: 252. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Khatri B. S., 2016. Quantifying evolutionary dynamics from variant-frequency time series. Sci. Rep. 6: 32497 10.1038/srep32497 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Kimura M., 1955. Solution of a process of random genetic drift with a continuous model. Proc. Natl. Acad. Sci. USA 41: 144–150. 10.1073/pnas.41.3.144 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Krukov I., de Sanctis B., de Koning A. P. J., 2017. Wright-Fisher exact solver (WFES): scalable analysis of population genetic models without simulation or diffusion theory. Bioinformatics 33: 1416–1417. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Lacerda M., Seoighe C., 2014. Population genetics inference for longitudinally-sampled mutants under strong selection. Genetics 198: 1237–1250. 10.1534/genetics.114.167957 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Malaspinas A.-S., Malaspinas O., Evans S. N., Slatkin M., 2012. Estimating allele age and selection coefficient from time-serial data. Genetics 192: 599–607. 10.1534/genetics.112.140939 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Martin G., Lambert A., 2015. A simple, semi-deterministic approximation to the distribution of selective sweeps in large populations. Theor. Popul. Biol. 101: 40–46. 10.1016/j.tpb.2015.01.004 [DOI] [PubMed] [Google Scholar]
- Mathieson I., McVean G., 2013. Estimating selection coefficients in spatially structured populations from time series data of allele frequencies. Genetics 193: 973–984. 10.1534/genetics.112.147611 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Nené N. R., Mustonen V., Illingworth C. J. R., 2018. Evaluating genetic drift in time-series evolutionary analysis. J. Theor. Biol. 437: 51–57. 10.1016/j.jtbi.2017.09.021 [DOI] [PMC free article] [PubMed] [Google Scholar]
- O’Hara R. B., 2005. Comparing the effects of genetic drift and fluctuating selection on genotype frequency changes in the scarlet tiger moth. Proc. Biol. Sci. 272: 211–217. 10.1098/rspb.2004.2929 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Park S.-C., Simon D., Krug J., 2010. The speed of evolution in large asexual populations. J. Stat. Phys. 138: 381–410. 10.1007/s10955-009-9915-x [DOI] [Google Scholar]
- Pauly M. D., Procario M. C., Lauring A. S., 2017. A novel twelve class fluctuation test reveals higher than expected mutation rates for influenza A viruses. Elife 6: e26437 10.7554/eLife.26437 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rouzine I. M., Weinberger L. S., 2013. The quantitative theory of within-host viral evolution. J. Stat. Mech. 2013: P01009 10.1088/1742-5468/2013/01/P01009 [DOI] [Google Scholar]
- Rouzine I. M., Rodrigo A., Coffin J. M., 2001. Transition between stochastic evolution and deterministic evolution in the presence of selection: general theory and application to virology. Micro. Mol. Biol. Rev. 65: 151–181. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Rouzine I. M., Wakeley J., Coffin J. M., 2003. The solitary wave of asexual evolution. Proc. Natl. Acad. Sci. USA 100: 587–592. 10.1073/pnas.242719299 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Russell C. A., Fonville J. M., Brown A. E. X., Burke D. F., Smith D. L., et al. , 2012. The potential for respiratory droplet–transmissible A/H5N1 influenza virus to evolve in a mammalian host. Science 336: 1541–1547. 10.1126/science.1222526 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Schiffels S., Szollosi G. J., Mustonen V., Lassig M., 2011. Emergent neutrality in adaptive asexual evolution. Genetics 189: 1361–1375. 10.1534/genetics.111.132027 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 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]
- Shankarappa R., Margolick J. B., Gange S. J., Rodrigo A. G., Upchurch D., et al. , 1999. Consistent viral evolutionary changes associated with the progression of human immunodeficiency virus type 1 infection. J. Virol. 73: 10489–10502. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Sobel Leonard A., McClain M. T., Smith G. J. D., Wentworth D. E., Halpin R. A., et al. , 2017. The effective rate of influenza reassortment is limited during human infection. PLoS Pathog. 13: e1006203 10.1371/journal.ppat.1006203 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Tataru P., Simonsen M., Bataillon T., Hobolth A., 2016. Statistical inference in the Wright–Fisher model using allele frequency data. Syst. Biol. 66: e30. [DOI] [PMC free article] [PubMed] [Google Scholar]
- Terhorst J., Schlötterer C., Song Y. S., 2015. Multi-locus analysis of genomic time series data from experimental evolution. PLoS Genet. 11: e1005069 10.1371/journal.pgen.1005069 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Topa H., Jónás Á., Kofler R., Kosiol C., Honkela A., 2015. Gaussian process test for high-throughput sequencing time series: application to experimental evolution. Bioinformatics 31: 1762–1770. 10.1093/bioinformatics/btv014 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Wilker P. R., Dinis J. M., Starrett G., Imai M., Hatta M., et al. , 2013. Selection on haemagglutinin imposes a bottleneck during mammalian transmission of reassortant H5N1 influenza viruses. Nat. Commun. 4: 1–11. 10.1038/ncomms3636 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Xue K. S., Stevens-Ayers T., Campbell A. P., Englund J. A., Pergam S. A., et al. , 2017. Parallel evolution of influenza across multiple spatiotemporal scales. Elife 6: e26875 10.7554/eLife.26875 [DOI] [PMC free article] [PubMed] [Google Scholar]
- Zanini F., Brodin J., Thebo L., Lanz C., Bratt G., et al. , 2015. Population genomics of intrapatient HIV-1 evolution. Elife 4: e11282. [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.
Supplementary Materials
Data Availability Statement
Code used for this work is available at https://github.com/cjri/delaydet. The authors state that all data necessary for confirming the conclusions presented in the article are represented fully within the article.