Abstract
Rapidly evolving pathogens like influenza viruses can persist by changing their antigenic properties fast enough to evade the adaptive immunity, yet they rarely split into diverging lineages. By mapping the multistrain SusceptibleInfectedRecovered model onto the traveling wave model of adapting populations, we demonstrate that persistence of a rapidly evolving, RedQueenlike state of the pathogen population requires longranged crossimmunity and sufficiently large population sizes. This state is unstable and the population goes extinct or ‘speciates’ into two pathogen strains with antigenic divergence beyond the range of crossinhibition. However, in a certain range of evolutionary parameters, a single crossinhibiting population can exist for times long compared to the time to the most recent common ancestor (${T}_{MRCA}$) and gives rise to phylogenetic patterns typical of influenza virus. We demonstrate that the rate of speciation is related to fluctuations of ${T}_{MRCA}$ and construct a ‘phase diagram’ identifying different phylodynamic regimes as a function of evolutionary parameters.
https://doi.org/10.7554/eLife.44205.001Introduction
In a host population that develops longlasting immunity, a pathogen can persist by infecting immunological naive individuals such as children, or through rapid antigenic evolution that enables the pathogen to evade immunity and reinfect individuals. Childhood diseases like measles or chicken pox fall into the former category, while influenza virus adapts rapidly and reinfects most humans multiple times during their lifespan. The continuous adaptation of influenza is facilitated by high mutation rates resulting in diverse populations of cocirculating viral strains. Nevertheless, almost always a single variant eventually outcompetes the others such that diversity within one subtype or lineage remains limited (Petrova and Russell, 2018).
The contrast of rapid evolution while maintaining limited genetic diversity is most pronounced for the influenza virus subtype A/H3N2. Figure 1 shows a phylogenetic tree of HA sequences of type A/H3N2 with the characteristic ‘spindly’ shape. The most recent common ancestor of the population is rarely more than 3–5 years in the past (Rambaut et al., 2008). Other pathogenic RNA viruses that typically do not reinfect the same individual, (measles, mumps, HCV, or HIV) diversify for decades or centuries (Grenfell et al., 2004). Interestingly, influenza B has split into two cocirculating lineages in the 1970s which by now are antigenically distinct (Rota et al., 1990) and maintain intermediate levels of diversity (see Figure 1).
Influenza virus infections elicit lasting immunity rendering most individuals nonsusceptible to viruses that circulated during their lifetime (Fonville et al., 2014). The virus population escapes collective human immunity by accumulating amino acid substitutions in its surface glycoproteins (Koel et al., 2013; Wilson and Cox, 1990). Extensive genetic characterizations have shown that within each subtype many HA sequence variants cocirculate (Rambaut et al., 2008; Fitch et al., 1997). These variants differ from each other by ∼10 substitutions and compete for susceptible hosts (Strelkowa and Lässig, 2012). The rapid sequence evolution results in a decay of immune crossreactivity over ∼10 years (Smith et al., 2004; Bedford et al., 2014; Fonville et al., 2014; Neher et al., 2016).
Epidemiological dynamics of influenza is often modeled using generalizations of the classic SusceptibleInfectedRecovered (SIR) model to multiple antigenically distinct viral strains (Kermack and McKendrick, 1927; Gog and Grenfell, 2002). Such models need to capture (i) how the infection with one strain affects susceptibility to other strains and (ii) how novel strains are generated from existing strains by mutations. A common approach has been to impose a discrete onedimensional strain space in which new strains are generated by mutation of adjacent strains. Infection results in a reduction of susceptibility in a manner that depends on the distance in this onedimensional strain space (Andreasen et al., 1996; Gog and Grenfell, 2002). Such models naturally result in ‘traveling waves’ in the sense that the pathogen population moves through strain space by recurrent emergence of antigenically advanced variants produced by mutation from neighboring strains (Lin et al., 2003).
These models of antigenically evolving populations are related to general models of rapid adaptation in which populations form a traveling wave moving towards higher fitness (Tsimring et al., 1996; Rouzine et al., 2003; Desai and Fisher, 2007; Neher et al., 2014), reviewed in Neher (2013a). Recently, Rouzine and Rozhnova (2018) described an explicit mapping between a SIR model in a onedimensional antigenic space and traveling wave models in fitness.
Traveling wave (TW) models in a onedimensional antigenic space naturally result in spindly phylogenies: There is only one possible direction for immune escape and the fastest growing most antigenically advanced strain grows drives all other strains extinct. Influenza viruses, however, can escape immunity by mutations at a large number of positions (Wilson and Cox, 1990), suggesting antigenic space is high dimensional (Perelson and Oster, 1979). In many dimensions, different viral strains can escape immunity via different paths and diverge sufficiently from each other until they no longer compete for hosts and thereafter propagate independently evolve. A satisfactory explanation of spindly phylogenies therefore has to describe how evolution in a high dimensional space reduces to an effectively onedimensional path without persistent branching or rapid extinction. Several computational studies have addressed this question and identified crossimmunity (Bedford et al., 2012; Tria et al., 2005; Koelle et al., 2011; Ferguson et al., 2003; Sasaki and Haraguchi, 2000) as well as deleterious mutations (Koelle and Rasmussen, 2015; Gog and Grenfell, 2002) as critical parameters. We will discuss this earlier work at greater length below.
Our work aims to examine the conditions under which the evolving pathogen can maintain a spindly phylogeny with an approximately constant level of diversity – sufficient to avoid extinction, yet constrained from further branching by crossinhibition between not too distant strains. We show that long range cross immunity in generic stochastic models of antigenic evolution generates such phylogenies. However, in the long term the viral population either ‘speciates’ into weakly interacting diverging lineages or goes extinct with rates that are controlled by three dimensionless combinations of model parameters. While the relation of these parameters to the known characteristics of influenza epidemiology and evolution is not direct, the general ‘phase diagram’ captured by the parameters of the simple model illustrates the key competing factors governing expected longterm dynamics.
Results
Model
A model of an antigenically evolving pathogen population needs to account for crossimmunity between strains and the evolution of antigenically novel strains. We use an extension of the standard multistrain SIR model (Gog and Grenfell, 2002). The fraction of individuals ${I}_{a}$ infected with viral strain $a$ changes according to
where $\beta $ is the transmissibility, ${S}_{a}$ is the population averaged susceptible to strain $a$, $\nu $ is the recovery rate, and $\gamma $ is the population turnover rate. The fraction ${R}_{a}$ of the population recovered from infection with strain $a$ changes according to
Our focus here is on antigenically evolving pathogens that reinfect an individual multiple times during its lifetime, we shall ignore population turnover and set $\gamma =0$ right away to simplify presentation.
The dynamics of ${I}_{a}$ depends on the average susceptibility of the host population ${S}_{a}={\u27e8{S}_{a}(i)\u27e9}_{i}$, while the susceptibility ${S}_{a}(i)$ of host $i$ depends on the host’s history of previous infections. A plausible representation of the history dependence of susceptibility at the level of individuals has a product form (Wikramaratna et al., 2015)
where ${\sigma}_{b}(i)$ is one or zero depending on whether host $i$ has or has not been previously infected with strain $b$. Matrix ${K}_{ab}\le 1$ quantifies the crossimmunity to strain $a$ due to prior infection with strain $b$. Thus, Equation 3 expresses the susceptibility ${S}_{a}$ in terms of a product of attenuation factors each arising from a prior infection by a different strain $b$. A simple, but adequate approximation for the population averaged susceptibility is provided by replacing ${\sigma}_{b}(i)$ in the product in Equation 3 by the fraction of the population ${R}_{b}$ that recovered from infection with strain $b$:
This corresponds to the ‘order one independence closure’ by Kryazhimskiy et al. (2007) and is known as MeanField approximation in physics (Weiss, 1907; Landau and Lifshitz, 2013). The MeanField approximation here corresponds to ignoring correlations between subsequent infection in the individual histories. Approximating the product by the exponential is justified because the total fraction of the host population infected by any single strain in the endemic regime is typically small (Yang et al., 2015). A detailed derivation of Equation 4 and more detailed discussion of approximations is given in Appendix 1. While the original formulation of immunity in Equation 3 is based on the infection history of individuals (Andreasen et al., 1997), the population average over the factorized distribution of histories relates the model to status based formulations (Gog and Grenfell, 2002). While some differences between status and historybased models have been reported (Ballesteros et al., 2009), others have shown that different model types have similar properties (Ferguson and Andreasen, 2002). The differences between these models and approximations are small compared to the crudeness with which these simple mathematical models capture the complex immunity profile of the human population. A model similar to ours has been successfully applied to influenza virus evolution (Luksza and Lässig, 2014).
We note that differentiating Equation 4 with respect to time defines the equation governing the dynamics of population average susceptibility
which is exactly the same as the dynamics of susceptibility in Gog and Grenfell (2002) and Luksza and Lässig (2014) in the limit of negligible population turnover $\gamma /\nu \ll 1$.
New strains are constantly produced by mutation with rate $m$. The novel strain will differ from its parent at one position in its genome. Following Luksza and Lässig (2014), we assume that crossimmunity decays exponentially with the number of mutations that separate two strains:
where $ab$ denotes the mutational distance between the two strains, $d$ denotes the radius of crossimmunity measured in units of mutations. Antigenic space is thereby assumed to be high dimensional and antigenic distance is proportional to genetic distance in the phylogenetic tree (Neher et al., 2016). The parameter $\alpha \le 1$ quantifies the reduction of susceptibility to reinfection by the same strain and hence the overall strength of protective immunity. We shall set $\alpha =1$ corresponding to perfect protection here for simplicity of presentation. Our analysis below applies equally well to the more realistic case of $\alpha <1$, since in our approximation this parameter can be eliminated by rescaling ${R}_{a}$ and ${I}_{a}$ and ultimately merely renormalizes the host population size, which serves as one of the ‘control parameters’ in our analysis.
Crossimmunity and the mutation/diversification process are illustrated in Figure 2. An infection with a particular strain (center of the graph) generates a crossimmunity footprint (shaded circles). Mutation away from the focal strain reduces the effect of existing immunity in the host population, but complete escape requires many mutations. Hence closely related viruses compete against each other for susceptible individuals.
The above model was formulated in terms of the deterministic Equations 14. The actual dynamics, however, is stochastic in two respects: (i) antigenic mutations are generated at random with rate $m$ and (ii) stochasticity of infection and transmission. The latter can be captured by interpreting the terms in Equation 1 as rates of discrete transitions in a total population of ${N}_{h}$ hosts. This stochasticity is particularly important for novel mutant strains that are rare. Most rare strains are quickly lost by chance even if they have a growth advantage due to antigenic novelty. To account for stochasticity in a computationally efficient way, we employ a clonebased hybrid scheme where mutation and the dynamics of rare mutants are modeled stochastically, while common strains follow deterministic dynamics, see Materials and methods (Clonebased simulations).
We will use the recovery rate $\nu $ to set the unit of time, fixing $\nu =1$ in rescaled units. The remaining parameters of the model are (1) the transmission rate $\beta $  in our units the number of transmission events per infection and hence equal to the basic reproduction number ${R}_{0}$, (2) the mutation rate $m$, (3) the range of crossimmunity $d$ measured as the typical number of mutations needed for an $e$fold drop of crossinhibition, and (4) the host population size ${N}_{h}$.
Phenomenology
Before proceeding with a quantitative analysis we discuss different behaviors qualitatively. Figure 3A shows several trajectories of prevalence ${I}_{tot}={\sum}_{a}{I}_{a}$ (i.e. total actively infected fraction) for several different parameters. Depending on the range of crossimmunity, the pathogen either goes extinct after a single pandemic (red line) or settles into a persistently evolving state, the Red Queen State (RQS) traveling wave (Van Valen, 1973 In large populations the RQS exhibits oscillations in prevalence. As we will discuss further below, the RQS state is transient and either goes extinct after some time or splits into multiple antigenically diverging lineages that propagate independently. To quantitatively understand the dependence on parameters, we will further simplify the model and establish a connection to models of rapid adaptation in population genetics. Figure 3BC shows parameter regimes corresponding to distinct qualitative behaviors. The relevant parameters are three combinations of the population size ${N}_{h}$, the selection coefficient of novel mutations $s$, the mutation rate $m$, and the radius of crossimmunity $d$. A longlived but transient RQS regime is flanked be the regime of deterministic extinction (red) and the regime of continuous branching and diversification – the ‘speciation’ regime (blue). The RQS regime itself undergoes a transition from a steady traveling wave (yellow) to a limit cycle oscillation (green) with increasing population size. The location of the boundaries depend on the time scale of observation as the cumulative probability of extinction and speciation increases with time.
Large effect antigenic mutations allow transition from pandemic to seasonal dynamics
A novel virus in a completely susceptible population will initially spread with rate $\beta 1$ and the pandemic peaks when susceptible fraction falls to ${\beta}^{1}$. The trajectory of such a pandemic strain in the timesusceptibility plane is indicated in red in Figure 3D. Further infections in the contracting epidemic will then push susceptibility below ${\beta}^{1}$ – the propagation threshold for the virus – and without rapid antigenic evolution the pathogen will go extinct after a time $t\sim {\beta}^{1}\mathrm{log}{N}_{h}$. Such boombust epidemics are reminiscent of the recent Zika virus outbreak in French Polynesia and the Americas where in a short time a large fraction of the population was infected and developed protective immunity (O'Reilly et al., 2018).
Persistence and transition to an endemic state is only possible if the pathogen can evade the rapid buildup of immunity via a small number of large effect antigenic mutations. This process is indicated in Figure 3D by horizontal arrows leading to antigenically evolved strains of higher susceptibility and bears similarity to the concept of ‘evolutionary rescue’ in population genetics (Gomulkiewicz, 1995). The parameter range of the idealized SIR model that avoid extinction after a pandemic resulting in persistent endemic disease is relatively small. Yet, various factors like geographic structure, heterogeneity of host adaptation and population turnover slow down the pandemic and extinction, thereby increasing the chances of sufficient antigenic evolution to enter the endemic, RQStype, regime. The 2009 pandemic influenza A/H1N1 has undergone such a transition from a pandemic to a seasonal/endemic state. We shall not investigate the transition process in detail here, but will assume that endemic regime has been reached.
Longrange crossimmunity results in evolving but low diversity pathogen populations
Once the pathogen population has established an endemic circulation through continuous antigenic evolution (green and yellow regimes in Figure 3BC), the average rate of new infections $\beta {\sum}_{a}{I}_{a}{S}_{a}/{I}_{tot}$ fluctuates around the rate of recovery $\nu =1$ (in our time units). This balance is maintained by the steady decrease in susceptibility due to rising immunity against resident strains and the emergence of antigenically novel strains, see Figure 3D. If the typical mutational distance between strains is small compared to the crossimmunity range $d$, the rate at which susceptibility decreases is similar for all strains. To see this we expand ${K}_{ab}$ in Equation 5
where we have used that $ab\ll d$ for all pairs of strains with substantial prevalence. In fact it will suffice to keep only the first, leading, term on the right hand side. Close to a steady state, prevalent strains obey $\beta {S}_{a}\approx 1$. We can hence define the instantaneous growth rate of strain ${x}_{a}=(\beta {S}_{a}1)\ll 1$ as its effective fitness. In this limit, the model can be simplified to
The second equation means that effective fitness of all strains $a$ decreases approximately at the same rate since the pathogen population is dominated by antigenically similar strains.
If a new strain $c$ emerged from strain $a$ by a single antigenic mutation, its mutational distance from a strain $b$ is $cb=ab+1$ and ${K}_{cb}={K}_{ab}{e}^{{d}^{1}}\approx {K}_{ab}(1{d}^{1})$. The population susceptibility of strain $c$ is therefore increased to
Since the typical susceptibility is of order ${\beta}^{1}$, the growth rate of the mutant strain $c$ is $s={d}^{1}\mathrm{log}\beta $ higher than that of its parent. The growth rate increment, s, plays the role of a selection coefficient in typical population genetic models and corresponds to the step size of the fitness distribution in Figure 3D. In such models, individuals within a fitness class (bin of the histogram) are equivalent and different classes can be modeled as homogeneous populations which greatly accelerates numerical analysis of the model, see Materials and methods.
Rouzine and Rozhnova (2018) have recently formulated a similar model of antigenic evolution of rapidly adapting pathogens. Analogously to our model, Rouzine and Rozhnova couple strain dynamics to antigenic adaptation through mutations, albeit assuming a onedimensional antigenic space. In agreement with Rouzine and Rozhnova, we find that selection coefficients of novel mutations are inversely proportional to the crossimmunity rate $d$ and increase with infectivity $\beta $, see Equation 9. Rouzine and Rozhnova, however, do not consider oscillations, extinction, and speciation (see below).
The simplified model in Equation 8, along with the model developed by Rouzine and Rozhnova (2018), is analogous to the traveling wave (TW) models of rapidly adapting asexual populations that have been studied extensively over the past two decades (Tsimring et al., 1996; Desai and Fisher, 2007; Rouzine et al., 2003; Hallatschek, 2011), see Neher (2013a) for a review. These models describe large populations that generate beneficial mutations rapidly enough that many strains cocirculate and compete against each other. The fittest (most antigenically advanced) strains are often multiple mutational steps, $q$, ahead of the most common strains, see Figure 3D. This ‘nose’ of the fitness distributions contains the strains that dominate in the future and the only adaptive mutations that fixate in the population arise in pioneer strains in the nose. Consequently, the rate with which antigenic mutations establish in the population is controlled by the rate at which they arise in the nose (Desai and Fisher, 2007). If the growth rate at the nose of the distribution, ${x}_{n}$, is much higher than antigenic mutation rate, ${x}_{n}\gg m$, it takes typically
generations before a novel antigenic mutation arises in a newly arisen pioneer strain that grows exponentially with rate ${x}_{n}$. The advancement of the nose is balanced rapidly by the increasing population mean fitness.
If beneficial mutations have comparable effects on fitness and population sizes are sufficiently large ($Nm\gg 1$), the fitness distribution has an approximately Gaussian shape with a variance ${\sigma}^{2}\approx 2{s}^{2}\mathrm{log}(Ns)/{\mathrm{log}}^{2}({x}_{n}/m)$. The wave is $\sigma /s$ mutations wide, while the most advanced strains are approximately $q=2\mathrm{log}(Ns)/\mathrm{log}({x}_{n}/m)$ ahead of the mean (Desai and Fisher, 2007). Two contemporaneous lineages coalesce on a time scale ${\tau}_{\mathrm{sw}}=sq/{\sigma}^{2}={s}^{1}\mathrm{log}({x}_{n}/m)$ and the branching patterns of the tree resemble a BolthausenSznitman coalescent rather than a Kingman coalescent (Desai et al., 2013; Neher and Hallatschek, 2013b).
In circulating influenza viruses, typically around 3–10 adaptive mutations separate pioneer strains from the most common variants (Strelkowa and Lässig, 2012; Neher and Bedford, 2015). While this clearly corresponds to a regime where multiple stains compete, it does not necessarily mean that asymptotic formulae assuming $q\gg 1$ are accurate. Nevertheless, many qualitative features of TW models have been shown to qualitatively extend into regimes where $q$ takes intermediate values (Neher and Hallatschek, 2013b).
While parameter $N$ in the TW models summarized above is a fixed population size, the corresponding entity in our SIR model is the fluctuating pathogen population size ${N}_{p}$ which is related to the (fixed) host population size ${N}_{h}$ by ${N}_{p}={N}_{h}{I}_{tot}$. The average ${I}_{tot}$ depends on other parameters of the model, scaling in particular with $\overline{I}\sim {s}^{2}$. Hence, it will be convenient for us to use ${N}_{h}{s}^{2}$ as one of the relevant ‘control parameters’, replacing $N$ of the standard TW model.
Stability and fluctuations of the RQS
In contrast to most population genetic models of rapid adaptation, our epidemiological model does not control the total population size directly. Instead, the pathogen population size (or prevalence) depends on the host susceptibility, which in itself is determined by recent antigenic evolution of the pathogen. The coupling of these two different effects results in a rich and complicated dynamics (see Figure 4A for an example trajectory): The first effect is ecological: a bloom of the pathogen depletes susceptible hosts leading to a crash in pathogen population and a tendency of the population size to oscillate London and Yorke, 1973 (blue line in Figure 4A). The second effect is evolutionary: higher nose fitness ${x}_{n}$ begets faster antigenic evolution and vice versa, resulting in an apparent instability in the advancement of the antigenic pioneer strains (Fisher, 2013) (yellow line and inset in Figure 4A). In our epidemiological model, as we shall show below, fluctuations in the rate of antigenic advance of the pioneer strains couple with a delay of ${\tau}_{\mathrm{sw}}$ to the ecological oscillation.
To recognize the ecological aspect of the oscillatory tendency, consider the total prevalence ${I}_{tot}$ and the mean fitness of the pathogen $X={\sum}_{a}{x}_{a}{I}_{a}/{I}_{tot}$
which follows directly from Equation (8). Selection on fitness variance ${\sigma}^{2}$ increases $X$, while prevalence ${I}_{tot}$ reduces susceptibility and hence $X$. At fixed variance $\sigma =\overline{\sigma}$ this system is equivalent to a nonlinear oscillator describing a family of limit cycles oscillating about ${I}_{tot}={\overline{\sigma}}^{2}$ and $X=0$ as shown in Figure 4B.
While Equation (11) describes the behavior of common strains, the mutation driven dynamics of the antigenic pioneer strains is governed by the equation for ${x}_{n}$ that in a continuum limit (suitable for the limit of high mutation rate) reads:
The first term on the right hand side represents the rate at which antigenic pioneer strains enter the population, ${\tau}_{a}^{1}$, advancing the nose fitness by an increment $s$ (with ${\tau}_{a}^{1}s={\tau}_{\mathrm{sw}}^{1}{x}_{n}$ ). The second term on the right hand side of Equation (12) represents gradual reduction of susceptibility of the host population, and $\xi (t)$ is a random noise variable representing the stochasticity of the establishment of new strains. The Gaussian white noise $\xi (t)$ is defined statistically by its correlation function $\u27e8\xi (t)\xi (0)\u27e9={\tau}_{a}^{1}\delta (t)$, see Materials and methods (Stochastic differentialdelay simulation).
The first term of Equation (12) captures the apparent instability of the nose: an advance of the nose to higher ${x}_{n}$ accelerates its rate of advancement. The stabilizing factor is the subsequent increase in ${I}_{tot}$, but to see how that comes about we must connect Equation (12) to Equation (11). The connection is provided by ${\sigma}^{2}$ since it is controlled by the emergence of novel strains, that is the dynamics of the ‘nose’ ${x}_{n}$, which impacts the bulk of the distribution after a delay ${\tau}_{\mathrm{sw}}$. Based on the analysis detailed in the Appendix 2, we approximate
relating population dynamics, Equation (11), to antigenic evolution of pioneer strains described by Equation (12). Taken together Equations (1113) define a Differential Delay (DD) system of equations. Sample simulations of this stochastic DD system are shown in Figure 4 BC. The delay approximation Equation (13) is supported by the crosscorrelation of ${x}_{n}(t)$ and ${\sigma}^{2}({t}^{\prime})$ measured using fitnessclass simulations (see Figure 4A Inset).
The deterministic limit of the DD system (obtained by omitting the noise term in Equation (12)) has a fixed point at ${\tau}_{\mathrm{sw}}^{1}{\overline{x}}_{n}={\overline{\sigma}}^{2}=2{\tau}_{\mathrm{sw}}^{2}\mathrm{log}({N}_{h}\overline{I})$. Small deviations decay in underdamped oscillations with frequency $\omega =\overline{\sigma}=\tau _{\mathrm{sw}}{}^{1}\sqrt{2\mathrm{log}({N}_{h}\overline{I})}$ if $\omega {\tau}_{\mathrm{sw}}<2\pi $. For $\omega {\tau}_{\mathrm{sw}}>2\pi $, the system fails to recover from a deviation of the nose in a single period and the steady state becomes unstable to a limit cycle oscillation. The nonlinearity of Equation (11) implies a longer period with increasing amplitude and the system is stabilized at a limit cycle with the period long enough compared to the feedback delay ${\tau}_{\mathrm{sw}}$. In Appendix 3, we derive the threshold of oscillatory instability to lie at $\mathrm{log}({N}_{h}{\overline{I}}_{osc}s)\approx 8.3$ (leading to limit cycle period $T\approx 1.5{\tau}_{\mathrm{sw}}$, see Figure 4—figure supplement 1). We also find that the amplitude of the oscillation $\mathrm{log}({I}_{max}/\overline{I})$ scales as $\mathrm{log}({N}_{h}\overline{I})$ for large values of the later. This transition defines quantitatively the boundary between the TW RQS and the Oscillatory RQS regimes that appear on the phase diagrams in Figure 3 (BC). The validity of the predictions of standard TW theory for our adapting SIR system are explored in Figure 4—figure supplement 2.
The distinction between the TW and Oscillatory RQS is obscured by the stochasticity of antigenic advance, Equation (12), which continuously feeds the underdamped relaxation mode, generating a noisy oscillation with the frequency $\omega $ defined above. The difference between the two regimes is illustrated by Figure 4C: in the TW RQS noisy oscillation is about the fixed point, whereas in the Oscillatory RQS it is about deterministic limit cycle.
Interestingly, the dynamics of the Oscillatory RQS, as shown in Figure 4A, can be understood in terms of a nonlinear relaxation oscillator. At relatively low infection prevalence nose fitness ${x}_{n}$ increases until rising ${I}_{tot}$ catches up with it (when ${I}_{tot}={\tau}_{\mathrm{sw}}^{1}{x}_{n}$) driving it down rapidly. Once this ‘minipandemic’ burns out, the population returns to the low prevalence part of the cycle ${I}_{tot}<{\tau}_{\mathrm{sw}}^{1}{x}_{n}$, when ${x}_{n}$ begins to increase again.
The rate of extinction
While in the deterministic limit the differentialdelay system predicts a stable steady TW for $q>{q}_{ex},\overline{I}<{\overline{I}}_{osc}$ and a limit cycle above ${\overline{I}}_{osc}$, fluctuations in the establishment of the antigenic pioneer strains (Equation (12)) can lead to stochastic extinction. In fact, both the TW and Oscillatory RQS (see Figure 3BC) are transient, subject to extinction due to a sufficiently large stochastic fluctuation. (Note however the contrast with the ‘extinction’ state in Figure 3BC, where extinction is deterministic and rapid.) The rate of extinction depends on $q$ and $\mathrm{log}({N}_{h}\overline{I})$ as shown in Figure 5A. The time to extinction increases dramatically in the range of $q\sim 12$ and more slowly thereafter. Although extinction is fluctuation driven, the mechanism of extinction in the oscillatory state is related closely to the deterministic dynamics, according to which large amplitude excursion in infection prevalence can lead to extinction. A large ${x}_{n}$ advance leads, after a time ${\tau}_{\mathrm{sw}}$ to a rise in prevalence ${I}_{tot}$, followed by the rapid fall in the number of susceptible hosts and hence loss of viral fitness. This turns out to be the main mode of fluctuation driven extinction as illustrated by Figure 4C. One expects extinction to take place when a fluctuation induced deviation $\delta x$ of the fitness of pioneer strains becomes of the order of the mean ${\overline{x}}_{n}$. New mutations at the nose accumulate with rate $1/{\tau}_{a}$ such that at short times $t$ we expect $\delta x\approx s\sqrt{t/{\tau}_{a}}$. Hence $\delta x$ becomes of the order of the mean ${\overline{x}}_{n}$ at times ${\tau}_{\mathrm{ext}}\sim q{\tau}_{\mathrm{sw}}$. However the probability of extinction will also depend on the shape of the oscillatory limit cycle (as it depends on the minimum of infection prevalence during the cycle), which in turn depends on $\mathrm{log}({N}_{h}\overline{I})$. Numerical simulations, Figure 5B, confirm the dependence of ${\tau}_{\mathrm{ext}}$ on $q$ and $\mathrm{log}({N}_{h}\overline{I})$. We note that the rate increase in ${\tau}_{\mathrm{ext}}$ with increasing $q$ slows down in the oscillatory regime and appears to approach a power law dependence ${\tau}_{\mathrm{ext}}/{\tau}_{\mathrm{sw}}\sim {q}^{2.5}$ (albeit over a limited accessible range): presently we do not have an analytic understanding of this specific functional form.
The rate of speciation
The correspondence of the multistrain SIR and the TW models discussed above assumes that crossimmunity decays slowly compared to the coalescent time of the population, that is $d/q\gg 1$. In this case, all members of the population compete against each other for the same susceptible hosts. Conversely, if the viral population were to split into two subpopulations separated by antigenic distance greater than the range of crossinhibition $d$, these subpopulation would nolonger compete for the hosts, becoming effectively distinct viral ‘species’ that propagate (or fail) independently of each other. Such a split has for example occurred among influenza B viruses, see Figure 1.
A ‘speciation’ event corresponds to a deep split in the viral phylogeny, with the ${T}_{MRCA}$ growing without bounds, see Figure 1 and Figure 6A. This situation contrasts the phylogeny of the single competing population, where ${T}_{MRCA}$ fluctuates with a characteristic ramplike structure generated by stochastic extinction of one of the two oldest clades. In each such extinction event the MRCA jumps forward by $\delta T$. Hence the probability of speciation depends on the probability of the two oldest clades to persist without extinction for a time long enough to accumulate antigenic divergence in excess of $d$. The combined carrying capacity of the resulting independent lineages is then twice their original carrying capacity as observed in simulations, see Figure 6B.
To gain better intuition into this process let’s follow two most antigenically advanced ‘pioneer strains’. In the TW approximation one of these will with high probability belong to the backbone giving the rise to the persisting clade, while the other clade will become extinct, unless it persist long enough to diverge antigenically beyond $d$, becoming a speciation event. As their antigenic distance gradually increases, the two clades are evolving to evade immunity built up against the common ancestor. The less advanced of the two clades is growing less rapidly and takes longer to generate antigenic advance mutations, resulting in still slower growth and slower antigenic advance. Deep splits are hence unstable and it is rare for a split to persist long enough for speciation. In Appendix 5, we reformulate this intuition mathematically as a ‘first passage’type problem which shows that ${T}_{MRCA}$ distribution has an exponential tail which governs the probability of speciation events. Figure 6C shows that the time to speciation increases approximately exponentially with the ratio $d/q$. More precisely we found that average simulated speciation time behaves as ${\tau}_{\mathrm{sw}}^{*}{e}^{f(CI/{q}^{*})}$ with ‘effective’ ${\tau}_{\mathrm{sw}}^{*}={\tau}_{\mathrm{sw}}/(1+\mathrm{log}q/\mathrm{log}(s/m))$ and ${q}^{*}=q(1+\mathrm{log}q/\mathrm{log}(s/m))$ picking up an additional logarithmic dependence on parameters, the exact origin of which is beyond our current approximations. This correction plausibly suggests rapid speciation, ${\tau}_{\mathrm{sw}}^{*}\to 0$, when mutation rate become comparable to the selection strength $m/s\to 1$.
Red Queen State is transient
We emphasize that the RQS regime in Figure 3BC is only transient. For any given $q$ and $d$, the RQS is likely to persist for a time given by the smaller of ${\tau}_{\mathrm{ext}}$ and ${\tau}_{\mathrm{sp}}$, before undergoing either extinction or speciation. These two processes limit the range of $q$ corresponding to the RQS from both sides in a timedependent manner. Figure 7 shows the likely state of an RQS system after time $\tau $ as a function of genetic diversity $q$ for the case of $d=50$ and $\mathrm{log}({N}_{h}\overline{I})=6.5$.
The regime of a single persistent lineage shrinks with increasing $\tau $, for example after $\tau =10{\tau}_{\mathrm{sw}}$ the RQS state likely prevails between $q=1.5$ and $\approx 4$, while (for $d=50$ and $\mathrm{log}({N}_{h}\overline{I})=6.5$) it is unlikely to persist beyond $\tau \approx 100{\tau}_{\mathrm{sw}}$ for any $q$. Both the maximal RQS lifetime and corresponding critical $q}_{c$, increase with increasing $d$.
Discussion
The epidemiological and evolutionary dynamics of human RNA viruses show a number of qualitatively distinct patterns (Grenfell et al., 2004; Koelle et al., 2011). Agents of classical childhood diseases like measles or mumps virus show little antigenic evolution, other viruses like dengue or norovirus exist in distinct serotypes, while seasonal influenza viruses undergo continuous antigenic evolution enabling viruses of the same lineage to reinfect the same individual.
Here, we have integrated classical multistrain SIR models with stochastic models of adaptation to understand the interplay between the epidemiological dynamics and the accumulation of antigenic novelty. The former is dominated by the most prevalent strains, while the latter depends critically on rare pioneer strains that become dominant at later times. Our model differs from that of Rouzine and Rozhnova (2018) in two aspects that are crucial to questions addressed here: To meaningfully study speciation and diversification, the model needs to allow for an high dimensional antigenic space. Similarly, fluctuations in pathogen population size determine the dynamics of extinction and this aspect can not be studied in models with constant population size. Including these aspects of the epievolutionary dynamics allowed to define a ‘phase’ diagram that summarizes qualitatively different behavior as a function of the relevant parameter combinations, see Figure 3B and C.
The phase diagram shows which combinations of key parameters lead to three distinct outcomes: (1) extinction (red), (2) an evolving but low diversity pathogen population (yellow and green), (3) a deeply branching and continuously diversifying pathogen population (blue). The key parameters are the size of the population $\mathrm{log}({N}_{h}{s}^{2})$, the ratio of mutational effects to mutation rate $\mathrm{log}(s/m)$, and the crossimmunity range $d$. In particular, large $d$ prevents speciation, while rapid mutation and large population sizes facilitate speciation.
In regime (2) of a low diversity but rapidly evolving pathogen population, incidence is determined by the range of crossimmunity $d$ and by the speed of antigenic evolution which itself depends on the pathogen population size, mutation rates, and the fitness effect of novel mutations. A consistent solution of these dependencies shows that average incidence ${I}_{tot}$ decreases as ${d}^{2}$, while weakly depending on population size and mutation rates (see Equation A2.11), consistent with results by Rouzine and Rozhnova (2018). Typical values of the coalescent time of influenza A (24y), an infectious period of 5d, and a human population size $\sim {10}^{10}$ result in an average annual incidence of 3–10%. This number is consistent with previous estimates of the annual attack rate of influenza (Yang et al., 2015) (which typically do not differentiate the different influenza lineages).
Of the different regimes, only extinction (1) and speciation (3) are truly asymptotic. The intermediate regimes of continuously evolving low diversity pathogen population  the Red Queen State (RQS)  are strictly speaking metastable states which eventually either go extinct or undergo branching, but in a certain regime of parameters are very long lived. In our simple model, stability against speciation on the time scale $>10{\tau}_{\mathrm{sw}}$ required $d\sim 10q$ (while stability against extinction requires $q>2$). These results are consistent with earlier studies that have shown that competition between lineages mediated by longrange crossimmunity can prevent diversification, effectively canalizing the population into a single lineage (Tria et al., 2005; Ferguson et al., 2003).
In practice, the range of crossimmunity required to prevent speciation might be smaller than the idealized model. Our model assumes that the pathogen population can escape immunity via many equivalent mutational path. But in reality, the number of path to escape will be limited and some path more accessible than others, which will reduce the tendency to speciate and the necessity for large $d$. Similarly, other factors such as population turn over and geographic heterogeneity can delay extinction.
Previous studies have shown that the rate of branching in the speciation regime increases with population size and mutation rate consistent with the phase diagram (Sasaki and Haraguchi, 2000; Koelle et al., 2011). Bedford et al. (2012) have used largescale individualbased simulations to explore structure of influenza viruses phylogenies. Consistent with our results, they found that the speciation rate increases with the mutation rate (lowering $\mathrm{log}s/m$ and thereby facilitating speciation) and increasing standard deviation of mutational effects. The latter increases the typical antigenic effect of successful mutations, which decreases the radius of crossimmunity when measured in units of mutations making the population more prone to speciate.
Koelle and Rasmussen (2015) have implicated deleterious mutation load as a cause of spindly phylogenies. Deleterious mutations increase fitness variation, which results in more rapid coalescence and less antigenic diversity, which in turn reduces speciation rates. Our model can readily incorporate deleterious effects of antigenic mutations on transmission $\beta $. Such deleterious mutations reduce the selection coefficient of antigenic mutations, which in turn reduces the fitness variance ${\sigma}^{2}$, see Appendix 6. After subtracting the contribution of deleterious mutations from the the fitness variance, the times to speciation follow the predicted dependence on $q$ and $d$, see Figure 6C.
Outbreaks of emerging viruses that quickly infect a large fraction of the population, as for example the recent Zika virus outbreak in the Americas, fall into regime (1): In 2–3 years, large fractions of the population were infected and have developed longlasting immunity. As far as we know, the viral population did not evolve antigenically to escape this build up of herd immunity and the virus population is not expected to continue to circulate in the Americas (O'Reilly et al., 2018).
Different influenza virus lineages, in contrast, persist in the human population, suggesting that they correspond to parameters that fall into the RQS region of the phase diagram. Furthermore, the different subtypes display quantitatively different circulation and diversity patterns that allow for a direct, albeit limited, comparison to theoretical models: subtype A/H1N1 circulated with interruption from 1918 to 2009, A(H2N2) circulated for about 10 years until 1968, A/H3N2 emerged in 1968 and is still circulating today, and the triple reassortant 2009 H1N1 lineage, called A(H1N1pdm), settled into a seasonal pattern following the pandemic in 2009. Influenza B viruses have split into two separate lineages (B/Victoria and B/Yamagata) in the 1970s (Rota et al., 1990). Phylogenetic trees of A/H3N2 and the influenza B lineages are shown in Figure 1.
The influenza B lineages tend to be more genetically diverse than the influenza A lineages with a typical time to the most recent common ancestor of around 6 compared to 3 years, see Figure 1. Influenza A/H3N2 tends to have the lowest diversity and most rapid population turnover. This difference in diversity is consistent with influenza B lineages being more prone to speciation.
The typical diversity of these viruses needs to be compared to their rate of antigenic evolution. Hemagglutination inhibition titers drop by about 0.7–1 log2 per year in A/H3N2 compared to 0.1–0.4 log2 per year for influenza B lineages (Smith et al., 2004; Bedford et al., 2014; Neher et al., 2016). Hence the ratio of the time required to lose immunity and ${T}_{MRCA}$ is similar for the different lineages, suggesting that the distinct rates of genetic and antigenic evolution can not be used as a straight forward rationalization of the speciation event of Influenza B and the lack of speciation of influenza A lineages. Nor should such an explanation be expected as there is only a single observation of speciation. We note that currently circulating A/H3N2 viruses are exceptionally diverse with a common ancestor that existed about 8 years in the past. Furthermore, the cocirculating 3c.3a and 3c.2a are antigenically distinct and it is conceivable that further antigenic evolution will result in speciation of A/H3N2 viruses.
While we have shown that the natural tendency of SIR models to oscillate couples to the instability of the nose of the pathogen fitness distribution, making a quantitative link to the observed epidemiological dynamics of the flu is difficult on account of seasonal oscillation in transmissivity. The latter confounding factor is widely believed to be the cause behind observed seasonality of the flu. Including explicit temporal variation (in $\beta $) in our model would lock the frequency of the prevalence oscillation to the seasonal cycle, possibly resulting in subharmonic modulation, yet distinguishing such a modulation on top of an already stochastic process is hard. Much remains to be done: finite birth rates, distinct age distributions (as for example is the case for the two influenza B lineages), realistic distribution of antigenic effect sizes, or very long range Tcellmediated immunity would all be interesting avenues for future work.
Materials and methods
Clonebased simulations
Request a detailed protocolWe simulate the original model on a genealogical tree by combining the deterministic update of SIRtype equations and the stochastic step introducing mutated strains. In each time step $\mathrm{\Delta}t<1$, we apply the midpoint method to advance SIR equations Equations (1,2,4). We then generate a random number uniformly sampled between zero and one for each surviving strain with ${N}_{h}{I}_{a}\ge 1$. If the random number is smaller than $m{N}_{h}{I}_{a}\mathrm{\Delta}t$ for strain $a$, we append a new strain $b$ as a descendent to $a$. The susceptibility to strain $b$ is related to susceptibility to strain $a$ via ${S}_{b}={({S}_{a})}^{{e}^{1/d}}$. In most of the simulations, the transmissibility of different strains is held constant $\beta $. Otherwise we allow for a strain specific transmissibility that is to its parent: ${\beta}_{b}={\beta}_{a}\delta \beta $ with $\delta \beta >0$ for the deleterious effect of antigenic mutations and ${\beta}_{b}={\beta}_{\mathrm{max}}$ if the mutation is compensatory. The new strain grows deterministically only if ${\beta}_{b}{S}_{b}>1$.
This simplified model contains six relevant parameters: transmissibility $\beta $, recovery rate $\nu $, mutation rate of the virus $m$, birth/death rate of the hosts $\gamma $, the effective crossimmunity range $d$, and the effective size of the hosts ${N}_{h}$, whose empirical ranges are summarized in the Table 1. For flu and other asexual systems in RQS, $\beta \gtrsim \nu \gg m,\gamma $, $d\gg 1$, and ${N}_{h}\gg 1$.
Simulation code and output are available on github in repository FluSpeciation of the neherlab organization (Neher and Yan, 2019; copy archived at https://github.com/elifesciencespublications/FluSpeciation).
Fitnessclassbased simulations
Request a detailed protocolThe stability of the RQS and the extinction dynamics is fully captured by the traveling wave Equation (8). We simulate the traveling wave by discretizing the fitness space $x$ into bins of step size $s$ around zero. The number of individuals infected by different strains correspond to integers in each bin ${x}_{i}$. At each time step, the population in each bin ${I}_{i}$ updates to a number sampled from the Poisson distribution with parameter ${\lambda}_{i}={N}_{h}{I}_{i}(1+({x}_{i}\overline{x})\mathrm{\Delta}t)$ determined by mean fitness ${x}_{i}$ and a dynamic mean fitness $\overline{x}$, which increases by $\mathrm{\Delta}t{I}_{tot}$, where ${I}_{tot}$ is the total infected fraction summed over all bins. When $\overline{x}$ becomes larger than one bin size $s$, we shift the all populations to left by one bin and reset $\overline{x}$ to , a trick to keep only a finite number of bins in the simulation. At the same time, antigenic mutation is represented by moving the mutated fraction in each bin to the adjacent bin on the right. The fraction is determined by a random number drawn from the Poisson distribution with the mean $m{I}_{i}\mathrm{\Delta}t$. The typical ranges of the three parameters $s$, $m$, and ${N}_{h}$ follow the parameters in the genealogical simulation, as documented also in Table 1.
Stochastic differentialdelay simulation
Request a detailed protocolTo simulate the differential delay equations Equations (1113), we discretize time in increments of $\mathrm{\Delta}t={\tau}_{\mathrm{sw}}/k$ and update the dynamical variables ${\chi}_{i}={x}_{n}({t}_{i})$ and ${\eta}_{i}={I}_{tot}({t}_{i})$ via the simple Euler scheme:
where ${\xi}_{i}$ is a Gaussian random variable with zero mean and unit variance. Mean prevalence, $\overline{I}$, enters as the control parameter (which defines the time average of ${\eta}_{i}$).
Influenza phylogenies
Request a detailed protocolInfluenza virus HA sequences for the subtypes A/H3N2, A/H1N1, A/H1N1pdm, as well as influenza B lineages Victoria and Yamagata were downloaded from fludb.org.
We aligned HA sequences using mafft (Katoh et al., 2002) and reconstructed phylogenies with IQTree (Nguyen et al., 2015). Phylogenies were further processed and timescaled with the augur (Hadfield et al., 2018) and TreeTime (Sagulenko et al., 2018). The analysis pipeline and scripts are available on github in repository 2019_Yan_flu_analysis of the neherlab organization.
Appendix 1
Approximation of susceptibility
A microscopic model that tracks the infection history of every individual in population is computationally costly and impossible to analyze analytically. To gain insight, we and other authors before us have used approximations that reduce the exploding combinatorial complexity of the state space (Kryazhimskiy et al., 2007). Here, we explore and justify the two separate approximations we have made to arrive at Equation 2: We ignore correlations between subsequent infections of the same individual and approximate the multiplicative effect of all subsequent infections by an exponential term.
To derive Equation 4 we start with Equation 3 and expand it in powers of $K$
where angular brackets denote the average over all individuals $i$ in the population and ${\sigma}_{b}(i)\in [0,1]$ denotes whether individuals $i$ was infected with strain $b$ in the past. This expansion assumes ${K}_{ab}\ll 1$ which would hold uniformly for weak inhibition $\alpha \ll 1$ but also holds for perfect inhibition for sufficiently distant strains $a,b$. For $\alpha \approx 1$ the greatest cause of concern is the contribution of the most proximal strain, to which we shall return later. To evaluate the terms on the righthandside we note that $\u27e8{\sigma}_{b}(i)\u27e9={R}_{b}$, that is the fraction of the population recovered from $b$, and $\u27e8{\sigma}_{b}(i){\sigma}_{c}(i)\u27e9={R}_{b}{R}_{c}+{\rho}_{bc}$ where ${\rho}_{bc}$, by definition, is the correlation between infection with $b$ and $c$ at the level of individuals. Our approximation – following the well established logic of ‘Mean Field’ theories – neglects ${\rho}_{bc}$ compared to ${R}_{b}{R}_{c}$ (Landau and Lifshitz, 2013; Weiss, 1907). In this case, correct to order ${K}^{2}$, we can reexponentiate the righthandside obtaining Equation 4. This simple derivation effectively captures the content of the ‘order1 independence closure’ in Kryazhimskiy et al. (2007).
Several facts about influenza in human populations suggest that the weakcorrelation approximation is a reasonable starting point for modeling population scale behavior. (i) Seasonal flu epidemics involve a large number of strains, a particular strain infects only a small fraction of the population. Hence the ${R}_{a}$ are small and correlation effects are of minor importance. (ii) Challenge studies have shown that protection through vaccination or infection with antigenically similar strains is moderate and a large fraction of challenged individuals still shed virus (Clements et al., 1991). This possibility of homotypic reinfection shows that all ${K}_{ab}$ are substantially smaller than 1, supporting our approximation of population wide susceptibility, as discussed above. (iii) Antibody responses are polyclonal and differ between individuals such that the crossimmunity matrix is stochastic at the level of individuals. This variation in the crossimmunity matrix further reduces correlations in infection history at the population level and justifies the mean field approach taken here (Lee et al., 2019). (iv) Correlation in infection history induced by immunity are further reduced by the variation in exposure history through geography and variation in contact networks.
To quantify the error made by these approximations in the worst case scenario, we explore the case of a onedimensional strain space with strictly periodic reinfection as soon as the virus population as evolved by $\u03f5d$ – the case of maximal correlation. The susceptibility of an individual last infected with a strain $x<\u03f5d$ mutations away from the current strain has susceptibility
where we separated the most recent infection from previous infections to explicitly compare our approximations to that of Rouzine and Rozhnova (2018). The only approximation so far happened between step 2 and 3. In the following, we will include the most recent infection in sum in the exponential to obtain the weakinhibition approximation $\mathrm{log}{S}_{\mathrm{WI}}=\alpha {e}^{\frac{x}{d(1{e}^{\u03f5})}}$.
Rouzine and Rozhnova (2018) follow Lin et al. (2003) in approximating an individual’s susceptibility by ignoring all but the most recent infection $S\approx 1K(x)$, thus keeping only the smallest term of the product representation of ${S}_{a}(i)$ in Equation 3. This approximation is referred to as ‘minimum’ crossimmunity in Wikramaratna et al. (2015). Appendix 1—figure 1 compares the full expression and different approximations of $S(x)$ for different values of $\alpha $ and $\u03f5=1$. For $\alpha =1$, the ‘most recent’ approximation is better than the ‘weak inhibition’ approximation for $x<d/2$ but worse otherwise. For $\alpha <1$, the weak inhibition approximation improves further.
To investigate the effect of ignoring correlations, we now compare the most correlated case of strictly periodic reinfection as soon as the pathogen has evolved by $\u03f5d$. For simplicity, we assume a time invariant density of recovered $1/d\u03f5$ (as in the analysis by Rouzine and Rozhnova, 2018). To calculate the population susceptibility, we integrate the expression for $S(x)$ for the full model and the ‘most recent’ approximation over the interval $[0,d\u03f5]$ and compare it to the mean field approximation in Equation 4 with constant ${R}_{b}=1/d\u03f5$. Appendix 1—figure 1B shows that the ‘meanfield’ approximation is closer to the full model across the entire range of relevant $\u03f5<1$. Note that $\u03f5$ has to be determined selfconsistently and will typically be of the order of the susceptibility.
Realworld influenza population are much less correlated then the extreme ‘periodic infection’ assumption used here for reasons listed above. The linearized meanfield approximation in Equation 4 is therefore justified and can be expected to give a qualitatively correct approximation to a full model that tracks all infection histories.
Appendix 2
Differentialdelay approximation of RQS dynamics
Here we derive the differential delay system of equations that relate the behavior of the pioneer strains to the bulk of the population. Let us consider the generating function associated with the virus fitness distribution at time $t$:
where ${x}_{i}(t)={x}_{n}({t}_{i}){\int}_{{t}_{i}}^{t}\mathit{d}{t}^{\prime}{I}_{tot}({t}^{\prime})$ is the current fitness of the pioneer strain that first appeared at time ${t}_{i}$ and ${I}_{i}(t)$ is the fraction of the hosts infected by it:
We next take a coarse grained view of pioneer strain establishment replacing the sum in Equation (13) by an integral over initial times ${t}_{i}\to t\tau $
where $1/{\tau}_{a}(t\tau )$ is the rate at which new clones are seeded at time $t\tau $. Let us evaluate the integral in the saddle approximation which is dominated by $\tau ={\tau}^{*}$ corresponding to the maximum in the exponential
where we have used the deterministic limit of Equation 12. To simplify presentation we shall ignore the time dependence of ${\tau}_{\mathrm{sw}}={s}^{1}\mathrm{log}({x}_{n}/m)$ replacing ${x}_{n}(t{\tau}^{*})$ in the logarithm by the time average ${\overline{x}}_{n}$.
Within the saddle approximation we then have
where we have omitted the logarithmic corrections for simplicity. Note that by definition $G(0,t)={I}_{tot}(t)$.
We can now estimate fitness mean
and variance
Equation (A2.7) involves the second derivative ${x}_{n}^{\prime \prime}$ and we therefore expect fluctuations in the establishment of new lineages (which contribute to ${x}_{n}^{\prime}$) to be quite important. Yet we can get useful insight by using the deterministic approximation to ${x}_{n}$ dynamics in Equation 12, in which case we arrive at simple delay relation between the variance and ${x}_{n}$
which is consistent with the variance calculated for the case of the steady TW and also satisfies the generalized Fisher theorem
Combining Equations 11, 12 and A2.8 we arrive at the deterministic dynamical system approximating coupled ‘ecological’ SIR dynamics with the evolutionary dynamics of antigenic innovation due to the pioneer strains.
This system admits a family of fixed points of the form ${\tau}_{\mathrm{sw}}{I}_{tot}={x}_{n}={\overline{x}}_{n}$, but as we show in C, the corresponding steady TW states are not always stable giving rise to limit cycle oscillations or leading to rapid extinction. The selfconsistency condition relating ${x}_{n}$ and ${I}_{tot}$ for the steady traveling wave is readily generalized to limit cycle states. Integrating the differentialdelay system over one cycle yields $\u27e8{x}_{n}\u27e9={\tau}_{\mathrm{sw}}\u27e8I\u27e9$. An additional relation is provided by integrating $\mathrm{log}{N}_{h}G(0,t)$ over the cycle:
A great deal of insight into the behavior of the (deterministic) differential delay system defined above is provided by its deterministic limit (see Appendix 3) which defines the stability ‘phase diagram’ shown in Figure 3 (BC) that correctly captures key aspects of the behavior observed in fully stochastic simulations.
Appendix 3
Stability analysis of the differentialdelay approximation
In the traveling wave case, it is natural to measure time in the units of the delay time scale ${\tau}_{\mathrm{sw}}$. The therefore define a time variable $\zeta $ via $t={\tau}_{\mathrm{sw}}\zeta $, the fitness variable $\chi $ via ${x}_{n}={\tau}_{\mathrm{sw}}^{1}\chi $ and the rescaled logprevalence $u$ via $u=\mathrm{log}{\tau}_{\mathrm{sw}}^{2}I$ to obtain
As before, this system has a one parameter family of fixed points $\chi =\overline{\chi},u=\mathrm{log}\overline{\chi}$. Note that from the traveling wave model (Desai and Fisher, 2007), we have $\overline{\chi}={\overline{x}}_{n}{\tau}_{\mathrm{sw}}=q\mathrm{log}({x}_{n}/m)=2\mathrm{log}({N}_{h}{s}^{2})$. To analyze fixed point stability we linearize and Laplace transform, yielding
Stability is governed by the poles of the Laplace transformed response to the initial perturbation $\delta u(0),\delta {u}^{\prime}(0),\delta \chi (0)$ and these poles are at the complex $z$ that solve:
Fixed point  and hence steady RQS  stability requires $\mathrm{\Re}(z)<0$ which is found for $2<\overline{\chi}<{\overline{\chi}}_{c}$. For $\overline{\chi}>2.845$ one finds $\mathrm{\Im}(z)\ne 0$ corresponding to the onset of oscillatory relaxation which turns into a limit cycle for $\overline{\chi}>{\overline{\chi}}_{c}\approx 16.6$. The period of the limit cycle is well approximated by $\mathrm{\Im}(z)$, as the dashed line shown in the bottom panel of Figure 4—figure supplement 1.
The above stability analysis is done for the continuum limit $q\gg 1$. However the finiteness of $q$ does matter, especially close to extinction where only a small number of mutations separate most advanced strains from the bulk of the distribution. We shall now include the corrections to the first order in $1/q$. One such correction arises from the difference between the continuum $\chi ({t}_{i})$ and discrete approximation of ${\chi}_{i}$, the position of the nose fitness bin relative to mean fitness at the time of its establishment. The other correction term comes via the establishment time ${\tau}_{a}$. Including both corrections the Langevin equation becomes:
To first order of $1/q$, the poles of the Laplace transform are determined by
Solving for the onset of stability $\mathrm{\Re}(z)=0$, we find the extinction boundary ${q}_{ex}(\mathrm{log}{N}_{h}{s}^{2})$ from the relation
We observe that ${q}_{ex}\to 2$ asymptotically for large $\mathrm{log}{N}_{h}{s}^{2}$.
Appendix 4
Stochastic form of the differentialdelay approximation
A sensible stochastic generalization is obtained by the stochastic approximation for the ‘nose’ dynamics in Equation (12)
combined with Equation (A2.5) at $\lambda =0$
Note that in this derivation we have avoided the need for explicitly approximating ${\sigma}^{2}$! (We have also neglected the effect of fluctuations arising from the logarithmic correction term effectively replacing it by its average value.) This stochastic differential delay (DD) system was used in simulations presented in Figure 4C.
Appendix 5
Speciation rate as a stochastic ‘First Passage’ problem
Speciation occurs when two most distant clades persist until they are antigenically independent. This persistence problem can be formulated as a first passage problem by including the second ‘nose’ in the TW approximation.
We consider the birth of two pioneer strains at time $t=0$, as illustrated in Appendix 5—figure 1. The descendants of the two strains forming two branches 1 and 2 diverge in the antigenic space as they persist in time. Suppose that at time $t$, the nose of branch 1 is at fitness ${x}_{1}$, and the nose of branch 2 is at ${x}_{2}$. Before the sweep time $t<{\tau}_{\mathrm{sw}}$, the crossimmunity grows mainly from the prevalent strains in the common ancestors of the two branches,
Later when $t>{\tau}_{\mathrm{sw}}$, the pathogen population splits and the different lineages evolve away from each other on two branches in the phylogeny. As the antigenic distances of each nose from the dominant strains on the own and the other branch differ, fitness of the two sets of pioneer strains changes at different rates:
where ${d}_{11}$ and ${d}_{22}$ scale roughly as $q$, the typical antigenic distance to the nose. In the limit ${d}_{21}\approx {d}_{12}\gtrsim d$, Equation (A5.2) reduce to two independent replicas of Equation (12) and the two branches are thus antigenically independent. What is the probability of reaching this limit? The approach to this question rather relies on the persistence probability of two branches in the other limit when ${d}_{21}\approx {d}_{12}\lesssim d$, where ${I}_{1}+{I}_{2}\approx {I}_{\mathrm{tot}}$ crossimmunity growth rate is approximately the same at both noses.
In this limit, the survival probability of the less fit nose maps to a first passage problem in the random walk of relative fitness $\zeta \equiv ({x}_{1}{x}_{2})/{x}_{n}$. As illustrated in Appendix 5—figure 1, an establishment of nose one is a positive step of $\delta \zeta =s/{x}_{n}$, while an establishment of nose two results in a backward step of the same size. As the mutations arrive in characteristic times ${\tau}_{1}$ and ${\tau}_{2}$ depending on the nose fitnesses, in the continuum limit, we have
where $\xi $ is a random noise. There are two relevant boundaries: a reflecting boundary at $\zeta =0$ where two branches switch roles in leading the fitness, and an absorbing boundary at $\zeta =1$ where the fitness of less fit nose drops below the mean fitness and becomes destined for extinction.
The Langevin Equation in Equation A5.3 corresponds to a diffusion equation for the probability density distribution $\rho (\zeta ,t)$
where the drift $v$ and diffusivity $D$ depend on $\zeta $,
Solving with boundary and initial conditions,
we have
where ${}_{1}F_{1}$ is the generalized hypergeometric function, ${\lambda}_{n}$ is the $n$th smallest values solving ${}_{1}F_{1}(\frac{1\lambda}{2},\frac{1}{2},\frac{q}{2})=0$, and coefficient ${c}_{n}$ is determined by the initial condition. In long time $t$, the slowest mode dominates the dynamics. In the large $q$ limit, we have ${\lambda}_{1}=1$. Since ${}_{1}F_{1}\approx \mathrm{const}$ for $\zeta \in (0,1)$, the persistence probability is
The typical time interval between the establishment of successive pioneer strains at the nose scales as ${\tau}_{a}={\tau}_{\mathrm{sw}}/q$. We recall that speciation, or escape from crossimmunity, occurs when antigenic distance between the two branches in Appendix 5—figure 1 ${d}_{1}+{d}_{2}$ is larger than $d$. For that it suffices that the shorter branch ${d}_{2}>d/2$ which occurs with probability
we find the probability of a successful branching ${p}_{1}$ to be proportional to ${e}^{d/2q}$.
In the phylogenetic tree, $t/{\tau}_{a}$ trial branchings from the backbone arrive in time $t$. The probability that none of them successfully speciate is thus
where the waiting time for speciation event is
as numerically verified in Figure 6.
Appendix 6
Effect of mutations on infectivity
Suppose an antigenic mutation has a deleterious effect on infectivity reducing the latter by $\delta {\beta}_{d}$ on average. This would effectively reduce the fitness gain of antigenic innovation from $s$ to ${s}_{d}(\beta )=s(\beta ){\mathrm{\Delta}}_{d}$, with ${\mathrm{\Delta}}_{d}={\beta}^{1}\delta {\beta}_{d}$. In addition let us assume that there also are compensatory mutations which restore maximal infectivity ${\beta}_{\mathrm{max}}$. These compensatory mutation thus have a beneficial effect on fitness ${\mathrm{\Delta}}_{b}(\beta )={\beta}^{1}{\beta}_{\mathrm{max}}1$. We assume that these mutations occur with rate ${m}_{\beta b}$. In a dynamic balance state the rate of fixation of compensatory mutations would exactly balance the deleterious mutation effect on $\beta $ so that ${\tau}_{b}^{1}{\mathrm{\Delta}}_{d}={\tau}_{a}^{1}{\mathrm{\Delta}}_{d}$ with the fixation rate controlled by the fitness of the leading strain via ${\tau}_{b}^{1}={x}_{n}/\mathrm{log}(\frac{{x}_{n}}{{m}_{\beta b}})$. This dynamic balance is achieved at a certain value of ${\beta}_{*}<{\beta}_{\mathrm{max}}$, specifically ${\beta}_{\mathrm{max}}{\beta}_{*}=\delta {\beta}_{d}{\tau}_{b}{\tau}_{a}^{1}$ or ${\beta}_{*}={\beta}_{\mathrm{max}}\delta {\beta}_{d}r$ where $r=\mathrm{log}(\frac{{x}_{n}}{m})/\mathrm{log}(\frac{{x}_{n}}{{m}_{\beta b}})$.
The fitness of the nose of the distribution obeys
where the 1 st term on the RHS is rate of nose advancement due to antigenetic mutations ${\tau}_{a}^{1}={x}_{n}/\mathrm{log}(\frac{{x}_{n}}{m})$ as before, but with reduced fitness gain ${s}_{d}(\beta )$. The 2nd term describes the contribution of compensatory mutations. However in the dynamic equilibrium (at ${\beta}_{*}$) compensatory mutations exactly cancel the contribution the deleterious mutation contribution to $s$ so that for the steady state we recover
as we had for the TW driven by antigenic advancement only. The only effect is the reduction of $s$ from $s({\beta}_{\mathrm{max}})$ to $s({\beta}_{*})={d}^{1}\mathrm{log}{\beta}_{*}$.
The sweep time, ${\tau}_{\mathrm{sw}}$, upon which the fitness of the former pioneer strain comes down to the mean fitness and the nose fitness, ${x}_{n}$, retain the TW form
Following TW approximation to estimate infection prevalence $\sqrt{{I}_{tot}}\sim {N}_{h}^{1}\mathrm{exp}({x}_{n}{\tau}_{\mathrm{sw}}/2)$ as before one finds
The total fitness variance of the population contains a contribution, from antigenic mutations and the mutations in infectivity:
but under conditions of ${\mathrm{\Delta}}_{d},{\mathrm{\Delta}}_{b}\ll s({\beta}_{*})$ total variance would also be decreasing.
Most relevant for our analysis however is not the typical, but the maximal antigenic distance within the viral population:
which is basically unchanged in the presence of infectivity mutations except for the expected reduction in the magnitude of ${s}^{2}$ factor inside the logarithm. Therefore, speciation rate would be reduced, but rather weakly, via a contribution subleading in $o(\mathrm{log}{N}_{h})$
Data availability
Computer programs used for numerical simulations and analysis have been made publicly available at https://github.com/neherlab/FluSpeciation (copy archived at https://github.com/elifesciencespublications/FluSpeciation).
References

A model of influenza a drift evolutionJournal of Applied Mathematics and Mechanics 76:421–424.https://doi.org/10.1002/zamm.19960761212

The dynamics of cocirculating influenza strains conferring partial crossimmunityJournal of Mathematical Biology 35:825–842.https://doi.org/10.1007/s002850050079

Evaluation of Bovine, ColdAdapted human, and WildType human parainfluenza type 3 viruses in adult volunteers and in chimpanzeesJournal of Clinical Microbiology 29:1175–1182.

BookThe Influence of Different Forms of CrossProtective Immunity on the Population Dynamics of Antigenically Diverse PathogensIn: CastilloChavez C, Blower S, van den Driessche P, Kirschner D, Yakubu A. A, editors. Mathematical Approaches for Emerging and Reemerging Infectious Diseases: Models, Methods, and Theory. New York: Springer. pp. 157–169.https://doi.org/10.1007/9781461300656_9

Asexual evolution waves: fluctuations and universalityJournal of Statistical Mechanics: Theory and Experiment 2013:P01011.https://doi.org/10.1088/17425468/2013/01/P01011

Nextstrain: realtime tracking of pathogen evolutionBioinformatics 34:4121–4123.https://doi.org/10.1093/bioinformatics/bty407

MAFFT: a novel method for rapid multiple sequence alignment based on fast fourier transformNucleic Acids Research 30:3059–3066.https://doi.org/10.1093/nar/gkf436

A contribution to the mathematical theory of epidemicsProceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences 115:700–721.https://doi.org/10.1098/rspa.1927.0118

A dimensionless number for understanding the evolutionary dynamics of antigenically variable RNA virusesProceedings of the Royal Society B: Biological Sciences 278:3723–3730.https://doi.org/10.1098/rspb.2011.0435

Traveling waves in a model of influenza A driftJournal of Theoretical Biology 222:437–445.https://doi.org/10.1016/S00225193(03)000560

Recurrent outbreaks of measles, chickenpox and mumps. I. seasonal variation in contact ratesAmerican Journal of Epidemiology 98:453.https://doi.org/10.1093/oxfordjournals.aje.a121575

Genetic draft, selective interference, and population genetics of rapid adaptationAnnual Review of Ecology, Evolution, and Systematics 44:195–215.https://doi.org/10.1146/annurevecolsys110512135920

IQTREE: a fast and effective stochastic algorithm for estimating maximumlikelihood phylogeniesMolecular Biology and Evolution 32:268–274.https://doi.org/10.1093/molbev/msu300

Theoretical studies of clonal selection: minimal antibody repertoire size and reliability of selfnonself discriminationJournal of Theoretical Biology 81:645–670.https://doi.org/10.1016/00225193(79)902753

The evolution of seasonal influenza virusesNature Reviews Microbiology 16:47–60.https://doi.org/10.1038/nrmicro.2017.118

Antigenic evolution of viruses in host populationsPLOS Pathogens 14:e1007291.https://doi.org/10.1371/journal.ppat.1007291

TreeTime: maximumlikelihood phylodynamic analysisVirus Evolution 4:vex042.https://doi.org/10.1093/ve/vex042

Antigenic drift of viruses within a host: a finite site model with demographic stochasticityJournal of Molecular Evolution 51:245–255.https://doi.org/10.1007/s002390010086

A minimal stochastic model for influenza evolutionJournal of Statistical Mechanics: Theory and Experiment 2005:P07008.https://doi.org/10.1088/17425468/2005/07/P07008

RNA virus evolution via a fitnessspace modelPhysical Review Letters 76:4440–4443.https://doi.org/10.1103/PhysRevLett.76.4440

Structural basis of immune recognition of influenza virus hemagglutininAnnual Review of Immunology 8:737–787.https://doi.org/10.1146/annurev.iy.08.040190.003513
Decision letter

Katia KoelleReviewing Editor; Emory University, United States

Patricia J WittkoppSenior Editor; University of Michigan, United States
In the interests of transparency, eLife includes the editorial decision letter and accompanying author responses. A lightly edited version of the letter sent to the authors after peer review is shown, indicating the most substantive concerns; minor comments are not usually included.
Thank you for submitting your article "Phylodynamic theory of persistence, extinction and speciation of rapidly adapting pathogens" for consideration by eLife. Your article has been reviewed by three peer reviewers, one of whom served as a guest Reviewing Editor, and the evaluation has been overseen by Patricia Wittkopp as the Senior Editor. The reviewers have opted to remain anonymous.
The reviewers have discussed the reviews with one another and the Reviewing Editor has drafted this decision to help you prepare a revised submission.
Summary:
This manuscript analyzes a model of virus evolution in a host population in response to accumulating immune memory in previously infected individuals. The main result is a phase diagram that delineates qualitatively different modes of evolution (rapid extinction, strain proliferation, and metastable traveling fitness wave dynamics) as a function of evolutionary and epidemiological parameters.
Essential revisions:
The reviewers all agreed that the presented analyses were thorough and that the results were interesting. However, they also felt that several essential revisions were required:
1) The manuscript makes use of an existing statusbased SIR model when mapping epidemiological dynamics on to the traveling wave evolutionary model. This model, first, should be explained in greater detail and with more clarity in the manuscript text. Further, this multistrain model is one of two general types of multistrain models (the other being a historybased model formulation). Are the phase diagram results robust to other SIR model formulations, including historybased formulations and the model formulation by Lin et al., 2003? Previous relevant work (Ballesteros et al. PLOS One) indicates that this might not be the case.
2) Text should be added to refer to several previous analyses that focus on very similar questions. Of particular importance is incorporating (to a much greater extent, both in the Introduction and starting around Equation 6) text that relates to the results presented recently in Rouzine and Rozhnova, 2018, ensuring that the overlap and the differences between these two analyses is accurately described. Koelle et al., 2011,) and Andreasen and Sasaki, 2006, also address similar questions about how certain epidemiological factors (population size, breadth of crossimmunity, etc.) affect whether and how quickly antigenic diversification will occur. The results presented here should be compared to those found earlier, even if these former approaches do not consider explicitly a traveling wave model. Finally, the way in which the epidemiological dynamics are mapped to fitness and how crossimmunity is quantified is identical to the approach outlined in Luksza et al., 2014, and this paper therefore needs to be cited, most notably in the context of Equations 13 and 4.
3) The mathematical conditions for the mapping onto fitness waves should be made more precise. This mapping is used throughout to describe the endemic regime. However, the traveling fitness wave formalism is derived under more specific assumptions, namely, the coexistence of many smalleffect mutations (which corresponds to large values of q). Some parts of the phase diagram clearly fall outside this regime. While it may still be permissible to extend the asymptotic formulae, this should be discussed. We suggest to mark the boundary of the manymutations regime, say, given by the condition U_b \gtrsim s, as a dotted line in the phase diagram.
4) In the Discussion, it would be important to emphasize that the metastability of the endemic regime is a result of the specific assumptions of this model and to discuss potential biological effects that alter the phase diagram. In particular, much work has been devoted to discuss mechanisms that stabilize the TW regime, e.g. the ideas of shortterm broad crossimmunity (Ferguson et al., 2003, or random fitness components (Tria et al., 2005).
[Editors’ note: further revisions were requested before acceptance.]
Thank you for sending your article entitled "Phylodynamic theory of persistence, extinction and speciation of rapidly adapting pathogens" for peer review at eLife. Your article is being evaluated by two peer reviewers, and the evaluation is being overseen by a guest Reviewing Editor and Patricia Wittkopp as the Senior Editor.
The primary concern stems from details that are now provided in the revised manuscript that you submitted. Given these new details, reviewer #2 is particularly concerned that the epidemiological model does not incorporate infection histories appropriately, such that the results of this analysis do not advance the literature. The reviewer's request is that you redo the entire analysis, using an epidemiological model structure that is appropriate. We would like to give you an opportunity to respond to this request, given the set of highly divergent approaches for modeling multistrain dynamics.
Finally, the second reviewer requested that his/her entire initial review is transmitted in full. We will follow up shortly on the transmission of this entire review, as well as those from the two other reviewers.
We appreciate the value of simplified models; however, our previous comments we designed primarily towards making the simplifying assumptions explicit and to embed the epidemiological model better into the context of previous work on the subject, which we also discussed in the review consultation. Both issues are not yet adequately addressed in the current revision, and we regard the following points as essential for publication of this manuscript:
1) The assumptions underlying the epidemiological model, in particular with respect to the applicability to influenza, should be made explicit. It is not clear to us whether the model used here is indeed a generalization of previous models, as claimed. Specific points:
a) Some justification should be given for the steps leading from a general multistrain immunity model to their Equations 1 – 3, e.g. along the lines of Rozhnova and Rouzine. For example, the authors could try to estimate, by the order of magnitude, the error of this approximation, at least, in a simple population configuration.
b) Equation 3 should be linked to the underlying dynamical model.
c) We also note again that the first application of this model to influenza data analysis (Lukza et al., 2014), which contains a very similar form of the equations and discusses their application to influenza, should be acknowledged in the context of Equations 1 – 3.
2) A quantitative comparison of the results of this paper to Bedford et al., 2012, and to Rozhnova and Rouzine should be given, for example in a supplementary figure. Specifically:
a) The fraction N_inf/N and average selection coefficient \σ, which allow the mapping to traveling wave theory, should be compared with previous work.
b) Also, it remains important to quantify the behaviour of the number of competing strains in the phase diagram (Figure 3B, C) in some fashion (see previous comment 3). The authors map the line q=1. Their reply otherwise refers to Figure 5, but it is not clear to us to which numbers q this refers to in Figure 3 (e.g., where is the locus q=10). Figure 3B, C shows two quantities as formulas in white font which we are not sure to which lines they refer to; please clarify and give units and numbers for these quantities.
Reviewer #2:
Unfortunately, not tracking the history of individual patients, i.e., not classifying patients according to previous infecting strains, is not a biologically correct approach, even though it has been done by two groups. This is not how the immune system works. One must track the memory cells from, at least, last infection. Virus infecting an individual reacts to memory in that individual, and not in other individuals. The oversimplification changes the results substantially and cannot be relied upon. For example, the turnover rate of population should not be an important parameter of the model. The dependence of the speed on parameters changes as well. We cannot be sure about the rest.
To avoid huge phase space, the simplest meaningful approximation is to track the last infection of an individual, i.e., to introduce the recovered uninfected individuals density and classify then according to memory cells left from their last infecting strain. One can show that older infection are a small correction. Then, consider multiple dimensions (analytically or numerically does not matter) and demonstrate that onedimensional path arises automatically. After 1D path is assured, solve the 1D model analytically. Rouzine and Rozhnova did exactly that, in the case of the longrange immunity. Their multidimensional simulation is located in the end of Results and Supplementary Information. I also recommend to consult the previous numeric work of Bedford.
Therefore, I have to insist that the authors redo the work properly, with tracking the last memory of infection in individual. Otherwise, no numeric comparison is possible and cannot be in the future used for data comparison.
The original review follows for the authors' information:
The manuscript analyzes a model of the virus evolution in a host population due to accumulating immune memory in previously infected individuals. The authors use the SIR model by Gog et al., 2002, to map it to results of the traveling wave theory of evolution. If the crossimmunity between the virus and the memory is longrange, the authors demonstrate that the virus persists indefinitely. The state is a Red Queen process, a neverending chase between virus and immune system in the antigenic space. If the crossimmunity is shortrange, they find out that persistent infection is either unstable or splits into new states. An effective selection coefficient which makes the mapping to traveling wave possible is calculated.
The topic of the manuscript is important and the problem is challenging. The novel part of this work, compared to a recent paper on the same topic (below), is the comparison between longrange and shortrange crossimmunity, and predicting the existence of a phase diagram of various behaviors including instability and oscillations.
I have some questions regarding the choice of the initial model, the sensitivity of results to its assumptions, and the connection to the previous work, as follows:
Major comments:
1) The SIR model is not explained in the manuscript, not the original paper by Gog et a. My questions are as follows.
a) According to my understanding, a typical infection is a stochastic event. An individual exposed to virus is either infected, at the systemic level, or not. If the individual is infected, the virus reaches high loads, causes a strong immune response, leaves high numbers of memory cells, and can be transmitted with appreciable probability to another individual. If the exposed individual is not infected at the systemic level, none of these events takes place. The probability of each of the two outcomes, given the exposure dose, depends on the presence of memory cells left from the previous infections, and their genetic distance from the infecting strain. Is this the scenario that the authors had in mind?
b) The model in MS considers a population structured into recovered and infected individuals classified by genetic variants of memory cells and virus, respectively. Are these population groups mutually excluding. What is their sum, the total population?
c) Can the authors draw a multicompartment flow diagram of the model in supplement to show the processes they have included in the model?
d) An average adult person is infected by influenza virus more than once during lifetime. Indeed, between 4% and 20% individuals are infected annually. Therefore, all infections occur in previously infected (recovered) individuals. Yet, I do not see any infection of recovered individuals in model's equation. Who is infected then? This is especially confusing given that memory cells left from previous infections are the force that drives virus evolution.
f) What is the meaning of the exponential term in susceptibility S?
2) After Gog et al., 2002, Lin et al., 2003 have proposed an alternative, more transparent SIR model. Rouzine and Rozhnova, 2018 (RR) mapped that model to the traveling wave theory.
a) How does the change to Lin et al.'s version of SIR would affect the results on the stability of infection and the oscillatory states?
b) What is the difference with RR's results in the long range immunity case?
Additional comments:
3) In contrast to authors' statement, neither them nor RR's included the fluctuations of population size. If the authors implied that RR substituted the total population size instead of infected population to the traveling wave theory, they are mistaken: RR did the same rescaling.
4) The main difference between two models is in the choice of the initial SIR model (see above). RR considered the case of longrange crossimmunity only.
5) I would write the equations for the effective selection coefficient and for the rescaling of population size in separate lines, since they are important mapping formulas.
Reviewer #3:
The revised version has adequately addressed most of the comments, except the following:
I still think it would be relevant to quantify the behaviour of the number of competing strains in the phase diagram (Figure 3B, C) in some fashion (see previous comment 3). The authors map the line q=1. Their reply otherwise refers to Figure 5, but it is not clear to me to which numbers q this refers to in Figure 3 (e.g., where is the locus q=10). Figure 3B, C shows two quantities as formulas in white font which I am not sure to which lines they refer to; please clarify and give units and numbers for these quantities.
With this amendment, I think the paper is ready for publication.
https://doi.org/10.7554/eLife.44205.024Author response
Essential revisions:
The reviewers all agreed that the presented analyses were thorough and that the results were interesting. However, they also felt that several essential revisions were required:
1) The manuscript makes use of an existing statusbased SIR model when mapping epidemiological dynamics on to the traveling wave evolutionary model. This model, first, should be explained in greater detail and with more clarity in the manuscript text. Further, this multistrain model is one of two general types of multistrain models (the other being a historybased model formulation). Are the phase diagram results robust to other SIR model formulations, including historybased formulations and the model formulation by Lin et al., 2003? Previous relevant work (Ballesteros et al. PLOS One) indicates that this might not be the case.
We have provided more details in the derivation of susceptibility model (Equation 3) adding a discussion which connects it to “status” and “history” based models. Our approximation is based on a factorization of the probability of different immune histories of individual hosts, which directly relates to the approach of Kryazhimskiy et al., 2007, in enabling a drastic reduction of the state space relative to the original “status” and “history” models. This approximation retains the dependence of the susceptibility of the host population to the prior history of infections, without tracking infection histories of individuals. Our resulting model of susceptibility is analogous to that derived in Kryazhimskiy et al., 2007, and the one used, prior to that, by Gog and Grenfell, 2002. These connections are fully acknowledged in references. We have also added references to and comments on Lin et al. and Ballesteros et al. Ballesteros et al. present four different two strain models (history vs status, reduced infectivity vs reduced susceptibility) and compare simulation results for these models. Only one (the status based reduced infectivity model) shows recurrent waves of infection by the mutant strain at high levels of crossimmunity. However, the parameters for crossimmunity of these models cannot be compared quantitatively. The differences between the simulations are thus due to choices of values of parameters that are phenomenological in nature and don’t have a onetoone correspondence to reality. In the multistrain case, we expect all models to exhibit qualitatively similar dynamics with appropriately chosen parameters – especially after reducing the highdimensional history of status space to a linear number of variables, see Kryazhimsky et al.
2) Text should be added to refer to several previous analyses that focus on very similar questions. Of particular importance is incorporating (to a much greater extent, both in the Introduction and starting around Equation 6) text that relates to the results presented recently in Rouzine and Rozhnova, 2018, ensuring that the overlap and the differences between these two analyses is accurately described.
We now discuss the work by Rouzine and Rozhnova (R&R) at greater length. R&R map a multistrain model in a onedimensional antigenic landscape to a TW models of population genetics and the formulation of the model as well as the mapping to TW models is analogous to our approach. In contrast to R&R, our point of departure is a model in a high dimensional antigenic space and we use this model to show how the effectively onedimensional TW emerges rather than introducing this as model assumption. R&R use their model to infer parameters through explicit comparison to influenza diversity data, which we don’t attempt. Instead, we use this model to explore the processes of extinction and speciation which can’t be studied in oneantigenic dimension with constant population size examined in R&R.
Koelle et al., 2011, and Andreasen and Sasaki, 2006, also address similar questions about how certain epidemiological factors (population size, breadth of crossimmunity, etc.) affect whether and how quickly antigenic diversification will occur. The results presented here should be compared to those found earlier, even if these former approaches do not consider explicitly a traveling wave model.
We have added the two suggested references along with a brief description in the Discussion section.
Finally, the way in which the epidemiological dynamics are mapped to fitness and how crossimmunity is quantified is identical to the approach outlined in Luksza et al., 2014, and this paper therefore needs to be cited, most notably in the context of Equations 13 and 4.
We now explicitly refer to Luksza et al. in this context.
3) The mathematical conditions for the mapping onto fitness waves should be made more precise. This mapping is used throughout to describe the endemic regime. However, the traveling fitness wave formalism is derived under more specific assumptions, namely, the coexistence of many smalleffect mutations (which corresponds to large values of q). Some parts of the phase diagram clearly fall outside this regime. While it may still be permissible to extend the asymptotic formulae, this should be discussed. We suggest to mark the boundary of the manymutations regime, say, given by the condition U_b \gtrsim s, as a dotted line in the phase diagram.
We have added a paragraph (bottom of column 1 on p 6) discussing typical values of q in influenza populations and making explicit comment that flu evolution is not likely to be in the asymptotic regime of large q. Nevertheless, we and others before us (references in the text), find that qualitative features of the TW models extend to modest values of q (as seen through comparison with direct simulation). Instead of adding a dotted line to indicate crossover in the phase diagrams of Figure 3B, C we added a note in the caption explaining that boundary of the”extinction” regime corresponds to q ∼o(1). More detailed view of the range of q corresponding to the RQS state is provided by Figure 5. We have added a remark about the range of q to the discussion of Figure 5 in the text, noting that (asymptotic) region of large q can only be reached in the limit of longrange crossinhibition.
4) In the Discussion, it would be important to emphasize that the metastabilty of the endemic regime is a result of the specific assumptions of this model and to discuss potential biological effects that alter the phase diagram. In particular, much work has been devoted to discuss mechanisms that stabilize the TW regime, e.g. the ideas of shortterm broad crossimmunity (Ferguson et al., 2003) or random fitness components (Tria et al., 2005).
In a strict sense, the endemic regime is always metastable as explicitly shown in Figure 5 which shows that RQS always goes away eventually either through extinction or through speciation. We have added text to further explain the meaning of Figure 5 to the reader. However the dependence of the extinction rate on model parameters might change through the addition of different model components. Instead of the logarithmic dependence of extinction rate on population size, this dependence might become polynomial or exponential in models that dampen population size fluctuations more strongly. We have added a short paragraph emphasizing that long range immunity and other features that dampen oscillations (population turn over, geographic structure, etc.) will tend to stabilize the RQS state.
[Editors' note: further revisions were requested prior to acceptance.]
Response to query regarding additional revisions:
Thank you for giving us an opportunity to respond to the points that came up after rereview of our manuscript. We are glad to read the reviewer #3 considers our revisions satisfactory and we can readily address the remaining request for clarification.
However, in response to our revised manuscript reviewer #2 now requests that we redo the analysis using a model that explicitly keeps track of the infection histories of all individuals. Based on previous work by several authors and our current understanding of influenza epidemiology and immunology, we have argued in the manuscript that this level of detail is not necessary and that the essential aspects of the dynamics are captured by simpler models that instead of individual infection histories keep track of susceptibilities to different strains in the population. We stand by this argument.
While infection history of an individual is important for predicting her/his susceptibility to infection by a given strain, the effective rate of spreading of that strain depends on the average susceptibility of individuals. This averaging makes our “mean field”type approximation for populationwide susceptibility a natural first step. Let us restate here that there is a direct relation between the form of susceptibility that we use in the our work and the infection history description. It is easy to see that our expression for S given in Equation 3 is essentially exact in the limit of weak inhibition. The probability p_{a,i} of individuals to become infected by strain a can be expressed as p_{a,i} = ^{Π}_{b}(1 − αK_{ab}σ_{bi}) where binary σ_{bi} ∈ [0,1] denotes the infection history of individual i and α ≤ 1 sets the strength of inhibition (so that weak inhibition corresponds to α ≪ 1 is the crossimmunity kernel defined in the manuscript. Population wide susceptibility is the population average of p_{a,i} of all individuals i:
⟨" close="⟩" separators="">pa,i=⟨" close="⟩" separators="">∏b1αKabσbi=1α∑bKab⟨" close="⟩" separators="">σbi
+α22∑b∑c≠bKabKac⟨" close="⟩" separators="">σbiσci
(1)
The term hσ_{bi}i = R_{b} is the fraction of people recovered from strain b. Correlations ρ_{bc} between infections with strain b and c show up in the second order term hσ_{bi}σ_{ci}i = R_{b}R_{c} + ρ_{bc}. This simple derivation effectively captures the content of Kryazhimskiy et al., 2007, order1 independence closure which assumes ρ_{bc} = 0. We cite this work to make connection with prior work on the subject. In this case, we can simply exponentiate the expression to obtain our Equation 3, correct to order α^{2} (which is small for weak inhibition – we discuss the case of strong inhibition below):
Sa=⟨" close="⟩" separators="">pai=e∑bαKabRb (2)
We note that given this form of susceptibility and the homogeneity property of Equations 23 in the manuscript, parameter α can be eliminated by rescaling of R and I fractions, i.e. can be absorbed into effective host population size and does not explicitly appear in model analysis and simulation.
Several facts about influenza in human populations suggest that the weak inhibition approximation is a reasonable starting point for modeling population scale behavior.
 Seasonal flu epidemics involve a large number of strains, a particular strain infects only a small fraction of the population. Hence the R_{a} are small and correlation effects are of minor importance.
 Challenge studies have shown that protection through vaccination or infection with antigenically similar strains is moderate and a large fraction of challenged individuals still shed virus [Clements et al., 1986]. This possibility of homotypic reinfection shows that αK_{ab} are substantially smaller than 1, supporting our approximation of population wide susceptibility, as discussed above.
 Antibody responses are polyclonal and differ between individuals such that the crossimmunity matrix is stochastic at the level of individuals. This variation in the crossimmunity matrix further reduces correlations in infection history at the population level and justifies the mean field approach taken here.
 Correlation in infection history induced by immunity are further reduced by the variation in exposure history through geography and variation in contact networks.
Having provided the reasons why we think weakinhibition approximation is appropriate, we note that the utility of (3) as a model of susceptibility does not end there! To wit, this approximation correctly captures the crossinhibiting contribution of distant strains (on account of K_{ab} for those strains being much less than 1, so that quadratic terms in K can be neglected compared to linear ones). Hence, even in the case of strong immunity α ≈ 1, only correlation terms involving close strains could contribute. In the traveling wave description of continuous adaptation, most relevant effects involve the spreading of the newly emerging antigenic variants in the “nose” of the fitness distribution. While these strains are antigenically close they occur at low frequencies, so that R_{a} ≪ 1 and the correlations can again be neglected, the populationwide susceptibility to these strains is dominated by the effect of more distant strains (from further in the past).
Last but not least, expression (3) is an example of a “Mean Field Theory” type of approximations that replace the average of an exponential by an exponential of the average, neglecting correlation effects. This type of an approximation has an illustrious record of providing valuable insight into complex phenomena and are universally accepted in Physics: they are well recognized as the starting point for mathematical modeling.
In contrast, the proposal by reviewer #2 to simplify the problem by only tracking the last infection (that is dropping all terms in ^{Π}_{b}(1 − K_{ab}σ_{bi}) but the most recent one) is completely arbitrary and counterfactual. Fonville et al., 2014, have shown that immunity is maintained over decades and new infection results in a backboost rather than a reset of the immunity landscape. It is also problematic as it would artificially facilitate speciation: It would increase susceptibility to viruses from sister clades since infection with one virus “wipes out” immune memory induced by a common ancestor.
Other points raised by reviewer #2 include:
 population turnover rate:the population turnover rate γ is NOT an important parameter of the model (as the reviewer pointed out) – and we never claimed it is. In fact, we explicitly set it to zero and it doesn’t feature in any of our conclusions.
 one vs multidimensional trajectories:The reviewer suggests to “consider a multidimensional model […] and assure that a one dimensional path arises automatically. […] solve the 1D model analytically”. However, we show that a 1D path does not arise automatically and delineate conditions in which it does. Within these parameter ranges, we then investigate the model analytically as suggested by the reviewer. We are well aware of the work by Bedford et al., 2012, and Rouzine and Rozhnova, 2018. In Rouzine and Rozhnova, 2018, the 1D traveling wave is inherent in the model by either allowing for only one antigenic direction or imposing a preferred direction of antigenic escape (section 2.1 of the appendix of Rouzine and Rozhnova, 2018, – there seems to be inconsistent notation and a confusion of recovered and susceptible classes in the appendix).
 Fluctuations in population size:Our model explicitly accounts for fluctuations in the total number of infected individuals I_{tot}. We don’t understand how the reviewer got the impression that our model assumes a constant (viral) population size.
Independent of the details of the epidemiological model, our work makes novel and important contributions to our understanding of pathogen evolution and dynamics:
 We show how qualitative features of epidemiological and evolutionary dynamics of rapidly adapting pathogens depend on parameters in a generic model of evolution in a high dimensional antigenic and genetic space. We delineate parameter regimes corresponding to speciation/diversification, single strain persistence, and extinction after a pandemic in a unified frame work. All previous analysis of this problem were either restricted to low dimensional spaces, a few strains, or purely numerical in nature.
 We connect the population genetics of rapid adaptation and with multistrain models of pathogens in a population that builds up immunity and show how epidemiological oscillation couple to the evolutionary dynamics of the pathogens. Rouzine and Rozhnova, 2018, don’t account for this crucial interaction – they consider a time invariant traveling wave solution of constant size.
The editor and reviewers have again carefully studied the previously revised manuscript and the authors' response to previous criticism. We appreciate the value of simplified models; however, our previous comments we designed primarily towards making the simplifying assumptions explicit and to embed the epidemiological model better into the context of previous work on the subject, which we also discussed in the review consultation. Both issues are not yet adequately addressed in the current revision, and we regard the following points as essential for publication of this manuscript:
1) The assumptions underlying the epidemiological model, in particular with respect to the applicability to influenza, should be made explicit. It is not clear to us whether the model used here is indeed a generalization of previous models, as claimed.
Specific points:
a) Some justification should be given for the steps leading from a general multistrain immunity model to their Equations 1 – 3, e.g. along the lines of Rozhnova and Rouzine. For example, the authors could try to estimate, by the order of magnitude, the error of this approximation, at least, in a simple population configuration.
We have added an Appendix 1 that explains in detail how a model based on individual infection histories reduces approximately to our “meanfieldtheory” (MFT) type model of crossimmunity. We discuss the underlying assumptions in the light of known influenza immunology. Diversity of immune responses, nonperfect immune protection, and longlasting immunity with known backboost effects all suggest that the entire infection history is important at the level of individuals, but that population level dynamics is well described by a factorized distribution of histories. Following the suggestion of the decision letter, we evaluate the accuracy of our approximation (in Figure 8) for a specific “simple population configuration”, adopting for this purpose the scenario of periodic reinfection of individuals specifically considered by Rozhnova and Rouzine (R&R), which allows us to explicitly compare with the approximation used in their paper. In this R&R scenario, infection histories of individuals contain strong temporal correlations so that it may be expected to be a tough case for the MFT approximation (which neglects correlations in evaluating population averages). Nevertheless, we show (in Figure 8) that our approximation to the population averaged susceptibility is quite accurate in the relevant parameter regime. In particular, it is more accurate than the “most recent” approximation advocated for by one of the reviewers and used by Rouzine and Rozhnova.
b) Equation 3 should be linked to the underlying dynamical model.
Equation 3 is linked to the dynamical model by simple differentiation, which reproduces the corresponding equation in Gog and Grenfell, 2002 (in the limit of slow population turnover). This is now made explicit in Equation 4.
c) We also note again that the first application of this model to influenza data analysis (Lukza et al., 2014), which contains a very similar form of the equations and discusses their application to influenza, should be acknowledged in the context of Equations 1 – 3.
In response to the previous decision, we had included a reference to Lukzsa and Lassig, 2014, in the context of the crossimmunity function (prev Equation 4 as had been requested). The basic model defined in Equations 13 was introduced specifically in the context of influenza by Gog and Grenfell, 2002 and L&L refer to Gog and Grenfell for the definition of their model. We now explicitly point out that L&L used this model for influenza as well.
2) A quantitative comparison of the results of this paper to Bedford et al., 2012, and to Rozhnova and Rouzine should be given, for example in a supplementary figure. Specifically: a) The fraction N_inf/N and average selection coefficient \σ, which allow the mapping to traveling wave theory, should be compared with previous work.
We have added a discussion of the infected fraction predicted by our model. The values predicted by our model are compatible with observation and up to logarithmic factors agree with predictions by Rouzine and Rozhnova. Similar results hold for the average selection coefficient s (called σ in R&R), where we predict the same qualitative dependence on parameters. The main difference (we predict a weaker dependence on R_{0}) can be traced to the “mostrecent” approximation to the immunity history made by R&R. We show (see above) that our approximation is more accurate. We also discuss the results of Bedford et al., 2012m who studied dependence of genetic diversity and the tendency to speciate in large scale agent based simulations. Their observations are consistent with our analytic results.
We would like to stress, however, that the primary contribution of our work is notin an recapitulation of specific parameters of seasonal influenza virus, but in elucidating general properties of the coupling of evolutionary and epidemiological dynamics.
b) Also, it remains important to quantify the behaviour of the number of competing strains in the phase diagram (Figure 3B, C) in some fashion (see previous comment 3). The authors map the line q=1. Their reply otherwise refers to Figure 5, but it is not clear to us to which numbers q this refers to in Figure 3 (e.g., where is the locus q=10). Figure 3B, C shows two quantities as formulas in white font which we are not sure to which lines they refer to; please clarify and give units and numbers for these quantities.
We agree that our previous presentation on how q is related to the phase diagram was not optimal. We have now expanded our explanation of the regime boundaries in the phase diagram of Figure 3 specifically discussion the nature of the “critical” values of q (associated with these boundaries) and stressing how the transitions to extinction and speciation regimes depend on the time scale of observation. To this effect, we have added a subsection “Red Queen State is transient” (just before the Discussion section) and another figure (Figure 7) that explicitly shows the regimes of extinction and speciation in the plane of q and the observation time scale. We have also edited Figure 3B, C to clarify the labelling of the regime boundaries.
https://doi.org/10.7554/eLife.44205.025Article and author information
Author details
Funding
Simons Foundation (326844)
 Boris I Shraiman
The funders had no role in study design, data collection and interpretation, or the decision to submit the work for publication.
Senior Editor
 Patricia J Wittkopp, University of Michigan, United States
Reviewing Editor
 Katia Koelle, Emory University, United States
Publication history
 Received: December 7, 2018
 Accepted: September 14, 2019
 Accepted Manuscript published: September 18, 2019 (version 1)
 Version of Record published: October 23, 2019 (version 2)
Copyright
© 2019, Yan et al.
This article is distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use and redistribution provided that the original author and source are credited.
Metrics

 1,619
 Page views

 264
 Downloads

 5
 Citations
Article citation count generated by polling the highest count across the following sources: Crossref, PubMed Central, Scopus.