Abstract
Microbial populations generally evolve in volatile environments, under conditions fluctuating between harsh and mild, e.g. as the result of sudden changes in toxin concentration or nutrient abundance. Environmental variability (EV) thus shapes the long-time population dynamics, notably by influencing the ability of different strains of microorganisms to coexist. Inspired by the evolution of antimicrobial resistance, we study the dynamics of a community consisting of two competing strains subject to twofold EV. The level of toxin varies in time, favouring the growth of one strain under low drug concentration and the other strain when the toxin level is high. We also model time-changing resource abundance by a randomly switching carrying capacity that drives the fluctuating size of the community. While one strain dominates in a static environment, we show that species coexistence is possible in the presence of EV. By computational and analytical means, we determine the environmental conditions under which long-lived coexistence is possible and when it is almost certain. Notably, we study the circumstances under which environmental and demographic fluctuations promote, or hinder, the strains coexistence. We also determine how the make-up of the coexistence phase and the average abundance of each strain depend on the EV.
Export citation and abstract BibTeX RIS
Original content from this work may be used under the terms of the Creative Commons Attribution 4.0 license. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
1. Introduction
Microbial communities evolve in volatile environments that often fluctuate between mild and harsh conditions. For instance, the concentration of toxin and the abundance of nutrients in a community can suddenly and radically change [1–4]. This results in environmental variability (EV) that shapes the population evolution [5–13]. In particular, EV greatly influences the ability of species to coexist [14–19], which is a characteristic of key importance in biology and ecology, with direct applications in subjects of great societal concern [20–25] like the maintenance of biodiversity in ecosystems [26–34] and the evolution of antimicrobial resistance (AMR) [35–40].
In the absence of detailed knowledge about the time-variation of external factors, EV is generally modelled by means of noise terms affecting the species growth and/or death rates [26, 41–66]. Demographic noise (DN) is another important source of fluctuations: it can lead to fixation, which is the phenomenon arising when one strain takes over the entire community. The effect of DN is significant in communities of small size, and becomes negligible in large populations [41, 42, 67–69]. Significantly, the time development of the size and composition of populations are often interdependent [70–78], with fluctuations of the population size modulating the strength of DN [57, 61–63, 65, 66, 79]. The interplay between EV and DN is crucial in shaping microbial communities, but the quantitative effects of their coupling are as yet still mostly unknown.
Environmental and demographic fluctuations play a crucial role in the evolution of AMR [13, 38, 40, 60, 64]. When treatments reduce a microbial community to a very small size, but fail to eradicate the microorganisms resistant to the drugs, resistant cells may replicate and restore infection, hence possibly leading to the spread of antibiotic resistance. Moreover, within a small population, demographic fluctuations may also lead to the extinction of resistant cells. Understanding how the coexistence of cells resistant and sensitive to antibiotics is affected by the joint effect of EV and demographic fluctuations, and how the fraction of resistant cells varies with environmental conditions with the possibility of eradication, are thus central questions in the effort to understand the evolution of AMR [13, 36, 38, 40, 79].
It is worth noting that considerable efforts have recently been dedicated to study the mechanisms underpinning the coexistence of competing species under various scenarios, see e.g. [31, 32, 34, 65]. The influence of different kinds of variability (e.g. quenched disorder, heterogeneous rates, 'spillover protection') on species coexistence in ecosystems exhibiting cyclic dominance [59, 80] has notably been investigated in [47, 81–85]. Here, inspired by the AMR evolution in a chemostat setup [19, 65], we study the eco-evolutionary dynamics of an idealised microbial community consisting of two competing strains subject to a time-varying level of toxin, with the growth of one strain favoured under low toxin level and a selective advantage to the other strain under high toxin level. We also assume that the resource abundance varies according to a time-switching carrying capacity that drives the fluctuating size of the community. In most of previous works, EV is either encoded in fluctuating growth rates, with the size or carrying capacity of the population kept constant [26, 41–45, 47–51, 53–56, 58, 60, 64, 86], or EV is modelled by a time-varying carrying capacity that affects the species death rates and drives the population size [57, 61–63, 66] (see also [65]). The distinctive feature of this study is therefore the twofold EV accounting for fluctuations stemming from the variation of the toxin level and the switches of the carrying capacity resulting in the coupling of DN and EV; see figure 1.
As main results, we obtain the fixation-coexistence diagrams of the system, and these allow us to determine the environmental conditions under which long-lived coexistence of the strains is possible or certain, and when one strain dominates the other. We also analyse the make-up of the population when the strains coexist, and their average abundance.
The organisation of the paper is as follows: the model is introduced in section 2. Section 3 is dedicated to the study of the case with a constant carrying capacity (subject to a static or varying toxin level) by means of a mean-field (MF) analysis and a mapping onto a suitable Moran process. The twofold influence of time-varying fitness and carrying capacity on the coexistence and fixation of the species is analysed in section 4. Section 5 is dedicated to the influence of the EV on the make-up of the coexistence phase and strains abundance. We present our conclusions in section 6. Additional technical details are given in the supplementary material (SM) [87].
2. Model
We consider a well-mixed population of fluctuating size which, at time , consists of bacteria of strain and of type , which compete for the same resources. The former refers to a strain that pays a metabolic cost to be resistant to a certain toxin, and the latter to microorganisms sensitive to that toxin. Based on mounting evidence showing that microbial communities generally evolve in volatile environments [5, 6, 9, 12, 25], we study the eco-evolutionary dynamics of this population under twofold EV: external conditions fluctuate between harsh and mild, and affect the level of toxin and resources that are available in the population; see figure 1.
For concreteness, we assume that the toxin is biostatic and reduces the growth rate of the sensitive strain, but does not affect the resistant bacteria [88–90]. 2 In this setting, resistant bacteria have a constant fitness , whereas the sensitive bacteria have an environment-dependent fitness , where is a time-varying environmental random variable encoding the toxin level: for the low toxin level and for the high toxin level. As in previous studies [29, 30, 92–94], we here consider
where denotes the selection bias favouring the strain when , and strain when . The parameter therefore encodes both the selection and strength of the environmental variability associated with the changes in toxin level (T-EV). As in many recent theoretical studies [56, 57, 61–63, 65, 92, 95], T-EV is here modelled by coloured dichotomous Markov noise (DMN) [96–98], so that ; see below. DMN is an important example of bounded noise [56, 61–63, 65, 95–98], with finite correlation time, which allows us to efficiently model suddenly changing conditions occurring in bacterial life [8, 19, 71, 72, 86], like the environmental stress resulting from exposure to antibiotics [10, 11, 75]. In this context, DMN, that is easy to simulate accurately and whose relationships with more complex forms of noise have been studied (see section SM4 in [87] and [66, 96, 97]), provides us with mathematically-amenable models that can be regarded as the theoretical counterparts of commonly-used laboratory experimental chemostat set-ups [8, 11, 13, 19].
The environmental effect on the level of nutrients (K-EV), fluctuating between scarcity and abundance, is modelled by a binary switching carrying capacity that is driven by the binary random variable (also following a DMN process) . The state thus corresponds to a harsh state with scare resources, where the carrying capacity is , whereas nutrients are abundant in the mild state where the carrying capacity is . As in [57, 61–63, 65, 66], this is encoded in the time-switching carrying capacity
which, with and , can conveniently be written as
This randomly switching carrying capacity drives the population size and is hence responsible for its fluctuations, with ensuring that the population dynamics is never solely dominated by demographic fluctuations. It is worth noting the choice of as a DMN ensures that the carrying capacity is always bounded and physical, i.e. and , which is not the case if EV is modelled by unbounded (e.g. Gaussian) noise, see section SM4 in [87].
The population thus evolves under twofold EV encoded in the environmental states , see figure 1, subject to time switching according to the reactions
where are the switching rates of the -DMN, with indicating the relevant environmental noise. It is also useful to define the average switching rate and switching bias for each -DMN as
such that . This means that corresponds to a bias towards low toxin level (mild T state, ) favouring the strain, whereas indicates a bias towards high toxin level (harsh T state, ) where the growth of is hampered and the spread of is favoured, see figure 1. Similarly, corresponds to bias towards the environmental state rich in nutrients (where ), while is associated with a bias towards an environment where nutrients are scarce (). In all cases, we consider -DMN at stationarity, where with probability , yielding the average and autocovariance (autocorrelation up to a constant) , where denotes the -DMN ensemble average. We notice that the correlation time of the -DMN, , is half of the inverse of the average switching rate of [96–98]. From equation (1), we find that the average carrying capacity is and the variance of is , with the amplitude of K-EV thus scaling as , while the variance and amplitude of the T-EV increase with ; see section SM2 in [87].
For concreteness, we here assume that and are totally uncorrelated. In our motivating example, this corresponds to the reasonable assumption that nutrient and antibiotic uptake are independent processes. The case where and are fully correlated or fully anti-correlated, with or , where is a single DMN process, is briefly discussed in section SM8 of [87].
The system considered here best translates to a chemostat setup whereby toxin and nutrient levels can be maintained at a constant level through time and switched via changing concentrations of medium coming into the system [19, 65]. The switch with can thus be envisioned as corresponding to switching the concentration of an antibiotic drug from above the minimum inhibitory concentration (MIC), where the growth of the sensitive strain is hampered, to a concentration below the MIC where the strain can spread at the expense of [36, 38, 64].
At time the fraction of -types in the system is and the average population fitness is , which depends on the population composition and the toxin state ,. We assume that mutation rates between strains are negligible, and seek to characterise the population dynamics by the evolution of its size and composition according to the multivariate birth–death process [99–101]
where the time-dependent birth and death transition rates are respectively
The per-capita birth rates (where we normalise with in line with the standard Moran process [41, 67–69, 102]) thus vary with the toxin level and population composition, while the logistic-like per-capita death rate varies with nutrient level and population size. With , the master equation giving the probability for the population to consist of and bacteria of type and , respectively, in the environmental state at time is
where are shift operators such that , and when . We note that whenever or , and the last two lines on the right-hand-side of equation (4) account for the random environmental switching of toxin () and carrying capacity (). The dynamics encoded by the multivariate master equation (4) can be simulated exactly by a stochastic algorithm as explained in [103, 104], see Sec. SM4 in [87]. Since whenever , there is extinction of and fixation of (), or fixation of and extinction of (). When one strain fixates and replaces the other, the population composition no longer changes while its size continues to fluctuate 3 . Fixation of one strain and extinction of the other is expected when strains compete for the same resources (competitive exclusion principle), and always occur in a finite population even when its size fluctuates [57, 61, 63]. In stark contrast, here we show that environmental fluctuations can lead to the long-lived coexistence of competing species and nontrivially shape the abundance distribution of both strains.
The notation and definitions of the model parameters and physical quantities of interest are conveniently summarised in the table of section SM1 in [87].
3. Constant carrying capacity: mean-field analysis and Moran process
Since and are independent, it is useful to first consider the case of a constant carrying capacity, with EV stemming only from the fluctuations of the toxin level in the birth rates of equation (3).
In this section, we thus assume that the carrying capacity is constant and large: . After a short transient the population size fluctuates about , with . When , we can approximate the population size by and make analytical progress by using the well-known results of the Moran process [41, 67–69, 102]. In this approximation, the population is kept constant, which requires the simultaneous birth and death of individuals of either species, and the population evolves according to a fitness-dependent Moran process [57, 61–63], defined in terms of equations (2) and (3) by the reactions
corresponding, respectively, to the simultaneous birth of an and death of an with rate , and death of an and birth of an with rate , where
3.1. Mean-field analysis
We now consider the case where , and thus ignore demographic fluctuations. In this case, the population composition evolves according to the MF equation [99]:
where the dot denotes the time derivative. It is important to notice that, owing to environmental noise , equation (7) is a MF stochastic differential equation that defines a so-called 'piecewise deterministic Markov process' (PDMP) [56, 57, 61, 63, 106]. According to this PDMP, after a switch to an environmental state , evolves deterministically with equation (7) and a fixed value of , until a switch occurs, see section 5.1.
We consider equation (7) in the regimes of (i) low, (ii) high, and (iii) intermediate switching rate :
(i) Under low switching rate, , the population settles in its final state without experiencing any T-switches. In this regime, the population reaches its final state in its initial toxin level , i.e. with probability . In this regime, equation (7) thus boils down to
Since , with a probability we have and ( vanishes), while with a probability we have and ( vanishes). In either case, the MF dynamics are characterised by the dominance of one of the strains. Therefore, in the absence of demographic fluctuations, there is never long-lived coexistence of the strains and under low switching rate of the toxin level.
(ii) Under high switching rate, , the population experiences a large number of T-switches before relaxing into its final state; see below. In this case the T-DN self-averages [29, 53, 57, 61, 63, 66] and we are left with a Moran process defined by the effective rates obtained by averaging over its stationary distribution, yielding
When , the MF rate equation associated with this effective Moran process thus reads [68, 99, 100]:
where the right-hand-side (RHS) can be interpreted as the RHS of equation (7) averaged over . In addition to the trivial fixed points , equation (9) admits a coexistence equilibrium
when . This equilibrium stems from the T-DMN and thus is a fluctuation-induced coexistence point. In the case of large we have that , and exists () for all values of . Since is always negative, linear stability analysis reveals that is the sole asymptotically stable equilibrium of equation (9) when it exists ( are thus unstable). When , , and exists only for . This means that for , coexistence is essentially possible only under symmetric switching (), see section SM2 in [87]. In what follows, we focus on the less restrictive case , for which coexistence is possible for a broad range of parameters .
(iii) In the regime of intermediate switching rate, where , the population experiences a finite number of T-switches prior to settling in its final state. Depending on this number, as well as the selection strength and the population size, the dynamics may be closer to either the low or high regime, with dominance or coexistence possible but, in general, not certain; see figure 3 below.
3.2. Finite populations—fixation and long-lived coexistence
From the MF analysis, we have found that when species coexistence is feasible under fast T-EV switching, whereas only or dominance occurs under slow switching. We now study how these results nontrivially morph when the population is fixed and finite.
Since the model is defined as a finite Markov chain with absorbing boundaries, see equations (5) and (6), its final state unavoidably corresponds to the fixation of one strain and the extinction of the other, i.e. the population eventually ends up in either the state or [41, 68, 101, 102]. This means that, strictly, the finite population does not admit stable coexistence: when it exists, is metastable [107–109]. In fact, while it is guaranteed that eventually only one of the strains will finally survive, fixation can occur after a very long time and can follow a long-term coexistence of the strains, as suggested by the MF analysis of the regime with . It is thus relevant to study under which circumstances there is long-lived coexistence of the strains.
The evolutionary dynamics is characterised by the fixation probability of the strain , here denoted by . This is the probability that a population, consisting initially of a fraction of bacteria, is eventually taken over by the strain .
A related quantity is the unconditional mean fixation time (MFT), here denoted by , which is the average time for the fixation of either species to occur.
In what follows, we study how the fixation probability and the MFT vary with the average switching rate of the T-EV for different values of , , and (treated as parameters), and determine when there is long-lived coexistence of the strains.
In the limits , we can use the well-known properties of the Moran model [41, 69, 102] to obtain and from their Moran approximation (MA) counterparts, denoted by and , which are respectively the fixation probability and MFT in the associated Moran process for a population of constant size ; see section SM3 in [87].
For a given initial resistant fraction 4 , the fixation probability in the slow-switching regime, is obtained by averaging , denoting the fixation probability in the realm of the MA in static environment , over the stationary distribution of [57, 61, 63, 66]:
When and the strain is always favoured and , whereas is favoured when and in this case . Since with probability , this coincides with the fixation probability: . The probability that fixates when is thus
In the fast-switching regime the fixation probability is that of the Moran process defined by the effective rates in equation (8). Using equation (8) with , we thus find [41, 102]:
see section SM3.A in [87]. A similar analysis can also be carried out for , see section SM3.B in [87]. Results reported in figure 2 show that equations (11) and (12) accurately capture the behaviour of in the limiting regimes , see figure 2(a). Figure 2(b) shows that the predictions for when , are also in good agreement with simulation results, with a much larger MFT under high than under low switching rate (at fixed ). In figure 2(b), the MFT when for is significantly larger than under . This stems from being the attractor of equation (9) when , but not being an equilibrium when or . Figures 2(a) and (b) also illustrate the excellent agreement between the predictions of the MA with and those obtained from stochastic simulations with constant. Note that typical error bars are shown for in figure 2(b). These are found to be small and almost coincide with the markers. For the sake of readability, we have thus omitted similar error bars from the other panels and figures.
Download figure:
Standard image High-resolution imageThe MF analysis and results of figure 2 suggest that under sufficiently high switching rate there is long-lived coexistence of the strains. We can rationalise this picture by noting that in the regime of dominance of one strain the MFT scales sublinearly with the population size , while the MFT grows superlinearly (exponentially when , see figure 2(c)) in the regime of long-lived coexistence [82, 102, 110, 111]. The dominance and long-lived coexistence scenarios are separated by a regime where the MFT scales with the population size, i.e. , where the dynamics is governed by random fluctuations. This leads us to consider that long-lived coexistence of the and strains arises whenever the MFT exceeds , i.e. when , where is the mean population size at (quasi-)stationarity; see below 5 . This is illustrated in the provided videos of [112] commented in section SM7 of [87]. When, as in this section, or fluctuates about the constant carrying capacity (), we simply have . The criterion thus prescribes that long-lived coexistence occurs when the MFT scales superlinearly with and hence exceeds the double of the average population size, .
The conditions under which the long-lived coexistence criterion, , is satisfied can be estimated by noting that, from the MF analysis, we expect coexistence to occur when self-averages under sufficiently high switching rate . Since the average number of T-switches by scales as , self-averaging occurs when . We thus consider that there is fast T-EV switching when , while corresponds to the slow T-EV regime. To ensure long-lived coexistence, the necessary condition is supplemented by the requirement that . This ensures enough EV and a regime of coexistence where the MFT is generally (where is some positive constant) when [41, 42, 102, 108–110, 113] guaranteeing .
Hence, the expected conditions for long-lived coexistence are (fast T-switching) and (enough EV), which are satisfied in the examples considered here when or greater, and .
We have studied the influence of T-EV on the fixation and coexistence properties of the model with constant carrying capacity and selection strength by running a large number of computer simulations up to a time across the parameter space. When just after both species are present, the run for is characterised by long-lived coexistence which is RGB coded . There is no long-lived coexistence for the run if one of the species fixates by : either the strain , which is RGB coded , or the strain , which is coded by . This procedure is repeated for 103 realisations for different and, after sample averaging, yields the RGB-diagram of figures 3(a)–(c); see section SM4 in [87]. In greyscale, the RGB coding translates into red grey, blue charcoal, and green light grey. In what follows, the crossover regimes are coded in magenta and faint green with dark grey and faint light grey as their respective greyscale counterparts, see below.
It is also useful to study the effect of the T-EV in the realm of the MA by means of numerically exact results. For this, with the transition rates equation (6), we notice that when is constant and there are initially cells of type , the -strain fixation probability, , in the environmental state satisfies the first-step analysis equation [53, 99, 101]
subject to the boundary conditions and . The MFT in the environmental state , , satisfies a similar equation:
with boundary conditions . Equations (13) and (14) are thus solved numerically, and the fixation probability and MFT are obtained after averaging over the stationary distribution of , yielding
In our examples, we always consider , and henceforth write for the -fixation probability and for the MFT in the realm of the MA. For each triple , we numerically solved equation (14) and, in the region of the the parameter space where , there is long-lived coexistence, which is coded by in the RGB-diagram of figures 3(d)–(f). When , there is dominance of one of the species, characterised by the fixation probabilities and of and , respectively, obtained from equation (13) and coded by in figures 3(d)–(f).
Download figure:
Standard image High-resolution imageExact numerical results for the MA with in figures 3(d)–(f) are in excellent agreement with those of simulations obtained for in figures 3(a)–(c). In line with the MF analysis, we find that long-lived coexistence, occurs for T-EV of sufficiently large magnitude, i.e. or higher, and under high enough switching rate, i.e. or higher, shown as green (light grey) areas in figure 3. The region of coexistence separates regimes dominated by either species, especially at high when where while when . In figure 3, the boundaries between the regimes of dominance, coded in blue (charcoal) / red (grey), and coexistence, areas in green (light grey)), are interspersed by crossover regimes where both species are likely to fixate (magenta (dark grey) in figure 3), or coexist with probability between 0 and 1 (faint green (faint light grey) in figure 3), as coded in figure 3(g).
4. Twofold environmental variability: coexistence and fixation under time-varying fitness and switching carrying capacity
We have seen that under a constant carrying capacity, long-lived coexistence of the strains is feasible when and are of order 1 or higher (enough T-EV and fast T-switching). We now study how this picture morphs when, in addition to the time-variation of and , the carrying capacity switches according to equation (1) and drives the fluctuating population size . EV is thus twofold, and the population evolves under the joint effect of T-EV and K-EV.
We consider with , and in the first instance assume that is always sufficiently large to allow us to neglect the DN, yielding [57, 61–63, 66, 99, 106]
where is independent of and affected only by K-EV via in equation (1), while the evolution of in equation (16b) is impacted by , , and via and ). The population composition is hence coupled to the evolution of the population size (eco-evolutionary dynamics), while the statistics of , like its average, denoted by , are obtained by ensemble averaging over . The stochastic logistic differential equation equation (16a) defines an -PDMP whose properties allow us to characterise the distribution of [56, 57, 61, 106].
As discussed in [57, 61–63], the (marginal) stationary probability density function (PDF) of the -PDMP equation (16a), while ignoring DN, provides a useful approximation of the actual quasi-stationary population size distribution (QPSD). Here, the stationary PDF is [57, 61–63, 96–98]
of support , with the normalisation constant ensuring that .
4.1. N-PDMP approximation
The PDF captures well the main effects of the K-EV on the QPSD, which is bimodal under low and becomes unimodal when , see figure 4. In the realm of the -PDMP approximation, aptly reproduces the location of the QPSD peaks and the transition from a bimodal to unimodal distribution as increases: The distribution is sharply peaked around when (with probability ), flattens when , and then sharpens about when . Since ignores DN, it cannot capture the width of the QPSD about the peaks, but it provides an accurate description of the mean population size, see figure 4, that is well approximated by
with when and when [57, 61–63], as shown in figure 4.
Download figure:
Standard image High-resolution imageThe PDF is particularly useful to obtain the fixation/coexistence diagrams under the effects of both T-EV and K-EV. Theoretical/numerical predictions of the fixation and coexistence probabilities can indeed be derived in the vein of [57, 61–63, 66] by focusing on situations where coexistence occurs when and relax on similar timescales. Long-lived coexistence of the strains thus arises when , with fixation typically occurring after has settled in the QPSD, see section SM7 in [87] and videos in [112]. Hence, for the analytical description of the fixation/coexistence diagrams, the fixation probability (with ) can be suitably approximated by averaging over as follows:
where is obtained from solving the corresponding equation (13) for the fixation probability of the associated Moran process, as seen in section 3.2.
We can use the PDF and the results for the MFT , obtained from solving equation (14), to determine the probability of coexistence in the realm of the -PDMP approximation. For this, we first solve equation (14) for , where is given by equation (18). Since is an increasing function of , see figure 2(c), we have for all , which is the long-lived coexistence condition. Within the -PDMP approximation, the lowest possible value of is (since ). We then determine the probability that this condition is satisfied by integrating over :
where depends on both T-EV and K-EV (via ), while the integrand depends only on K-EV. Clearly, when . Hence, long-lived coexistence is almost certain when , i.e. whenever the mean-fixation time of the population of fixed size exceeds . Based on the results of section 3.2, increases with and , and thus for sufficiently large and (but not too large ), we expect and .
4.2. Fixation/coexistence diagrams under T-EV and K-EV
The fixation/coexistence diagrams under joint effect of T-EV and K-EV are obtained as in section 3.2, with the difference that long-lived coexistence arises when , a condition that depends on , see figure 2(c). In our simulations, we considered different values of (letting for simplicity), and ran simulations until . Each run in which both species still coexist just after are RGB (greyscale) coded , whereas those in which or fixates by are respectively RGB (greyscale) coded or . The RGB (greyscale) fixation/coexistence diagrams of figures 5(a)–(c) are obtained after sample-averaging the outcome of this procedure, repeated 103 times for each pair and different values of .
Download figure:
Standard image High-resolution imageTheoretical RGB (greyscale) diagrams are obtained from the -PDMP based approximation built on equations (19) and (20): for a given , we allocate the RGB (greyscale) value obtained for each pair of the diagram, see figures 5(d)–(f). This triple corresponds to the probability of having, by , either no long-lived coexistence (with probability ) and fixation of or (with respective probabilities and ), or long-lived coexistence (with probability ). In practice, equations (19) and (20) have been used for relatively small systems whereas an equivalent, but more efficient, method was used for large systems, see section SM4 in [87].
The comparison of the top and bottom rows of figure 5 shows that the theoretical RGB (greyscale) diagrams quantitatively reproduce the features of those obtained from simulations. In general, we find that coexistence regions are brighter in diagrams obtained from -PDMP based approximation than in those stemming from simulations. This difference stems from former ignoring demographic fluctuations which slightly broaden the crossover (magenta (dark grey) and faint green (faint light grey)) regimes in the latter.
The regions of figure 5 where are characterised by dominance of one of the strains, and essentially reduces to the model studied in [57, 61, 63], and we can therefore focus on characterising the coexistence phase.
When is large, under sufficient EV ( , in figure 5), the joint effect of T-EV and K-EV on the phase of long-lived coexistence in the RGB (greyscale) diagrams of figure 5 can be summarised as follows: (i) when , a (bright green) region where and coexistence is almost certain is surrounded by a faint green (faint light grey) 'outer shell' where coexistence is possible but not certain (), see figures 5(a) and (d); (ii) at low, but non-vanishingly small, values of , the outer-shell where fades, and there is essentially only a bright green (bright light grey) region of coexistence where , see figures 5(b) and (e); (iii) when , the coexistence region corresponds essentially to (bright green / bright light grey) and is broader than under low , figures 5(c) and (f). In all scenarios (i)–(iii), increases with (for not too large ) and hence all the green (bright and faint light grey) coexistence phases in figure 5) become brighter as is raised and .
These different scenarios can be explained by the dependence of the QPSD on , well captured by the PDF equation (17). In regime (i) where , the QPSD and are bimodal, with probability , and any K-switches by are unlikely, yielding the faint green (faint light grey) outer shell of figures 5(a) and (d) corresponding to long-lived coexistence arising only when , with a probability . In regime (ii), where , the QPSD and are still bimodal but some K-switches occur by , resulting in long-lived coexistence arising almost only when is high enough to ensure when . In regime (iii), where the QPSD and are unimodal with average , which results in a long-lived coexistence region where that is broader than in (i) and (ii), figures 5(c) and (f). The size of the coexistence region in regime (iii) actually depends nontrivially on , as revealed by the modal value of the PDF equation (17) when , which reads
with . We notice that is an increasing function of when , and it decreases if (remaining constant when ). As a consequence, the long-lived coexistence region under high K switching rate grows with when , as in figures 5(c) and (f), and, when , shrinks as is increased, see section SM6 figure (S3) in [87].
4.3. Influence of the K-EV amplitude on coexistence
We have seen that increasing the selection bias , raises the amplitude of the T-EV and facilitates the emergence of long-lived coexistence. Here, by keeping constant, we investigate the influence of the parameter , which controls the amplitude of K-EV, on the fixation/coexistence diagrams. When and , there is K-EV of large amplitude, with the population subject to a harsh population bottleneck () accompanied by strong demographic fluctuations. The latter facilitate fixation of either strain and counter the effect of T-EV that drives the community to coexistence. Results of figure 6 illustrate the influence of under low and high K-switching rate ():
- Under low , the probability of long-lived coexistence decreases together with the value of when is increased (all other parameters being kept fixed). As a consequence, the bright green (bright light grey) region in figure 6(a) where long-lived coexistence is almost certain ( ) shrinks with and is gradually replaced by a faint green (faint light grey) area where coexistence occurs with a lower probability (), see figures 6(b) and (c).
- Under high , we have and the effect of is encoded in the expression of . When , and decrease with , and as a result the bright green (bright light grey) region in figure 6(d) shrinks and is eventually replaced by a smaller faint green (faint light grey) region where coexistence is possible but not certain (), see figures 6(e) and (f). When , there is a bias towards and increases with until and then decreases, with , when . This results in a non-monotonic dependence of the coexistence region where : under and , the long-lived (bright-green) coexistence region grows with up to and shrinks when .
Download figure:
Standard image High-resolution imageWe have thus found that the environmental fluctuations have opposite effects on the species coexistence: increasing the amplitude of T-EV (by raising ) prolongs the coexistence of the strains and expands the coexistence region, but raising the amplitude of K-EV (by raising ) can significantly reduce the probability of long-lived coexistence for all values of .
5. Make-up of the coexistence phase and strains average abundance
Having characterised in detail the conditions under which long-lived coexistence and fixation occur, we now study the make-up of the coexistence phase and then use this result to determine the stationary average abundance of each strain.
5.1. Coexistence phase make-up
We are interested in the characteristic fraction of the resistant strain in the coexistence phase, here defined as . This is the fraction of expected, given that we have coexistence at . According to the MF theory, the fraction of the strain in the coexistence phase is given by the expression equation (10) of . It turns out that deep into the coexistence region whereby and is sufficiently high, there is good agreement between theory and simulations, see figures 7(a) and (b). In addition, even when , the MF prediction remains remarkably close to the value of fraction of measured in the coexistence state obtained in simulations, with small deviations arising as approaches 0. We notice that the characteristic fraction of , for given , is almost independent of .
Download figure:
Standard image High-resolution imageWe can also predict the fraction of regardless of coexistence or fixation, here denoted by . The quantity thus characterises the fraction of in the coexistence, fixation, and crossover regime where both coexistence and fixation are possible, with respective probabilities and , but neither is certain. Making use of equations (10), (19) and (20) we thus define as
This captures well the dependence of on and reduces to the fraction of in the coexistence phase, , when and long-lived coexistence is almost certain (see SM5, figure S2). As shown in section SM5 of [87], a closed-form alternative to is provided by the modal value of the stationary PDF of the PDMP defined by equation (7), which, while less accurate than , matches qualitatively well to simulations.
5.2. Strain average abundance
In this section, we study the (quasi-)stationary average abundance of the strains and , respectively denoted by and . Since , and is well described by equation (18), see figure 4, we only need to focus on studying .
In fact, while the evolution of N is governed by K-EV and is well-captured by the stochastic logistic equation (16a) and the corresponding -PDMP, the dynamics of the abundance of the strain depends on both T-EV and K-EV. In the MF limit, where demographic fluctuations are neglected, we indeed have [99]
which is a stochastic differential equation depending on both and , and coupled to the - and -PDMPs defined respectively by equations (16a) and (16b). In the dominance regimes, ( dominance) or ( dominance), which can be obtained from equation (18). However, finding in the coexistence phase is a nontrivial task. Progress can be made by noticing that, and being independent, we can write
where is the contribution to when there is coexistence (with probability ), and is the contribution arising when there is fixation of the strain (with probability ). In our theoretical analysis, and are obtained from equations (10) and (18)–(20). Equation (23) thus captures the behaviour of in each regime: the dominance regime where and we have , deep in the coexistence phase where we have and , and where and coexistence is possible but not certain where we have .
In figure 8, we find that the theoretical predictions based on equation (23) agree well with simulation results over a broad range of and , and for different values of and . The dependence of on reflects that of shown in figure 4: decreases with at fixed , see figure 8(a), and we have when yielding deep in the coexistence phase where , and similarly when yields . Not shown in figure 8(a) is the case of , whereby we have only dominance such that . Figure 8(b) shows that the dependence of on can be non-monotonic and exhibit an extreme dip () or peak () at intermediate T-switching rate, . This behaviour can be understood by referring to the diagrams of figure 6: as is raised from with kept fixed, the fixation probability first slowly increases across the slightly -dominant phase where coexistence is unlikely ( ) and . When is increased further and is the strongly dominant species (blue (charcoal) phases in figure 6), with and is maximal; coexistence then becomes first possible (, faint green (faint light gray) in figure 6) and then almost certain ( , bright green (bright light gray) in figure 6) when is increased further, which results in a reduction of the abundance to . A similar reasoning holds for the strain when and results in a maximal value and therefore a dip of the abundance, with a minimal value , when .
Download figure:
Standard image High-resolution imageThe results of this section hence show that the twofold EV has nontrivial effects on the make-up of the coexistence phase, and on the average number of cells of each strain, as shown by figure 7 and the nonmonotonic dependence of on in figure 8.
6. Conclusion
Microorganisms live in environments that unavoidably fluctuate between mild and harsh conditions. EV can cause endless changes in the concentration of toxins and amount of available nutrients, and thus shapes the eco-evolutionary properties of microbial communities including the ability of species to coexist. Understanding under which circumstances various microbial species can coexist, and how their coexistence and abundance vary with environmental factors, is crucial to shed further light on the mechanisms promoting biodiversity in ecosystems and to elucidate the evolution of AMR.
Motivated by these considerations, and inspired by the AMR evolution in a chemostat setup, we have studied the eco-evolutionary dynamics of an idealised microbial community of fluctuating size consisting of two strains competing for the same resources under twofold EV (T-EV and K-EV): the level of toxin and the abundance of nutrients in the community both vary in time. One of the strains is resistant while the other is sensitive to the drug present in the community, and both compete for the same resources.
EV is thus assumed to affect the strains growth and death rates, and is modelled by means of binary randomly time-switching fitness (T-EV) and carrying capacity (K-EV). Under harsh conditions, the level of toxin is high and resources are scarce, while environmental conditions are mild when the level of toxin is low and resources are abundant. In this setting, the strain resistant to the drug has a selective advantage under high toxin-level, whereas it is outgrown by the sensitive strain when the level of toxin is low. Moreover, the time-switching carrying capacity drives the fluctuating size of the microbial community, which in turn modulates the amplitude of the demographic fluctuations, resulting in their coupling with the variation of the available resources. When the environment is static, there is no lasting coexistence since one species dominates and rapidly fixates the entire population.
Here, we have shown that this picture changes radically in fluctuating environments: we have indeed found that long-lived species coexistence is possible in the presence of environmental fluctuations. Using stochastic simulations and the properties of suitable piecewise-deterministic and Moran processes, we have computationally and analytically obtained the fixation-coexistence phase diagrams of the system. These have allowed us to identify the detailed environmental conditions under which species coexist almost certainly for extended period of times, and the phases where one species dominates, as well as the crossover regimes where both coexistence and fixation are possible but not guaranteed. We have found that long-lived coexistence requires sufficient variation of the toxin level, while resource variability can oppose coexistence when strong K-EV leads to population bottlenecks responsible for large demographic fluctuations facilitating fixation. More generally, our analysis has allowed us to assess the influence of the population size distribution, whose shape changes greatly with the rate of K-EV, on the fixation-coexistence phase diagram. We have also determined how the make-up of the coexistence phase and average abundance of each strain depend on the rates of environmental change.
EV generally comes about in many forms in a variety of settings throughout biology and ecology, and the conundrum of coexistence within a system is impacted by it, alongside demographic fluctuations. This leads to complex eco-evolutionary dynamics. In particular, how microbial communities evolve subject to EV is vital when considering the issue of AMR, so that the effectiveness of treatments can be maximised, while minimising the harmful effects. In considering twofold environmental variations, we have shown that these can have qualitative effects on the population evolution as they can either promote or jeopardise lasting species coexistence.
In summary, our analysis allows us to understand under which circumstances environmental variability, together with demographic fluctuations, favours or hinders the long-lived coexistence of competing species, and how it affects the fraction and abundance of each strain in the community. This work hence contributes to further elucidate the role of fluctuations on the maintenance of biodiversity in complex ecosystems.
In particular, our findings demonstrate the influence of environmental fluctuations on biodiversity in microbial communities, and may thus have potential impacts on numerous applications. For instance, the model studied here is well suited to describe the in vitro evolution of antimicrobial resistance in a chemostat setup where the level of antibiotics would fluctuate below and above the MIC. In this context, the model is able to predict, under a broad range of external constraints, the best conditions to avoid the fixation of the strain resistant to the drug and when both strains coexist. A more realistic model of AMR evolution would take into account that the drug resistance is often mediated by a form of public goods [36, 79], and that there may exist more than two competing species and various toxins. The eco-evolutionary dynamics of communities consisting of multiple species, resources and toxins can generally not be simply inferred from those of two-species eco-systems, even though in some cases simple models can be illuminating [65]. Another potential application of the model considered here, with varying drug levels, concerns the so-called adaptive therapy used in cancer treatment to prevent or delay the cancer from becoming completely drug resistant [114].
Acknowledgment
We would like to thank K Distefano, J Jiménez, S Muñoz-Montero, M Pleimling, M Swailem, and U C Täuber for helpful discussions. L H N, A M R and M M gratefully acknowledge funding from the U.K. Engineering and Physical Sciences Research Council (EPSRC) under the Grant No. EP/V014439/1 for the project 'DMS-EPSRC Eco-Evolutionary Dynamics of Fluctuating Populations'. The support of a Ph.D. scholarship to M A by the EPSRC Grant No. EP/T517860/1 is also thankfully acknowledged. This work was undertaken on ARC4, part of the High Performance Computing facilities at the University of Leeds, UK.
Data availability statement
The data that support the findings of this study are openly available at the following URL/DOI: 10.5518/1371 [115].
Author contributions
Matthew Asker: Conceptualisation (supporting), Methodology, Formal Analysis (lead), Software, Writing—Original Draft, Writing—Review & Editing, Visualisation, Investigation, Validation.
Lluís Hernández-Navarro: Formal Analysis (supporting), Writing—Review & Editing (supporting), Supervision (supporting).
Alastair M. Rucklidge: Writing—Review & Editing (supporting), Supervision (supporting), Funding acquisition (supporting).
Mauro Mobilia: Conceptualisation (lead), Methodology (lead), Formal Analysis (supporting), Writing—Original Draft, Writing—Review & Editing, Visualisation, Supervision (lead), Project administration, Funding acquisition (lead).
Footnotes
- 2
The case where the toxin increases the death rate of the strain corresponds to a biocidal toxin, and is not directly considered here. This is not particularly limiting since the same drug can often act as a biostatic or biocidal toxin at low/high concentration [91].
- 3
Finally, the population will settle in the absorbing state corresponding to the eventual extinction of the entire population. This occurs after a time that grows exponentially with the system size [57, 61, 63, 105]. This phenomenon, irrelevant for our purposes (since we always have ), is not considered here.
- 4
In all our examples we set .
- 5
The factor 2 has been chosen arbitrarily to prevent from appearing as coexistence. Other choices are of course possible, and would have only modest effects on the crossover regime between the phases of dominance and coexistence.
Supplementary material (5.4 MB PDF)