Abstract
Gut microbiota can evolve within their hosts on human-relevant timescales, but little is known about how these changes influence (or are influenced by) the composition of their local community. Here, by combining ecological and evolutionary analyses of a large cohort of human gut metagenomes, we show that the short-term evolution of the microbiota is linked with shifts in its ecological structure. These correlations are not simply explained by expansions of the evolving species, and often involve additional fluctuations in distantly related taxa. We show that similar feedbacks naturally emerge in simple resource competition models, even in the absence of cross-feeding or predation. These results suggest that the structure and function of host microbiota may be shaped by their local evolutionary history, which could have important implications for personalized medicine and microbiome engineering.
Subject terms: Evolution, Microbial communities, Evolutionary ecology, Theoretical ecology
Little is known about how the evolution of gut microbiota is impacted by their surrounding community. Here, the authors examine the evolutionary ecology of the human gut microbiome, modelling resource competition to show that local evolutionary history can impact the structure and function of host microbiota.
Introduction
The human gut harbors a diverse microbial community comprising hundreds of ecologically interacting strains1,2. Recent work has shown that the residents of this community can also evolve over time, through a mixture of within-host evolution3–9 and the invasion of external strains4,6,10. In principle, these rapid genetic changes could alter ecological interactions between species, driving shifts in community composition, and spurring further co-evolutionary responses in other resident strains. Yet despite intensive theoretical speculation11–16, little is currently known about how the short-term evolution of the microbiota influences (or is influenced by) the composition of its local community.
Previous work has shown that ongoing evolution can alter the ecological composition of small synthetic communities, ranging from simple in vitro systems17–21 to complex plant-leaf microcosms22. Similar effects have also been observed in macro-scale communities with strong trophic structure23,24. However, it remains unclear how the feedbacks observed in these tightly coupled settings extend to larger and more metabolically diffuse ecosystems like the gut microbiota. Previous experiments have shown that the disruption of particular metabolic pathways can alter crossfeeding interactions between species of gut bateria in mice and in vitro co-cultures25,26. Other variants can enable the colonization of open metabolic niches27,28. However, it is not known how often such ecologically impactful mutations are selected in in situ, or whether the niche partitioning29 or functional redundancy1,30 of native gut communities tends to shield them from these evolutionary perturbations.
To distinguish these scenarios, we reanalyzed a large collection of fecal metagenomes from the Human Microbiome Project1,2, which followed >100 healthy human subjects at 2–3 timepoints over a period of ~6 months (Supplementary Data 1). We hypothesized that this large cohort would provide an opportunity to measure eco-evolutionary feedbacks at a statistical level, by asking whether within-host evolution tends to be accompanied by larger shifts in taxonomic composition during the same time interval. Since gut microbiota also experience daily fluctuations in the absence of evolution6,31–33, this approach requires us to search for global signals that exceed this baseline variation.
To carry out this analysis, we used a reference-based approach4 to identify single nucleotide variants (SNVs) that underwent large shifts in frequency within a host between pairs of sequenced timepoints (Methods). These large frequency changes indicate a partial or complete “sweep” within the species in question, in which the focal SNV is likely hitchhiking as a linked passenger mutation9. We further classified the sweeps within each species as “evolutionary modification” or “strain replacement” events (Supplementary Fig. 1) based on the total number of correlated SNV changes along that species’ genome (Methods); we previously showed that these strain replacement events are accompanied by large differences in gene content (~100–1000s of genes), comparable to other circulating strains in the global human population4. Using these methods, we compiled a dataset of 16 replacement events and 78 modifications from 799 pairwise genetic comparisons across 45 different species and 134 unique hosts (Supplementary Data 2 and 3). These data provide a unique opportunity to quantify the links between short-term evolution and community structure in the native human gut microbiota in its complex natural environment.
Results
Rates of evolution in different community backgrounds
We first asked how the rates of within-species evolution varied with the composition of the local community. We found that the strain replacement and evolutionary modification events were both non-uniformly distributed across taxa. While the sample sizes were too small to resolve the rates of individual species, an omnibus test still revealed a global enrichment of variability across species (P ≈ 0.01, Methods), with even stronger signals at the family or phylum levels (P < 10−4; Fig. 1a, b). Much of this signal was driven by differences between the Bacteroidetes and Firmicutes phyla, with the latter experiencing replacement and modification events at ~3-fold higher rates (Fig. 1a, b). Some of these differences are consistent with dispersal-related phenotypes of the resident species34 (e.g., less strain replacement and more within-host evolution in oxygen- and temperature-sensitive Eubacteriaceae), while others are more mysterious (e.g., higher rates of strain replacement in oxygen-sensitive Ruminococcaceae).
We also investigated how the strain replacement and evolutionary modification events depended on the global properties of their surrounding community. For example, classical theories suggest that the rates of evolution may strongly depend on local species diversity35,36, either by closing off environmental niches37–39, or by creating new opportunities to adapt to metabolic byproducts18,40,41 or other interactions42 with the surrounding community members. Across our cohort, we observed a weak positive correlation between the rate of evolutionary modification and the Shannon diversity at the initial timepoint, after controlling for differences between phyla (P ≈ 0.04, logistic regression; Supplementary Table 1; Fig. 1c). This shows that community diversity does not strongly limit the rate of evolution over the range of diversity found in healthy human gut microbiomes.
The weak positive correlation in Fig. 1c could be consistent with some models of accelerated community evolution [see ref. 43 for a related analysis]. However, the effect size associated with the community diversity was much smaller than the differences in the modification rate between phyla. Moreover, this signal was primarily driven by the top diversity decile in the Bacteroidetes phylum, rather than a systematic trend across all samples (P ≈ 0.2 when the top decile of the diversity distribution is excluded; Supplementary Table 1). We also observed no correlation between the initial community diversity and the rate of strain replacement (P ≈ 0.8; Supplementary Table 1, Supplementary Fig. 3). Consistent with these observations, we found that there were no strong correlations between the replacement and modification events in different species in the same host (Fig. 1d), as might be expected if genetic changes were primarily determined by a global property of the community like taxonomic diversity (Fig. 1c and Supplementary Fig. 2) or the Firmicutes-to-Bacteroidetes ratio (Supplementary Fig. 4). These different lines of evidence suggest that to a first approximation, the genetic changes within our cohort can be described by a simple null model, where replacement and modification events occur approximately independently in different resident populations, but with species-specific rates.
Genetic changes are correlated with shifts in composition
Armed with this information, we next asked how the genetic changes within species were correlated with shifts in their ecological structure over time. Within our cohort, one can find individual hosts with replacement or modification events that were also accompanied by large changes in species composition between the same two timepoints (Fig. 2a, b; Supplementary Data 4). One can also find hosts with no detected genetic changes that experienced smaller ecological shifts (Fig. 2c). To quantify this pattern more systematically, we partitioned our 194 community comparisons into three categories depending on whether the community had at least one replacement event, at least one modification event, or no genetic changes within species (Fig. 2d). For each of these communities, we also calculated the Jensen-Shannon (JS) distance between the species abundance distributions at the initial and final timepoints (Methods); this provides a simple metric for quantifying the overall change in species-level composition over time44.
While species abundances can fluctuate due to a variety of intrinsic and extrinsic factors6,31–33, we observed a small but systematic trend toward larger JS distances in hosts that experienced an evolutionary modification event, and even larger distances in hosts that experienced a strain replacement event (Fig. 2d). To assess the significance of these trends, we utilized an empirical null model informed by Fig. 1: we generated n = 104 bootstrapped datasets by randomly permuting the observed genetic events within the resident populations of each species. By construction, these bootstrapped datasets preserve both the overall number of genetic changes of each type, their distribution across species, and the species abundance trajectories within each host. This provides a principled way to test for associations between ecological and genetic changes, while preserving the complex correlations between the abundances of different species in large microbial communities.
We found that both replacement and modification events had significantly larger JS distances than expected under this empirical null model (P ≈ 0.001 and P ≈ 0.003, respectively; Methods), suggesting that the ecological and genetic changes within these communities are indeed correlated with each other. Notably, the evolutionary modification signal was primarily driven by a depletion of the smallest temporal fluctuations (Supplementary Fig. 6), rather than the handful of hosts with the largest ecological shifts. By contrast, the strain replacement signal was driven by a global increase in JS distances (Supplementary Fig. 6), which could be consistent with both an increased power to detect these genome-wide events, as well as a larger phenotypic impact due to the larger number of SNV and gene-content differences that they carry. Similar differences were observed when community composition was measured at the genus, family, or phylum levels (Supplementary Fig. 5). We also observed a small but significant enrichment of “extinction” events in abundant species (modifications P ≈ 0.003, replacements P ≈ 0.01; Methods) (Fig. 2g), which suggests that these eco-evolutionary correlations are not specific to the idiosyncratic features of the Jensen-Shannon metric.
The ecological distances in Fig. 2d can be further decomposed into the contributions from different species (Methods). Interestingly, this decomposition shows that the larger distances in Fig. 2 were not solely driven by expansions of the focal species (i.e., those with genetic changes), as expected under some of the simplest models of niche expansion22,37. While we observed a small bias toward expansions in species that experienced a modification event (P ≈ 0.05, Methods), the focal species still declined in frequency in more than 40% of cases (Fig. 3a, b). Strain replacements displayed a similar trend: while the focal species experienced significantly larger fold-changes over time (P ≈ 0.03, Methods), the majority of these changes involved declines in relative abundance rather than expansions (Fig. 3a, b). Furthermore, we observed no strong correlation between the community-level distances in Fig. 2d and the fold changes in the focal species (Fig. 3d). This suggests that the eco-evolutionary correlations in Fig. 2d do not depend on the direction of the focal species’s trajectory. Rather, the observed ecological shifts are more global in nature, in that they are comprised of correlated shifts in the abundances of other species in the community, even when focal species itself declines.
Figure 2b illustrates a prototypical example of this behavior: we detected an evolutionary modification event in one species (Bacteroides stercoris), which declined slightly in relative abundance, while two other species went extinct in the same time interval—one from the same genus (Bacteroides massiliensis) and another from a different bacterial family (Barnesiella intestinihominis). To quantify the relationships between these species more systematically, we calculated the fraction of JSD that was contributed by species in the same family as one of the focal species (Fig. 3f). We found that the family-level contributions were somewhat larger than the contributions of the focal species themselves (Fig. 3f), consistent with the larger number of species involved, but they were not significantly different than expected by chance (P ≈ 0.07; Methods). Similar results were obtained for other taxonomic groupings (Supplementary Fig. 9), and for the species that went extinct between the two timepoints (Fig. 3g, h). This shows that the statistical signal in Fig. 2 is not solely driven by fluctuations in closely-related species, but rather by correlated fluctuations in distantly related taxa.
Similar feedbacks emerge in resource competition models
Our results establish a statistical link between the short-term evolution of the human gut microbiota and changes in its ecological structure. Such correlations could arise through several causal scenarios: genetic changes could alter ecological interactions between species, driving shifts in community composition ("evolution-driven feedbacks”); alternatively, environmental perturbations could lead to taxonomic shifts while also creating new opportunities for within-host evolution ("ecology-driven feedbacks”). It is difficult to distinguish these scenarios from observational data alone, though the independent distribution of genetic events (Fig. 1d) and the slight bias toward the expansion of species with evolutionary modification events (P ≈ 0.05, Methods; Fig. 3b, d) could provide some evidence in favor of the evolution-driven scenario.
To gain more intuition for the range of possible behaviors, we also studied the correlations between ecological and genetic changes in a simple mathematical model, where the contributions of these two feedback mechanisms could be precisely controlled. We considered a simple class of resource competition models15,45–49, in which coexisting species compete for substitutable resources that are continuously supplied by the environment (Fig. 4a; Supplementary Note 1). For a saturated community () at ecological equilibrium, previous work has shown that the selection pressures on new mutations are independent of the external environment and the abundances of the resident species (ref. 15; Supplementary Note 1). This constitutes a simple theoretical example in which ecology-driven feedbacks are effectively damped by the collective response of the community. In this saturated case, one can derive a further result connecting the invasion fitness of a small-effect mutation (Sinv) with the ecological perturbations that it causes after it invades (Fig. 4b). This relationship can be written in the implicit form,
1 |
where fμ denotes the relative abundance of species μ, Xμ is the logarithm of its total resource uptake rate, μ* denotes the focal species in which the mutation occurred, and is a proportionality constant that depends on the focal species μ* (and its interactions with the surrounding community) but is otherwise independent of the phenotypic impact of the mutation (Supplementary Note 1).
A special case of Eq. (1) occurs when a mutation increases the total resource uptake rate of the focal species () but leaves its relative uptake rates intact. In this case, a successful mutation will always increase the relative abundance of the focal species (), while causing downstream shifts in other species that depend on the metabolic overlap within the larger community (ref. 15; Supplementary Note 1). On the other hand, when mutations are able to alter the relative uptake rates of the focal species, Eq. (1) shows that any combination of directions of Δfμ are possible (at least in principle), provided that they lead to the same overall sign on the right-hand side.
This effect is present even for the simplest case of two resources, where a graphical picture provides some further intuition about the underlying mechanisms involved (Fig. 4c). Previous work has shown that differences in the overall uptake rates of the two species (Xμ) create local selection pressures for mutations that shift metabolic effort toward the species with the smaller value of Xμ (ref. 15; white region in Fig. 4c). Mutations in this less fit species will be favored if they drive the relative uptake rates further away from the fitter competitor; these mutations will generally lower the abundance of the focal species (), unless they are compensated by a corresponding increase in .
This shows that natural selection can favor mutations that lower the abundance of the focal species (), which could provide a potential mechanism for the empirical behavior observed in Fig. 3b. It also shows that mutations can produce a mixture of positive and negative abundance changes across a large range of species, regardless of their phylogenetic or phenotypic similarity.
These theoretical results show that simple evolution-driven feedbacks can recapitulate some of the qualitative features of Figs. 2 and 3, even in the absence of additional factors like crossfeeding50,51, spatial structure52, or phage predation53. Nevertheless, this analysis also has important limitations: Eq. (1) only applies to the simplest case of small-effect mutations in ecologically saturated communities. Further theoretical work is necessary to understand how these results extend to the non-saturated case49, and to incorporate important factors like cross-feeding50,51 and spatial structure within the gut52. Perhaps more importantly, Eq. (1) only shows that it is theoretically possible for a beneficial mutation to produce a given combination of Δfμ values, provided that it changes the resource uptake phenotype of the focal strain in a particular way. The extent to which this will occur in practice will depend on how easily the corresponding changes can be produced by mutations in the resident strains. This requires additional information about the genetic architectures of the resource uptake phenotypes, which are poorly constrained by existing data. Our results suggest that it would be interesting to map out the accessible ecological perturbations in future experiments, e.g., by measuring the joint distribution of Sinv and {Δfμ} values obtained by mutating or swapping resident strains. This joint distribution would constitute an eco-evolutionary analog of the distribution of fitness effects of new mutations, which plays a central role in evolutionary genetics54.
Discussion
Further work will be required to determine which of the various ecological or evolutionary feedback mechanisms are most relevant for the human gut, and to understand the mix of external (or internal) factors that drive them. Our results show that the statistical signature of these feedbacks can sometimes be observed even in complex in situ environments, generating targeted hypotheses that could be tested in future experiments (e.g., using large synthetic gut communities55,56). These results could have important implications for the development of personalized therapies that aim to tune the composition of the gut microbiota. For example, within-host evolution could perturb the ecological structure of the community away from its desired state, requiring repeated interventions in order to control. Conversely, shifts in the local environment could select for different sets of mutations in different hosts, which could potentially ripple through the community in unpredictable ways. The phylum-specific rates of evolutionary modification and strain replacement we observed in Fig. 1 could be interesting in this context, since the Firmicutes-to-Bacteroidetes ratio has previously been associated with several markers of host health and disease57. Further work will be required to determine whether within-host evolution could contribute to these associations.
While we have focused on applications to the human gut microbiota here, our statistical framework can also be applied to other microbial ecosystems where large cohorts of independent evolutionary replicates are available. Extending our pairwise approach to denser longitudinal timeseries6,9,58 could help disentangle the relative contributions of evolution- vs ecology-driven feedbacks. These and other generalizations will be useful for quantifying the links between short-term evolution and community structure in other microbial ecosystems characterized by large numbers of coexisting species39,58–60.
Methods
Metagenomic pipeline
We utilized a collection of shotgun metagenomic data from the Human Microbiome Project1,2 that we analyzed in a previous study4. This cohort contained a total of 316 fecal samples from 138 healthy human subjects, who were sequenced at 2–3 timepoints roughly 6 months apart (Supplementary Data 1). We chose to focus on this cohort for several reasons: (i) the samples were sequenced with relatively high coverage, which enhances our ability to detect evolutionary changes within species; (ii) the subjects were specifically selected to avoid unusual external perturbations (e.g., antibiotics, chronic diseases, or large dietary shifts) that could have an outsized influence on microbiome composition; and (iii) we previously showed4 that the sampling interval in this cohort results in a mixture of hosts with genetic changes in some of their resident species, and other hosts with no genetic changes; this mixture of outcomes is critical for our present analysis.
We processed these data using the pipeline described in ref. 4. Briefly, the MIDAS software package61 was used to align the raw sequencing reads from each sample to a large panel of reference genomes representing different species. The relative abundance of each species was estimated in each sample based on the coverage of single copy marker genes (Supplementary Data 4). These relative abundances were used to assemble a personalized panel of reference genomes for each host, which were used to identify single nucleotide variants within each species. These initial SNVs were subsequently filtered based on their absolute and relative coverage, as well as their location along the genome, using the default parameters and code provided in ref. 4.
Detecting replacement and modification events within species
We used these data to detect replacement and modification events between pairs of timepoints using the methods described in Ref. 4. For each pair of time points, we identified the subset of “quasi-phaseable” species where the lineage structure was sufficiently simple that the dominant lineage could be identified with a high degree of confidence4. Within each of these quasi-phaseable populations, we calculated the total number of SNVs that transitioned from <20% frequency in one timepoint to >80% frequency in another (or vice versa), along with the corresponding number of changes expected from sequencing noise alone4. As in ref. 4, we recorded zero SNV differences if the estimated false positive rate was >10%. The resulting numbers and locations of the SNV differences in each of the populations are listed in Supplementary Data 2 and 3. These counts were used to classify each population as experiencing a replacement event (>100 SNV differences), a modification event (<100 SNV differences), or zero genetic changes; we previously showed that this divergence-based definition is consistent with the patterns of private marker SNV sharing on these time scales4 (Supplementary Fig. 1). In carrying out this analysis, we noticed that the followup samples from two subjects (Subject IDs 763536994 and 763880905) were possibly swapped, since they exhibited strain replacement events in all of their resident species, but had nearly identical strains when compared to the corresponding sample from the other host. For simplicity, we omitted these two subjects from all of our downstream analyses (though they are still included in Supplementary Data 2 and 4 for completeness). This analysis yielded a total of 18 replacement events and 98 modification events from a total of 937 pairwise comparisons across 45 different species in 136 unique hosts.
Since some hosts were sampled at more than two timepoints, we further de-replicated these data to ensure that all genetic comparisons were performed on non-overlapping time intervals. For each host-species combination, we only included pairwise comparisons from consecutive quasi-phaseable timepoints; all other pairwise comparisons were treated as missing data (similar to non-quasi-phaseable timepoints). This de-replication procedure yielded a final dataset containing 16 replacement events and 78 modification events from a total of 799 pairwise comparisons across 45 different species in 134 unique hosts. These data were used for all of our subsequent analyses.
Quantifying heterogeneity in replacement and modification rates across species
We quantified the overall variability in the rates of replacement and modification events across species using a global likelihood ratio test,
2.a |
where nμ,e is the total number of events of type e ∈ {R, M, 0} in species μ (representing replacements, modifications, and no genetic changes, respectively), and
2.b |
Equation (2.a) quantifies the degree to which the observed replacement and modification rates deviate from a null model in which these events occur uniformly across species. We assessed the significance of this deviation by comparing the observed value of Λ to a null model in which the replacement and modification events were randomly permuted across all quasi-phaseable samples. This defines a corresponding P-value,
3 |
which we estimated numerically from n = 104 bootstrapped samples (Supplementary Code 1). We performed this test for the observed species counts nμ,e, as well as coarse-grained versions that merged the observed counts at the genus, family, or phylum levels (Fig. 1a, b).
The confidence intervals in Fig. 1 were obtained from the α/2 and 1 − α/2 percentiles of the posterior distribution of the underlying Poisson process,
4 |
with α = 0.05. In the case where nμ,e = 0, the posterior is an improper distribution, so we define the lower limit of the confidence interval to be 0, and the upper limit to be the point where .
Quantifying the relationship between community diversity and the rates of evolutionary modification
We quantified the residual effects of community diversity on the rates of evolutionary modification using a logistic regression model, in which the probability of an evolutionary modification in species μ in community c is given by
5.a |
where is an indicator variable giving the phylum of species μ, and is the Shannon entropy of the surrounding community,
5.b |
which was estimated from the relative abundances of the species at the initial timepoint. For simplicity, we only examined species in the Bacteroidetes and Firmicutes phyla, which constitute the vast majority of our data (Fig. 1b). Regression coefficients and P-values were estimated using the logistic regression routines in the statsmodels library62 using default parameter values. Similar results were obtained when was replaced with a measure of species richness (Supplementary Fig. 2; Supplementary Table 1).
Quantifying the overdispersion of genetic changes within hosts
We quantified the residual effects of more general community properties on replacement and modification rates by examining the overdispersion of genetic changes within a given host community. For each pair of timepoints, we calculated the total number of quasi-phaseable populations that experienced a replacement or modification event, and examined the distribution of these counts across our dataset (Fig. 1d). We compared this distribution to a null model in which the replacement and modification events were randomly permuted across quasi-phaseable populations of the same species. This permutation scheme eliminates any correlations between the genetic changes in different resident populations, but preserves the heterogeneity in the number and types of quasi-phaseable populations in different hosts, and the total number of replacement and modification events in different species.
Quantifying shifts in ecological structure over time
We quantified the changes in ecological structure between a pair of timepoints using the Jensen-Shannon divergence,
6.a |
6.b |
where fμ,0 and fμ,1 are the relative abundances of species μ at the initial and final timepoints, is the average relative abundance, and rμ = fμ,1/fμ,0 is the fold change between the two time points. The Jensen-Shannon distance (Fig. 2d) is defined as the square root of the Jensen-Shannon divergence ().
We quantified the differences between the distributions of Jensen-Shannon distances in Fig. 2d using a one-sided Kolmogorov-Smirnov (KS) test,
7 |
where is the fraction of communities of type e ∈ {R, M, 0} with Jensen-Shannon distance larger than d. Larger values of De indicate an enrichment of larger Jensen-Shannon distances, relative to communities with no genetic changes. We assessed the significance of these differences by comparing the observed De values to a null model similar to Fig. 1d, in which the replacement and modification events were randomly permuted across quasi-phaseable populations of the same species. As mentioned above, this permutation scheme preserves the heterogeneous opportunities for replacement and modification events in different hosts, the observed distribution of Jensen-Shannon distances, and any correlations between the two. This defines a corresponding P value,
8 |
which we estimated numerically from n = 104 bootstrapped samples. For completeness, we used a similar approach to compare the overall change in Shannon diversity between the two timepoints (Supplementary Fig. 7). We observed a much weaker correlation with the number of replacement or modification events, suggesting that the signals in Fig. 2 cannot be explained by diversity fluctuations alone.
In addition to these entropy-based metrics, we also quantified shifts in community structure by examining extinction events among highly abundant species (Fig. 2g). In this calculation, a species was counted as going extinct if it transitioned from an initial relative abundance > 1% to a final relative abundance < 0.01%. We compared the distributions of extinction events in Fig. 2g using a similar KS test as Fig. 2d, with the number of extinction events in a given community (Supplementary Fig. 8) replacing the Jensen-Shannon distance in Eq. (7); we assessed the significance of these differences using the same permutation-based null model as above. We also compared these observations to the corresponding number of “invasion” events, defined as the time-reversed version of an extinction event above (Supplementary Fig. 8). We quantified the asymmetry between extinctions and invasions by comparing them to a null model in which we randomly flipped the direction of time in each sample.
We used a similar approach to compare the distributions of focal species fold changes Fig. 3b, with the magnitude of the log fold change, , replacing the Jensen-Shannon distance in Eq. (7). We quantified the excess of positive over negative changes (Fig. 3a) using a one-sided sign test. Similar results were obtained by comparing the fraction of positive changes in species with modifications vs no genetic changes using the permutation-based null model above (P ≈ 0.02).
Decomposing the Jensen-Shannon divergence
The linear sum in Eq. (6.b) provides a natural way to decompose the Jensen-Shannon divergence into contributions from different species. For example, the fraction of Jensen-Shannon divergence “explained” by a subset of species can be defined as
9 |
Figure 2e shows the percent JSD explained by the subset of strains with a minimum fold change r, by defining
10 |
Similarly, Fig. 3 shows the percent JSD explained by a single focal species (Fig. 3c), the entire set of focal species (Fig. 3e), or all species in the same family as one of the focal species (Fig. 3f).
In the latter two cases, we compared these distributions to a null model in which the same number of replacement or modification events were redrawn from the same subset of hosts, by weighting each resident population by the empirical rate of replacement or modification events in that species across our entire dataset (Fig. 3e, f). We assessed the significance of these differences using the mean of this distribution as a test statistic.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Supplementary information
Acknowledgements
We thank Z. Liu for identifying a host mislabeling event in the HMP data, and S. Walton for feedback on the manuscript. This work was supported in part by a Bio-X Undergraduate Research Fellowship (to L.B.R.), the Alfred P. Sloan Foundation grant FG-2021-15708 (to B.H.G.), and NIH NIGMS Grant No. R35GM146949 (to B.H.G.). B.H.G. is a Chan Zuckerberg Biohub – San Francisco Investigator.
Author contributions
Conceptualization: B.H.G.; theory and methods development: B.H.G. and L.B.R.; analysis: B.H.G. and L.B.R.; writing: B.H.G.
Peer review
Peer review information
Nature Communications thanks Katherine Amato, William Shoemaker and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Data availability
Postprocessed source data for Figs. 1–3 can be found in Supplementary Data 2 and 4; these figures can be regenerated by running the generate_all_figures.py script provided in Supplementary Code 1. Raw sequencing data from the Human Microbiome Project are publicly available at the NCBI Sequence Read Archive using the accessions provided in Supplementary Data 1.
Code availability
All analysis code and figure generation scripts for Figs. 1–3 are available on Github (https://github.com/bgoodlab/microbiome_ecoevo_correlations), as well as in Supplementary Code 1. Figs. 1–3 can be regenerated by running the generate_all_figures.py script in the base directory.
Competing interests
The authors declare no competing interests.
Footnotes
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
The online version contains supplementary material available at 10.1038/s41467-023-42769-3.
References
- 1.Huttenhower C, et al. Structure, function and diversity of the healthy human microbiome. Nature. 2012;486:207–214. doi: 10.1038/nature11234. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Lloyd-Price J, et al. Strains, functions and dynamics in the expanded human microbiome project. Nature. 2017;550:61. doi: 10.1038/nature23889. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Ghalayini M, et al. Evolution of a dominant natural isolate of Escherichia coli in the human gut over the course of a year suggests a neutral evolution with reduced effective population size. Appl. Environ. Microbiol. 2018;84:e02377–17. doi: 10.1128/AEM.02377-17. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Garud NR, Good BH, Hallatschek, O, Pollard KS. Evolutionary dynamics of bacteria in the gut microbiome within and across hosts. PLoS Biol. 2019;17:e3000102. doi: 10.1371/journal.pbio.3000102. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Zhao S, et al. Adaptive evolution within gut microbiomes of healthy people. Cell Host Microbe. 2019;25:656–667. doi: 10.1016/j.chom.2019.03.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 6.Poyet M, et al. A library of human gut bacterial isolates paired with longitudinal multiomics data enables mechanistic microbiome research. Nat. Med. 2019;25:1442–1452. doi: 10.1038/s41591-019-0559-3. [DOI] [PubMed] [Google Scholar]
- 7.Yaffe E, Relman DA. Tracking microbial evolution in the human gut using Hi-C reveals extensive horizontal gene transfer, persistence and adaptation. Nat. Microbiol. 2020;5:343–353. doi: 10.1038/s41564-019-0625-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Zlitni S, et al. Strain-resolved microbiome sequencing reveals mobile elements that drive bacterial competition on a clinical timescale. Genome Med. 2020;12:50. doi: 10.1186/s13073-020-00747-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Roodgar M, et al. Longitudinal linked-read sequencing reveals ecological and evolutionary responses of a human gut microbiome during antibiotic treatment. Genome Res. 2021;31:1433–1446. doi: 10.1101/gr.265058.120. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Siranosian BA, et al. Rare transmission of commensal and pathogenic bacteria in the gut microbiome of hospitalized adults. Nat. Commun. 2022;13:1–17. doi: 10.1038/s41467-022-28048-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Foster KR, Schluter J, Coyte KZ, Rakoff-Nahoum S. The evolution of the host microbiome as an ecosystem on a leash. Nature. 2017;548:43–51. doi: 10.1038/nature23292. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Ferreiro, A., Crook, N., Gasparrini, A. J. & Dantas, G. Multiscale evolutionary dynamics of host-associated microbiomes. Cell172, 1216–1227 (2018). [DOI] [PMC free article] [PubMed]
- 13.Ackland G, Gallagher I. Stabilization of large generalized Lotka-Volterra foodwebs by evolutionary feedback. Phys. Rev. Lett. 2004;93:158701. doi: 10.1103/PhysRevLett.93.158701. [DOI] [PubMed] [Google Scholar]
- 14.Shoresh N, Hegreness M, Kishony R. Evolution exacerbates the paradox of the plankton. Proc. Natl Acad. Sci. USA. 2008;105:12365–12369. doi: 10.1073/pnas.0803032105. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Good BH, Martis S, Hallatschek O. Adaptation limits ecological diversification and promotes ecological tinkering during the competition for substitutable resources. Proc. Natl Acad. Sci. USA. 2018;115:E10407–E10416. doi: 10.1073/pnas.1807530115. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Fant, L., Macocco, I., and Grilli, J., Eco-evolutionary dynamics lead to functionally robust and redundant communities. bioRxiv, p. 2021.04.02.438173 (2021).
- 17.Good BH, McDonald MJ, Barrick JE, Lenski RE, Desai MM. The dynamics of molecular evolution over 60,000 generations. Nature. 2017;551:45–50. doi: 10.1038/nature24287. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Evans R, et al. Eco-evolutionary dynamics set the tempo and trajectory of metabolic evolution in multispecies communities. Curr. Biol. 2020;30:4984–4988. doi: 10.1016/j.cub.2020.09.028. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Meroz N, Tovi N, Sorokin Y, Friedman J. Community composition of microbial microcosms follows simple assembly rules at evolutionary timescales. Nat. Commun. 2021;12:1–9. doi: 10.1038/s41467-021-23247-0. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Barber JN, et al. The evolution of coexistence from competition in experimental co-cultures of Escherichia coli and Saccharomyces cerevisiae. ISME J. 2021;15:746–761. doi: 10.1038/s41396-020-00810-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Venkataram, S., Kuo, H.-Y., Hom, E. F. & Kryazhimskiy, S. Mutualism-enhancing mutations dominate early adaptation in a two-species microbial community. Nat. Ecol. Evol.7, 143–154 (2023). [DOI] [PubMed]
- 22.Debray, R., Conover, A., Zhang, X., Dewald-Wang, E. A. & Koskella, B. Within-host adaptation alters priority effects within the phyllosphere microbiome. Nat. Ecol. Evol.7, 725–731 (2023). [DOI] [PubMed]
- 23.Harmon LJ, et al. Evolutionary diversification in stickleback affects ecosystem functioning. Nature. 2009;458:1167–1170. doi: 10.1038/nature07974. [DOI] [PubMed] [Google Scholar]
- 24.Johnson MT, Vellend, M, Stinchcombe JR. Evolution in plant populations as a driver of ecological changes in arthropod communities. Philos. Trans. R. Soc. B. 2009;364:1593–1605. doi: 10.1098/rstb.2008.0334. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 25.Rakoff-Nahoum,, S., Foster, K. R. & Comstock, L. E. The evolution of cooperation within the gut microbiota. Nature533, 255–259 (2016). [DOI] [PMC free article] [PubMed]
- 26.Feng, J. et al. Polysaccharide utilization loci in bacteroides determine population fitness and community-level interactions. Cell Host Microbe30, 200–215 (2022). [DOI] [PMC free article] [PubMed]
- 27.Shepherd ES, DeLoache WC, Pruss KM, Whitaker WR, Sonnenburg JL. An exclusive metabolic niche enables strain engraftment in the gut microbiota. Nature. 2018;557:434–438. doi: 10.1038/s41586-018-0092-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 28.Kearney SM, Gibbons SM, Erdman SE, Alm EJ. Orthogonal dietary niche enables reversible engraftment of a gut bacterial commensal. Cell Rep. 2018;24:1842–1851. doi: 10.1016/j.celrep.2018.07.032. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 29.Brochet S, et al. Niche partitioning facilitates coexistence of closely related honey bee gut bacteria. Elife. 2021;10:e68583. doi: 10.7554/eLife.68583. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Tian L, et al. Deciphering functional redundancy in the human microbiome. Nat. Commun. 2020;11:1–11. doi: 10.1038/s41467-020-19940-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 31.David LA, et al. Host lifestyle affects human microbiota on daily timescales. Genome Biol. 2014;15:R89. doi: 10.1186/gb-2014-15-7-r89. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 32.Johnson AJ, et al. Daily sampling reveals personalized diet-microbiome associations in humans. Cell Host Microbe. 2019;25:789–802. doi: 10.1016/j.chom.2019.05.005. [DOI] [PubMed] [Google Scholar]
- 33.Ji BW, Sheth RU, Dixit PD, Tchourine K, Vitkup D. Macroecological dynamics of gut microbiota. Nat. Microbiol. 2020;5:768–775. doi: 10.1038/s41564-020-0685-1. [DOI] [PubMed] [Google Scholar]
- 34.Suzuki TA, et al. Codiversification of gut microbiota with humans. Science. 2022;377:1328–1332. doi: 10.1126/science.abm7759. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Barraclough TG. How do species interactions affect evolutionary dynamics across whole communities? Annu. Rev. Ecol., Evol. Syst. 2015;46:25–48. doi: 10.1146/annurev-ecolsys-112414-054030. [DOI] [Google Scholar]
- 36.Dapa T, et al. Within-host evolution of the gut microbiome. Curr. Opin. Microbiol. 2023;71:102258. doi: 10.1016/j.mib.2022.102258. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Whittaker RH. Evolution and measurement of species diversity. Taxon. 1972;21:213–251. doi: 10.2307/1218190. [DOI] [Google Scholar]
- 38.Hall JP, Harrison E, Brockhurst MA. Competitive species interactions constrain abiotic adaptation in a bacterial soil community. Evol. Lett. 2018;2:580–589. doi: 10.1002/evl3.83. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 39.Scheuerl T, et al. Bacterial adaptation is constrained in complex communities. Nat. Commun. 2020;11:1–8. doi: 10.1038/s41467-020-14570-z. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Lawrence D, et al. Species interactions alter evolutionary responses to a novel environment. PLoS Biol. 2012;10:e1001330. doi: 10.1371/journal.pbio.1001330. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Barroso-Batista J, et al. Specific eco-evolutionary contexts in the mouse gut reveal escherichia coli metabolic versatility. Curr. Biol. 2020;30:1049–1062. doi: 10.1016/j.cub.2020.01.050. [DOI] [PubMed] [Google Scholar]
- 42.García-Bayona L, Coyne MJ, Comstock LE. Mobile type vi secretion system loci of the gut bacteroidales display extensive intra-ecosystem transfer, multi-species spread and geographical clustering. PLoS Genet. 2021;17:e1009541. doi: 10.1371/journal.pgen.1009541. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Madi N, Chen D, Wolff R, Shapiro BJ, Garud NR. Community diversity is associated with intra-species genetic diversity and gene loss in the human gut microbiome. Elife. 2023;12:e78530. doi: 10.7554/eLife.78530. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 44.Preheim SP, et al. Computational methods for high-throughput comparative analyses of natural microbial communities. Methods Enzymol. 2013;531:353–370. doi: 10.1016/B978-0-12-407863-5.00018-6. [DOI] [PubMed] [Google Scholar]
- 45.MacArthur R. Species packing, and what competition minimizes. Proc. Natl Acad. Sci. USA. 1969;64:1369–1371. doi: 10.1073/pnas.64.4.1369. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 46.Tilman, D., Resource Competition and Community Structure. (Princeton University Press, 1982). [PubMed]
- 47.Chesson P. Macarthur’s consumer-resource model. Theor. Popul. Biol. 1990;37:26–38. doi: 10.1016/0040-5809(90)90025-Q. [DOI] [Google Scholar]
- 48.Posfai A, Taillefumier T, Wingreen NS. Metabolic trade-offs promote diversity in a model ecosystem. Phys. Rev. Lett. 2017;118:028103. doi: 10.1103/PhysRevLett.118.028103. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 49.Tikhonov M, Monasson R. Collective phase in resource competition in a highly diverse ecosystem. Phys. Rev. Lett. 2017;118:048103. doi: 10.1103/PhysRevLett.118.048103. [DOI] [PubMed] [Google Scholar]
- 50.Wang, T., Goyal, A., Dubinkina, V., and Maslov, S. Evidence for a multi-level trophic organization of the human gut microbiome. PLoS Comput. Biol.15, 12 (2019). [DOI] [PMC free article] [PubMed]
- 51.Marsland III R, et al. Available energy fluxes drive a transition in the diversity, stability, and functional structure of microbial communities. PLoS Comput. Biol. 2019;15:e1006793. doi: 10.1371/journal.pcbi.1006793. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 52.Ghosh OM, Good BH. Emergent evolutionary forces in spatial models of luminal growth and their application to the human gut microbiota. Proc. Natl Acad. Sci. USA. 2022;119:e2114931119. doi: 10.1073/pnas.2114931119. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 53.Pearce MT, Agarwala A, Fisher DS. Stabilization of extensive fine-scale diversity by ecologically driven spatiotemporal chaos. Proc. Natl Acad. Sci. USA. 2020;117:14572–14583. doi: 10.1073/pnas.1915313117. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 54.Eyre-Walker A, Keightley PD. The distribution of fitness effects of new mutations. Nat. Rev. Genet. 2007;8:610–618. doi: 10.1038/nrg2146. [DOI] [PubMed] [Google Scholar]
- 55.Cheng AG, et al. Design, construction, and in vivo augmentation of a complex gut microbiome. Cell. 2022;185:3617–3636. doi: 10.1016/j.cell.2022.08.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 56.Wang M, et al. Strain dropouts reveal interactions that govern the metabolic output of the gut microbiome. Cell. 2023;186:2839–2852. doi: 10.1016/j.cell.2023.05.037. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 57.Manor O, et al. Health and disease markers correlate with gut microbiome composition across thousands of people. Nat. Commun. 2020;11:5206. doi: 10.1038/s41467-020-18871-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 58.Goyal A, Bittleston LS, Leventhal GE, Lu L, Cordero OX. Interactions between strains govern the eco-evolutionary dynamics of microbial communities. Elife. 2022;11:e74987. doi: 10.7554/eLife.74987. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 59.Goldford JE, et al. Emergent simplicity in microbial community assembly. Science. 2018;361:469–474. doi: 10.1126/science.aat1168. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 60.Bai Y, et al. Functional overlap of the arabidopsis leaf and root microbiota. Nature. 2015;528:364–369. doi: 10.1038/nature16192. [DOI] [PubMed] [Google Scholar]
- 61.Nayfach S, Rodriguez-Mueller B, Garud N, Pollard KS. An integrated metagenomics pipeline for strain profiling reveals novel patterns of bacterial transmission and biogeography. Genome Res. 2016;26:1612–1625. doi: 10.1101/gr.201863.115. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 62.Seabold, S. and Perktold, J. Statsmodels: Econometric and statistical modeling with python. In Proc.9th Python in Science Conference (2010).
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Postprocessed source data for Figs. 1–3 can be found in Supplementary Data 2 and 4; these figures can be regenerated by running the generate_all_figures.py script provided in Supplementary Code 1. Raw sequencing data from the Human Microbiome Project are publicly available at the NCBI Sequence Read Archive using the accessions provided in Supplementary Data 1.
All analysis code and figure generation scripts for Figs. 1–3 are available on Github (https://github.com/bgoodlab/microbiome_ecoevo_correlations), as well as in Supplementary Code 1. Figs. 1–3 can be regenerated by running the generate_all_figures.py script in the base directory.