Skip to main content

Thank you for visiting You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Design of synthetic human gut microbiome assembly and butyrate production


The capability to design microbiomes with predictable functions would enable new technologies for applications in health, agriculture, and bioprocessing. Towards this goal, we develop a model-guided approach to design synthetic human gut microbiomes for production of the health-relevant metabolite butyrate. Our data-driven model quantifies microbial interactions impacting growth and butyrate production separately, providing key insights into ecological mechanisms driving butyrate production. We use our model to explore a vast community design space using a design-test-learn cycle to identify high butyrate-producing communities. Our model can accurately predict community assembly and butyrate production across a wide range of species richness. Guided by the model, we identify constraints on butyrate production by high species richness and key molecular factors driving butyrate production, including hydrogen sulfide, environmental pH, and resource competition. In sum, our model-guided approach provides a flexible and generalizable framework for understanding and accurately predicting community assembly and metabolic functions.


Microbial communities carry out pivotal chemical transformations in nearly every environment on Earth1. Many of these processes critically impact human health, agriculture and environmental sustainability, including oceanic CO2-fixation2, production of growth-promoting molecules in the plant rhizosphere3, and degradation of indigestible dietary substrates in humans4. The functions performed by microbiomes are shaped by complex and dynamic interactions between constituent community members and their environment. Developing the capabilities to engineer microbiome properties holds promise to address grand challenges facing human society in agriculture, degradation of the environment, and human health5.

Undefined communities isolated from natural environments have been exploited to treat Clostridioides difficile infection in the human gut6, produce valuable chemicals in anaerobic digestors7, or extract minerals via bioleaching8. Optimization of such desired functions performed by undefined communities is challenging due to unknown components and their interactions and the difficulty in quantifying the contributions of organisms to the function of interest. Further, undefined communities used in fecal microbiota transplantation (FMT) to treat human diseases have resulted in unpredictable patient outcomes attributed to complex and unknown ecological interactions between donor and recipient microbiomes9. In addition, FMT can lead to potential adverse health consequences including the transfer of antibiotic-resistant pathogens10,11,12. For these reasons, there is substantial interest in exploiting the properties of defined microbial communities for enhanced controllability, reproducibility, and environmental safety.

The bottom-up construction of synthetic microbiomes enables the investigation of reduced complexity assemblages with control of initial community composition (organism type and initial abundance of constituent community members). Defined microbial communities have been extensively studied both in vitro13 and in model host systems14,15 to decipher potential causal interactions influencing system behaviors. Using in vitro culturing, synthetic communities of bacteria isolated from the human gut16 or soil17 have been used to demonstrate that pairwise interactions are major determinants of multi-species community assembly. Beyond community assembly, synthetic communities have been used to interrogate how community context impacts the production or consumption of molecules relative to individual species18,19,20. In real-world environments, defined consortia have been used for environmental cleanup21, protection of plant hosts from pathogen infection22,23, and treatment of recurrent C. difficile infection24,25. However, the widespread deployment of synthetic microbiomes has been hindered by our limited capabilities for accurate prediction of community assembly and function.

Identifying synthetic communities that perform functions with desired specifications is highly challenging due to a large design space that grows exponentially with the number of organisms. The web of interactions between constituent community members and abiotic factors (e.g. nutrients and environmental pH) can potentially generate many local optima representing a rugged community composition–function landscape26. In addition, the community composition–function landscape can be shaped by variation in the activity of metabolic pathways (i.e. metabolic flexibility) driving the function of interest due to the availability of ecological niches27. Therefore, developing the capabilities to systematically explore this complex landscape could enable the discovery of synthetic microbiomes with optimized functions that can be harnessed for diverse applications.

In metabolic and protein engineering, computational models informed by high-throughput experimental measurements have been used to design optimized protein sequences with high protein stability28 or identify promoter combinations driving enzymes in a metabolic pathway to maximize valuable molecule production29,30. In the microbiome field, empirical and top-down approaches are frequently used to design microbial communities as opposed to data-driven approaches14. In one example, a model-guided procedure was used to identify gut microbial communities that elicit a target immune response in mouse models31. However, variation in host colonization masked the contributions of specific microbes and the high biological variability between replicates of the same community limited the observability of significant increases in the immune response. Computational modeling frameworks that can predict how interactions between species shape community assembly and functional outputs are needed to advance the rational design of synthetic microbiomes.

Butyrate production is a major function of the gut microbiome associated with protection from a wide range of human diseases, including arthritis32, diet-induced obesity33,34,35, colitis36,37, opportunistic pathogen infection38, diabetes39, and colorectal cancer40. Predictable modulation of butyrate production of gut microbiota with defined bacterial therapeutics is challenging as evidenced by the failure to modulate fecal butyrate concentration in individuals with metabolic syndrome via supplementation with a butyrate producing bacterial strain41. The effects of introducing invader therapeutic species depends on the availability of ecological niches and the complex interactions between resident and invader species. A detailed and quantitative understanding of these interactions could guide the design of microbiome interventions for predictable shifts in butyrate concentration.

Due to significant interest in the development of defined bacterial therapeutics for human health applications42 and the beneficial role of butyrate produced by gut microbiota on myriad health outcomes32,33,34,35,36,37,38,39,40,41, we sought to develop the capability to predict butyrate production of diverse synthetic human gut communities. To this end, we leveraged interpretable data-driven models to design synthetic communities with desired butyrate concentrations and to decipher significant microbial interactions impacting butyrate production. By quantifying interactions that impact growth and butyrate production separately, we demonstrated that in some contexts, accurate prediction of butyrate producer abundance can predict butyrate production, while in other community contexts, interactions modifying metabolic activities must be captured. We used our models to design communities of up to 25 diverse and prevalent gut bacterial species with a broad range of butyrate production capabilities and uncovered key insights into metabolic interactions impacting butyrate production by analyzing our model as well as the metabolic profiles and environmental modification of the designed communities. Finally, we used our model to investigate how biodiversity–ecosystem function relationships constrain the design of butyrate production in the system. Our generalizable framework provides a foundation for the data-driven design of complex microbial communities for biological objectives and could be extended to other microbiome engineering applications including the production or degradation of health-relevant molecules, production of compounds to enhance plant growth, or sustainable biomanufacturing of valuable molecules.


Model-guided procedure guides the exploration of butyrate production landscapes

We aimed to explore the butyrate production landscape as a function of community composition to decipher microbial interactions shaping butyrate production. Exploring the butyrate production functional landscape is a major challenge because the number of sub-communities increases exponentially with the number of species43. To investigate the landscape, we developed a modeling framework to guide the iterative design of informative experiments (Fig. 1a, b). Microbial interactions can impact growth or metabolite production by influencing the availability of ecological niches or facilitating metabolite degradation. To capture these two types of interactions, we implemented a two-stage modeling framework to determine the contributions of microbial interactions to species growth and community assembly or metabolite production. In the first stage, a dynamic ecological model, referred to as the generalized Lotka–Volterra model (gLV), predicts community assembly. The second stage predicts metabolite production as a function of the resulting community composition (Fig. 1b). The gLV model is a set of coupled ordinary differential equations that capture the temporal change in species abundances due to monospecies growth parameters and inter-species growth interactions (see the “Methods” section)16. To estimate parameters for the gLV model, we use Bayesian parameter inference techniques to determine the uncertainty in our parameters based on biological and technical variability in the experimental data44.

Fig. 1: Iterative modeling framework to predict microbial community assembly and metabolic function.

a Two-stage modeling framework for predicting community assembly and function. The generalized Lotka–Volterra model (gLV) represents community dynamics. A Bayesian Inference approach was used to determine parameter uncertainties due to biological and technical variability. A linear regression model with interactions maps assembled community composition to metabolite concentration. Combining these two models enables prediction of a probability distribution of metabolite concentration from initial species abundances. b Design–Test–Learn cycle for model development. First, we use our model to explore the design space of possible experiments (i.e. different initial conditions of species presence/absence) and design communities that span a desired range of metabolite concentrations. Next, we use high-throughput experiments to measure species abundance and metabolite concentration. Finally, we evaluate the model’s predictive capability and infer an updated set of parameters based on the new experimental measurements. c Phylogenetic tree of the synthetic human gut microbiome composed of 25 highly prevalent and diverse species. Branch color indicates phylum and underlined species denote butyrate producers.

Our metabolite production model consists of a linear regression model with interaction terms mapping community composition (i.e. abundance of each species) at a specific time point to the concentration of an output metabolite at that time. This model was based on a phenomenological model of metabolite production used in bioprocess engineering expanded to microbial communities (see the “Methods” section). In the regression model, the first-order terms capture the monospecies production per unit biomass and the interaction terms represent the impact of inter-species interactions on metabolite production per unit biomass (i.e. deviations from constant metabolite production per unit biomass19). To estimate parameters for the regression model, we use Lasso regression to identify the most impactful interactions. Altogether, the composite gLV and regression model predicts the probability distribution of the metabolite concentration given an initial condition of species abundances (Fig. 1b, see the “Methods” section).

In metabolic and protein engineering, a design–test–learn cycle (DTL) has been used to design biomolecules45 or metabolic pathways46 with properties that satisfy desired performance specifications. We hypothesized that this engineering-inspired approach could be used to explore community design spaces and understand the composition–function mapping for butyrate production. Each cycle consisted of: (1) a design phase wherein we used our model informed by experimental observations to simulate a vast number of potential community compositions to identify sub-communities that satisfied biological objectives (i.e. desired butyrate concentrations), (2) a test phase wherein the selected sub-communities were assembled and species abundance and butyrate concentration were measured, and (3) a learn phase wherein patterns in our experimental data were used to estimate model parameters and to extract information about the key microbial interactions influencing community assembly and butyrate production.

Two-stage model enables efficient exploration of low richness community design space

To develop a system of microbes representing major metabolic functions in the gut, we selected 25 prevalent bacterial species from all major phyla in the human gut microbiome47 (Fig. 1c, Supplementary Data 1). This community contained five butyrate-producing Firmicutes which have been shown to play important roles in human health and protection from diseases (Fig. 1c, Supplementary Data 1). Due to the lack of a defined medium that universally supports the growth of gut microbes, most in vitro studies use undefined media, making it difficult to interrogate the effects of unknown components on community behaviors48. To maximize our knowledge of the substrates available to the communities, we developed a chemically defined medium to grow the synthetic communities (see the “Methods” section).

Based on previous studies using pairwise communities to predict higher richness community behaviors16,18,49, we hypothesized that training our model on single and pairwise community measurements would provide an informative starting point for mapping composition–function relationships determining butyrate production. To do so, we first measured time-resolved growth of single species and observed a wide variety of growth dynamics within each phylum, including disparate growth rates and carrying capacities (Supplementary Fig. 1). We assembled each pairwise community containing at least one butyrate producer (the focal species of our system50) and measured species abundance and the concentrations of organic acid fermentation products (including butyrate, lactate, succinate, and acetate) after 48 h. The pairwise consortia displayed a broad range of butyrate concentrations of 0–50 mM (Fig. 2a).

Fig. 2: Exploring the predicted butyrate production of 3–5 member communities with a model trained on 1–2 species communities.

a Categorical scatter plot of butyrate production in 1–2 species and 24–25 species communities. Solid datapoints indicate the mean of the biological replicates which are represented by transparent datapoints connected to the mean with transparent lines. The colors indicate which butyrate producer was present in the community with green indicating the presence of multiple butyrate producers. DP− and AC− indicate the 24-species communities lacking Desulfovibrio piger (DP) and Anaerostipes caccae (AC), respectively. b Predicted medians (black line) and 60 percent confidence intervals (gray bars) of butyrate concentration for all 3–5 member communities containing at least one butyrate producer (46,591 community predictions). Colored lines indicate median and 60 percent confidence interval of butyrate production of communities chosen for the experimental design with the color indicating the number of species in the community (156 communities). Subplots separate groups of communities based on the identities of the combination of butyrate producers specified. c Scatter plot of measured butyrate versus predicted butyrate for 3–5 species communities. Colors indicate which butyrate producer was present in the community as in a. Biological replicates (n = 1–5, depending on the community, exact values in source data) are indicated by transparent squares connected to the corresponding mean, which is represented by the large data point. Prediction error bars (x-axis) indicate the 60% confidence interval of the predicted butyrate distribution as in b, with the center being the median prediction. Dashed line indicates the linear regression between the mean measured butyrate and the median predicted butyrate. Indicated statistics are for Pearson correlation (two-sided). Source data are available in the Source Data file.

Single-species deletion communities have been used to investigate the contributions of individual species to a community function13,16. Therefore, we characterized the full 25-species community and each single-species deletion sub-community (i.e. 24-member consortia). In stark contrast to the pairwise communities, the 24- and 25-species communities exhibited similar low butyrate production (~2–22 mM Butyrate). The absence of only two species Desulfovibrio piger (DP) (~22 mM Butyrate) and Anaerostipes caccae (AC) (~2 mM Butyrate) resulted in a significant increase or decrease in butyrate concentration compared to the remaining 24-member and 25-member communities (Fig. 2a, Supplementary Fig. 2a). In addition, the concentrations of all measured organic acids spanned a much smaller range in the 24 and 25-member communities than the single and pairwise consortia (Supplementary Fig. 2b). These results suggest that high richness communities may trend towards a similar low butyrate-producing state that is difficult to change by the deletion of most single species and motivates a model-guided design strategy for exploring how community richness shapes butyrate production.

To determine whether individual and pairwise communities could predict community composition and butyrate production of low richness communities (i.e. 3–5 species), we estimated the parameters of our model based on experimental measurements. Our initial model was informed only by pairwise communities that contained at least one butyrate producer (Supplementary Data 2, M1) and was thus naïve to all interactions between non-butyrate producers. We assumed that the unobserved growth interactions could be predicted based on trends in measured interactions across phylogenetic relatedness (see the “Methods” section)16. However, the resulting model was unable to predict butyrate production in the 24-and 25-member communities (Supplementary Fig. 3), which we attributed to missing information about non-butyrate producer interactions in our training data. Thus, we used our model to explore a low richness design space of 3–5 species communities based on the assumption that pairwise interactions would be more observable in low than high richness (i.e. >10 species) communities to identify an improved parameter estimate for non-butyrate producer interactions.

We used our initial M1 model to predict the probability distributions of butyrate production for all 3–5 species communities containing at least one butyrate producer (46,591 communities). The predicted butyrate production varied substantially based on the combination of butyrate producers present in each community (Fig. 2b). In addition, we observed variations in the shapes of the probability distributions based on how the uncertainty in growth prediction propagated through the regression model. For instance, the butyrate concentration in the AC, Roseburia intestinalis (RI) pairwise community was lower than the AC monoculture, even though RI was low abundance, resulting in a high magnitude negative parameter in the regression model for a production interaction between AC and RI (Supplementary Data 3). Due to the uncertainty in the growth parameters, the model predicted that RI would grow substantially in a subset of the 3–5 member simulations containing both AC and RI. The variability in predicted RI growth combined with the high magnitude negative interaction parameter between AC and RI resulted in distributions where the median butyrate concentration was high (i.e. for simulations where RI did not grow substantially), and the 60 percent confidence interval extended to 0 mM butyrate (i.e. when RI grew substantially) (Fig. 2b). In sum, these results demonstrate that the shape of the predicted probability distributions can provide information about the uncertainty in species growth based on experimental observations.

Based on the simulations, we selected 156 communities that spanned a broad range of predicted butyrate concentrations across the butyrate producer groups to evaluate experimentally (Fig. 2b). The model prediction exhibited good agreement with the rank order of butyrate production (Spearman rho = 0.84, p = 9*10−43) (Fig. 2c) and species abundance (Spearman rho = 0.76, p = 3*10−122) (Supplementary Fig. 4a–d), demonstrating that our initial model could predict a wide range of butyrate production in low richness communities.

Composition–function landscape predicts contributions of growth and production interactions

Encouraged by our model’s predictive ability, we sought to explore composition–function relationships in higher richness communities (i.e. >10 species) using a model with updated parameters based on measurements of the 3–5 member communities (Supplementary Data 2, M2). Since the human gut microbiome exhibits functional redundancy in butyrate pathways51, we first used model M2 to simulate the assembly of all communities containing all five butyrate producers (5-butyrate producer or 5BP, 1,048,576 total) to map the composition–function landscape for butyrate production (Fig. 3a). In addition, we simulated the assembly of all communities containing the four butyrate producers excluding AC (4-butyrate producer or 4BP, 1,048,576 total) to understand how the composition–function landscape changes in the absence of the most productive butyrate producer (Fig. 3b). The majority of 5BP communities were predicted to have higher butyrate concentration than any of the 4BP communities (Fig. 3a, b), consistent with the substantial decrease in butyrate in the AC deletion community observed previously (Fig. 2a).

Fig. 3: Community composition–function landscapes reveal key role of production interactions on A. caccae and negative impact of D. piger on butyrate production.

a Scatter plot of predicted total butyrate producer abundance versus predicted butyrate concentration for all possible communities in which all five butyrate producers are present (1,048,576 communities). Histograms indicate the butyrate concentration distribution across the given axis. Communities are colored according to the presence (red) or absence (blue) of D. piger (DP). Blue and red dashed lines indicate the linear regression of communities with (red, y = −2.3x + 25.8, r = −0.34) or without (blue, y = 3.1x + 28.0, r = 0.76) DP. The white star indicates the full 25-member community and black star indicates the community of five butyrate producers alone. Large data points indicate communities chosen for experimental validation. Black triangles indicate leave-one-out communities, black circles indicate designed communities, and gray squares indicate random communities, with open/closed symbols indicate the absence/presence of DP. b Scatter plot of predicted total butyrate producer abundance versus predicted butyrate concentration for all possible communities in which all four butyrate producers excluding AC are present (1,048,576 communities). Histograms indicate the butyrate concentration distribution. Gray dashed line indicates the mean predicted butyrate concentration across all communities. Black dashed line indicates the linear regression of all communities (y = 13.2x−0.1, r = 0.64). The white star indicates the full 24-member community and the black star indicates the four butyrate producers alone. Large data points indicate communities chosen for experimental validation. c, d Scatter plots of experimental measurements of total butyrate producer abundance versus butyrate concentration for communities with (c) and without (d) AC. Data point shapes correspond to the legends in (a) and (b) and represent the mean of biological replicates, which are shown as small datapoints connected to the corresponding mean with lines (n = 2 except for 5 BP, 24 and 25 species communities where n = 5–8). Dashed line in (d) indicates the linear regression (y = 8.9x−0.5). e Comparison of butyrate concentration in communities from a and b with and without DP for both the designed and random experimental sets for the 5BP communities and designed set for the 4BP communities. Data point shapes correspond to the legends in a and b and represent the mean of biological replicates, which are shown as small datapoints connected to the corresponding mean with lines. Box and whisker plots represent the median (center line), quartiles (box), and range (whiskers) of the mean butyrate concentration for each community, excluding outliers (points outside 1.5 times the interquartile range). Indicated p-values are from a Mann–Whitney U test (5BP Designed: n = 28 for DP+ and n = 54 for DP−; 5BP Random: n = 27 for DP+ and n = 55 for DP−; 4BP: n = 42 for DP+ and n = 42 for DP−). f Butyrate concentration per unit biomass as a function of sulfide concentration after 24 h of growth. Butyrate concentration per biomass was normalized to the no sulfide condition. Circles indicate the mean of biological replicates, with individual replicates shown as transparent squares (n = 4). Inset: Butyrate concentration per biomass (mM OD600−1) for AC with and without the addition of 1.6 mM sulfide across time (n = 3). Endpoint sulfide concentrations were higher in the data shown in the inset than in the main figure (Supplementary Fig. 6). Source data are available in the Source Data file.

The relationship between butyrate producer abundance and butyrate can provide insight into the contributions of growth and production interactions in the presence and absence of AC (Fig. 3a, b). If butyrate producer abundance correlates with butyrate, then growth interactions drive butyrate production, whereas the contributions of production interactions would reduce the strength of this correlation. The 5BP communities were predicted to have a large contribution of production interactions as evidenced by a weak correlation between butyrate concentration and butyrate producer abundance (Spearman rho = 0.17, p < 0.0001) (Fig. 3a). By contrast, the predicted butyrate producer abundance and butyrate concentration exhibited a stronger correlation in 4BP communities (Spearman rho = 0.57, p < 0.0001), suggesting that growth interactions dominated butyrate production (Fig. 3b). The 5BP communities were partitioned into low and high butyrate production clusters defined by the presence or absence of DP due to strong negative production interactions between DP and the butyrate producers (Fig. 3a), consistent with the increase in butyrate concentration in the DP deletion community compared to the full community (Fig. 2a).

To validate our model’s prediction of the composition–function landscapes of the 4BP and 5BP communities, we designed a subset of the communities to test experimentally by focusing on communities that deviated from the average butyrate production. Thus, for the 5BP landscape, we designed 28 low- and 54 high-butyrate communities each with 11–17 species. For comparison with the designed set, we randomly selected 82 communities with the same range of species richness (Fig. 3a). The 82 model-designed communities exhibited a higher variance in mean butyrate production than the 82 randomly selected communities (designed communities s.d. = 11 mM, random communities s.d. = 8 mM, Levene test, p = 0.043) (Fig. 3a, c), demonstrating a major advantage of the model-guided DTL approach for designing communities that span a wide range of functional output levels. In addition, these communities exhibited no correlation between butyrate producer abundance and butyrate concentration, consistent with the predicted weak correlation (Fig. 3a, c) and demonstrating the major role of production interactions in 5BP communities. Notably, many of the high richness communities produced substantially higher butyrate than the 5-butyrate producer community alone, highlighting an additional advantage of our model to identify highly functional communities in the vast composition–function landscape. Further, these results demonstrate that organisms that do not directly contribute to butyrate production can still have a major contribution by modifying butyrate producer growth or production. In our system, AC has the unique capability to transform lactate to butyrate52 in addition to production of butyrate from sugars (Supplementary Fig. 5a), suggesting that the ability to use an alternative metabolic pathway depending on nutrient availability may be a key determinant of the contribution of production interactions.

The set of 84 4BP communities containing 11–19 species exhibited a very strong correlation between butyrate producer abundance and butyrate concentration (Spearman rho = 0.78, p = 8*10−19), consistent with the strong correlation predicted by our model (Fig. 3d). By contrast with the 5BP communities, the 4-butyrate producer community exhibited higher butyrate than all of the designed high richness communities (Fig. 3d), demonstrating that the non-butyrate producers inhibited butyrate production in the absence of AC, primarily through growth interactions. In sum, our model was able to decipher the contributions of growth and production interactions in high-richness communities (i.e. >10 species) based on measurements of lower-richness communities (i.e. 1–5 species). Further, these results demonstrate that the presence of a single species can transform the composition–function landscape by shifting the type of interactions driving a metabolic function between growth and production.

Hydrogen sulfide production by DP inhibits butyrate production

Consistent with our model predictions, communities containing DP had lower butyrate concentration than those without DP in both the designed and randomly selected 5BP communities and the 4BP communities (Fig. 3e). Our model parameters suggested that this was due to a negative production interaction between DP and the butyrate producer AC (Supplementary Data 3, Model M2). Thus, we sought to investigate the molecular basis of this interaction.

Since AC was a highly productive butyrate producer (Fig. 2a), we first considered resource competition between AC and DP. While AC and DP have previously been shown to compete for lactate in vitro53, excess lactate was present in communities containing both DP and AC, suggesting that competition over limited lactate was not a major determinant of the negative production interaction (Supplementary Fig. 5b).

Since some Desulfovibrio species have the capability to use butyrate as an energy source54, we tested whether decreased butyrate in the presence of DP could be due to butyrate consumption. To investigate this hypothesis, we grew DP in media supplemented with different concentrations of sodium butyrate ranging between 0 and 100 mM and measured the butyrate concentration after 48 h of incubation. The presence of DP did not alter the concentration of butyrate in any condition relative to media controls, indicating that consumption or degradation of butyrate by DP was not a major factor contributing to the negative production interaction (Supplementary Fig. 5c).

One unique metabolic characteristic of DP in our system is the capability to reduce sulfate to hydrogen sulfide (H2S). We next tested if H2S contributed to the negative impact of DP on butyrate production. To test this hypothesis, each butyrate producer was grown in media supplemented with sulfide in a range of concentrations similar to those observed in DP monoculture. Notably, the butyrate concentration per unit biomass decreased with increasing sulfide concentration for CC, FP, ER, and RI (Fig. 3f). For AC, butyrate concentration per unit biomass was not substantially different in the presence and absence of sulfide, but we observed substantially lower sulfide concentration at the end of the experiment, which we attributed to accelerated loss of H2S to the gas phase because of bubbling associated with AC’s fast growth (Supplementary Fig. 6a–e). Thus, we grew AC with addition of 1.6 mM sulfide with sealed tubes to minimize loss of H2S, and performed time-series measurements of butyrate concentration, sulfide concentration, and biomass. Our results showed lower butyrate production per unit biomass relative to the sulfide-lacking control (Fig. 3f), suggesting that this trend was due to higher concentrations of sulfide maintained until later time points (Supplementary Fig. 6f). Our results suggest that H2S production by DP contributes to reduced butyrate concentration in communities. In addition, these data suggest that H2S produced by the host and constituent members of the gut microbiota could shape butyrate production in the human gut microbiome.

Model informed by high richness communities can accurately predict butyrate production

While model M2 elucidated global trends in the composition–function landscapes and identified the key negative production interaction by DP, the model required additional information to be quantitatively predictive of high richness communities (Supplementary Figs. 4e–h and 7). Therefore, we sought to continue the DTL paradigm by updating the parameters of our model with new measurements of high richness communities. We updated our model parameters by training on a subset of high richness communities: the random set of 5BP communities (82 communities) and a randomly sampled half of the 4BP communities (42 communities) (Supplementary Data 2, M3). Notably, the updated model M3 accurately predicted the butyrate concentration (Spearman rho = 0.86, p = 9*10−45) and species abundances (Spearman rho = 0.82, p < 0.0001) of the remaining high richness communities, demonstrating that our model could explain the quantitative trends in the high richness communities when provided with sufficiently informative training data (Fig. 4a, Supplementary Fig. 4i–l).

Fig. 4: Model accurately predicts butyrate production and provides insight into the combinatorial effects of pH and resource competition on butyrate production of A. caccae.

a Scatter plot of predicted versus measured butyrate concentration for high richness communities. Model parameters were updated based on half of the high richness community data and used to predict the remaining half. Transparent data points indicate biological replicates and are connected to the corresponding mean by transparent lines (n = 2–8, depending on the community). Solid gray line indicates x = y. Dashed line indicates linear regression of prediction versus mean measurement (y = 0.99x−4.6, Pearson correlation two-sided r = 0.86, p = 1*10−44). b Schematic representing proposed relationship between pH and sugar competition in modulating butyrate production of AC in high richness communities. Red edges denote processes that negatively impact butyrate production and blue edges represent processes that enhance butyrate production. The abundance of “Acidifiers” were positively correlated with lactate concentration and negatively correlated with pH in high richness communities. The abundance of “pH Buffers” were positively correlated with pH in high richness communities. Note that species contributions to these processes are expected to be context-dependent. Heatmap represents proposed qualitative butyrate landscape as a function of the strength of resource competition for sugars and environmental pH. c Heatmap of AC monoculture butyrate yield per biomass with varying initial pH and sugar concentrations. Values indicated are the mean of three biological replicates for each condition. Source data are available in the Source Data file.

We next sought to identify key microbial interactions impacting species growth using the inferred model parameters using our predictive model M3 (Fig. 4a). Negative interactions (<−0.05 h−1 (OD600 Species j)−1) dominated the network, representing 49.8% of the interspecies interaction parameters (Supplementary Fig. 4j). By contrast, 1.7% of interactions were positive (>0.05 h−1 (OD600 Species j)−1) (Supplementary Fig. 4j), consistent with previous observations of the prevalence of negative interactions in microbial communities16,55. To understand how inter-species growth interactions vary across chemical composition contexts, we compared the inferred inter-species interaction coefficients in the M3 growth model to those from a previous study that developed a gLV model to predict a 12-member subset of our community (PC, BV, BO, BT, BU, DP, CA, EL, FP, CH, BH, and ER) in a different undefined media16 and found that 27 parameters with magnitude >0.1 h−1 (OD600 species j)−1 shared a sign and only five had opposite sign (Supplementary Fig. 8). The high percentage (84%) of qualitatively consistent interaction coefficients inferred based on measurements in two different environmental contexts provides confidence in using gLV parameter estimates as prior information to forecast system behaviors in new environments. In sum, our modeling framework representing pairwise interactions could accurately predict community composition and butyrate production in low and high richness communities and could be used to decipher key microbial interactions impacting metabolic outputs.

The predictive capability of the model of butyrate production in high richness communities required information from other high richness communities, consistent with theoretical work suggesting predictive models of microbiome assembly could be constructed with a fewer number of measurements if the training set includes high richness communities43. Based on this result, we hypothesized that an effective experimental design for predicting high richness communities would involve measurements of randomly selected high richness communities in lieu of the pairwise communities. To test this hypothesis, we constructed a new model based on the measurements of single species and the random set of 5BP communities (Supplementary Data 2, M4, 82 communities) and compared the predictive capabilities of model M4 to model M1, which was trained on single species and pairwise communities (110 pairwise communities). While these models were trained on a similar number of communities, M4 accurately predicted the rank order of butyrate production in high richness communities containing all 5 butyrate producers (Spearman rho = 0.87, p = 2*10−25, Supplementary Fig. 9a), while M1 was unable to predict butyrate production (Spearman correlation not significant, p = 0.68, Supplementary Fig. 9b). However, M1 outperformed M4 in predicting the rank order of butyrate production for the 3–5 species communities (M1: Spearman rho = 0.84, p = 9*10−43, Fig. 2c; M4: Spearman rho = 0.43, p = 1.4*10−8, Supplementary Fig. 9c) as well as the high richness communities lacking AC (M1: Spearman rho = 0.5, p = 1*10−6, Supplementary Fig. 9b; M4: Spearman rho = 0.21, p = 0.05, Supplementary Fig. 9a), indicating the importance of including variation in the composition of functional organisms that matches the variations in the design space of interest. For example, our results indicate that the predictive capability of the model would be improved by training on measurements of communities with all butyrate producers for prediction of communities with all butyrate producers. However, the model’s predictive capability would be improved by training on combinations of butyrate producers for prediction of communities containing different sets of butyrate producers.

To further explore experimental designs for building predictive models of microbial communities, we investigated whether the designed community datasets that spanned a wider range of butyrate concentrations would provide more information than randomly selected community datasets for accurate prediction of butyrate production. To test this hypothesis, we trained two additional models including M5, which was trained on the data from M2 plus 80% of the measurements of random 5BP communities and M6, which was trained on the data from M2 plus 80% of the measurements of designed 5BP communities (Supplementary Data 2). We used these models to predict the same validation set consisting of the remaining 20% of high richness communities from both the random and designed sets. Model M6 outperformed model M5 (M5: Spearman rho = 0.75, p = 3*10−7, Supplementary Fig. 10a; M6: Spearman rho = 0.81, p = 5*10−9, Supplementary Fig. 10b), although both models predicted the rank order of butyrate production with high accuracy. These results demonstrate an advantage of our DTL approach for developing predictive models by using intermediate models to design informative datasets.

Environmental pH and resource competition impact butyrate production

Guided by our model and experimental data, we sought to investigate ecological and molecular factors driving butyrate production beyond H2S. We first hypothesized that the low butyrate productivity of specific communities could stem from a global reduction in metabolic activities for the conversion of sugars to fermentation end products. However, the amount of total carbon in acetate, lactate, and succinate was inversely proportional to the amount of carbon in butyrate in high richness communities (Supplementary Fig. 11a), indicating that metabolic tradeoffs dictated the production of specific fermentation end products rather than an overall decrease in metabolic activity. In addition, communities with low butyrate production displayed high acetate concentrations (Supplementary Fig. 11b), suggesting that acetate was not the limiting substrate for butyrate production in high richness communities. These results differ from previous studies that showed acetate was limiting for butyrate production in low richness communities56,57, suggesting that the mechanisms influencing butyrate production could vary depending on environmental factors such as species richness.

We next sought guidance from specific model parameters for insights into ecological and molecular mechanisms of butyrate production. The regression model M3 identified strong positive production interactions towards AC from Clostridium asparagiforme (CG), Eggerthella lenta (EL), Dorea formicigenerans (DF), and Collinsella aerofaciens (CA) that enabled quantitatively accurate predictions of butyrate production (Supplementary Data 3, Model M3). The identification of these interactions upon inclusion of high richness community observations in our model was likely due to increased number of community measurements including each of these species and AC. In the 2–5 species communities, there were only 2–10 examples of communities containing each of these species and AC, whereas in the high richness communities used to train Model M3, there were 28–36 examples containing each species and AC. Due to the improved statistical power of observing pairwise interactions, this result further motivates the use of higher complexity communities to efficiently decipher key inter-species interactions impacting community functions.

Three of these species (EL, CA, and DF) were positively correlated with pH in the high richness communities and EL uniquely increased the pH in monoculture (Supplementary Fig. 12a). Therefore, we directed our attention to environmental pH, which has a major impact on fermentation end product formation by gut microbiota58,59,60,61. In our experiments, the correlation between butyrate concentration and pH was stronger in 5BP communities (Spearman rho = 0.73, p = 1*10−57) than in 4BP communities (Spearman rho = 0.29, p = 1*10−4) (Supplementary Fig. 12b). Additionally, previous work found that supplemented lactate was converted entirely to butyrate, propionate, and acetate at pH 5.9 and 6.4, but not at pH 5.2 in batch cultures of fecal inocula60. This abrupt metabolic shift at low environmental pH was attributed to inhibition of lactate consumption by AC and E. hallii (a closely related lactate-consuming butyrate producer in the clostridial cluster XIVa). These observations combined with the fact that lactate-utilizing butyrate producers, including AC, have been shown to prefer glucose over lactate and produce ~5x more butyrate per unit biomass when grown on lactate versus glucose52, led us to develop the following mechanistic hypothesis: AC would switch between low butyrate (transformation of sugars into butyrate) and high butyrate (transformation of lactate into butyrate) producing states depending on the environmental pH and availability of key resources (Fig. 4b).

To test the proposed hypothesis, we grew the AC monoculture in media supplemented with acetate and with a broad range of sugar concentrations to represent the varying degrees of resource competition and initial environmental pH values. Consistent with our hypothesis, the butyrate production per unit biomass was inversely related to the sugar concentration (i.e. increasing strength of resource competition) and increased with the initial environmental pH (Fig. 4c, Supplementary Fig. 13). Based on these data, in communities containing pH buffering species such as EL that maintain the pH above a threshold, the butyrate production per unit biomass is dependent on the strength of competition for limited pools of sugars, which support high growth rates and low butyrate production per unit biomass. After sugars are depleted, AC uses an alternative metabolic pathway that transforms lactate into butyrate and enables low growth rates and high butyrate production per unit biomass. The timing of this metabolic shift depends on the rate of sugar consumption and thus the strength of resource competition. In low pH environments, transformation of lactate to butyrate is inhibited and thus AC competes for limited sugars, resulting in butyrate production that is proportional to growth (i.e. no production interactions).

In sum, the proposed mechanism indicates that in a pH-buffered community, resource competition over energy-rich nutrients (i.e. sugars) could enhance butyrate production by AC by triggering a shift in the activity of metabolic pathways from a low to high butyrate-producing state. Environmental pH modification and strong resource competition are more likely to simultaneously occur in high richness communities, which may explain why models trained only on lower-richness communities (M1 and M2 models) were missing the positive production interactions attributed to the combination of these mechanisms. This analysis highlights that our interpretable modeling framework can provide key biological insights into ecological and molecular mechanisms driving community metabolic functions and can illuminate alternative metabolic states by separately quantifying growth and production interactions.

Biodiversity constrains the achievable range of butyrate production

The relationship between species richness and ecosystem functions in randomly sampled microbial communities has frequently approximated a saturating function62. However, the shape of this function depends on contributions of each species to the given ecosystem function and microbial interactions63. To provide insight into the design of communities that display an ecosystem function within desired specifications, we sought to understand the relationship between species richness and the distributions of butyrate and total biomass production by simulating all 33,554,431 possible sub-communities of our 25-species system (Fig. 5). The total community biomass represents a broad function to which all species can contribute and butyrate production represents a specialized function to which only the five butyrate producers can directly contribute.

Fig. 5: Predicted biodiversity–ecosystem function relationships for total biomass and butyrate production.

Violin plots showing the distribution of predicted (a) total biomass or (b) butyrate concentration for all possible communities at each richness level. Solid lines indicate the median and dashed lines indicate the 5th and 95th percentiles of each distribution (n at each community richness value is equal to 25 choose k, where k is the richness).

The median predicted total biomass is a saturating function of community richness and the upper limits of the distributions peak in the 8–12 species range (Fig. 5a). By contrast, the predicted butyrate concentrations exhibit multimodal distributions at moderate richness and shift to a unimodal distribution at high species richness centered around the 25-species community butyrate concentration (Fig. 5b). For both functions, the median total biomass or butyrate increases as a function of richness indicating that there is a higher probability that a community chosen at random from high richness communities will exhibit high butyrate production. However, the 95th percentiles of the distributions peak at 15 species for butyrate and 12 species for total biomass and display a decreasing trend with richness beyond these thresholds. In sum, increasing species richness increases butyrate and total biomass production on average, while constraining the maximum possible values above a certain richness limit. These results have implications for the design of communities with optimized functional properties by highlighting an optimal range in species richness for identifying communities whose functions deviate from the average behavior.


We demonstrated that community-level functions can be designed using a modeling framework that predicts community assembly and then maps community composition to butyrate production. Our results showed that manipulating the presence/absence of species that do not directly contribute to butyrate production can cause butyrate concentration to vary over a wide range (0–20 or 10–60 mM butyrate in the absence and presence of AC, respectively), highlighting the critical role of microbial interactions on a specialized metabolic function. Benchmarking our model’s butyrate prediction accuracy (Fig. 4a, Pearson r = 0.86) against similar DTL approaches for optimizing metabolite production by engineering individual microbes29,30 (Pearson r = 0.48–0.78) demonstrates that our model is quite accurate. We use our model to show that while ecosystem functions such as butyrate and total biomass production generally increase and saturate as a function of community richness as previously observed62, richness above a threshold can constrain the minimum and maximum achievable functional outputs of the system. Such constraints may limit the broad efficacy of interventions that attempt to alter microbiome functions and increase diversity without expanding the set of available organisms, such as autologous FMT64.

Our results demonstrated that accurate prediction of community function in high richness communities (i.e. >10 species) required measurements of communities at similar richness. Since our model captured only pairwise interactions, a potential explanation of the improved performance of models trained on similar community richness is due to an increased number of observations of pairs of species, which in turn increases the statistical likelihood of accurately inferring a given pairwise interaction. However, an alternative interpretation of the importance of high richness community observations is that our model is approximating communities shaped by higher-order interactions with combinations of pairwise interaction terms. Corroborating the presence of higher-order interactions, butyrate production by AC was shaped by a combinatorial impact of environmental pH modification and competition over sugars. Therefore, the predictive capability of computational models of microbial communities could be improved by training on communities that span a range of species richness levels, rather than implementing a standard procedure of characterizing pairwise communities16,18,49. Consistent with this proposed experimental design approach, recent theoretical work has demonstrated a similar perspective43. A key difference between low and high richness communities is that constituent members of high richness communities compete more strongly for limited resources and exploit a higher fraction of the available ecological niches, which can alter the metabolic pathway activities in certain species. Further, the combination of strong resource competition with other mechanisms such as pH modification may only occur in communities above a richness threshold such that these combinatorial effects can shape ecological networks differently as a function of species richness. While further work is required to identify whether the difference in our model predictions upon inclusion of high richness community observations is due to higher-order interactions or simply improved statistical inference, it is promising that our pairwise interaction modeling approach was nevertheless able to guide an ecological and mechanistic understanding of butyrate production.

A major strategy for microbiome modulation involves administration of non-resident species predicted to perform a target beneficial function65, including butyrate producing bacteria41. Due to the plasticity of microbial metabolism in response to environmental stimuli, our results demonstrate that it is important to consider both how the resident community will enable growth of therapeutic bacteria as well as promote the desired metabolic states. Indeed, our results showed that the abundance of butyrate producers may not correlate with butyrate production in the presence of AC due to production interactions that influence the activity of metabolic pathways (Fig. 3c). Notably, we identified high richness communities with higher butyrate production than the five butyrate producers alone (Fig. 3c). These results suggest that the effectiveness of defined bacterial therapies that aim to enhance butyrate production could be improved by manipulating the composition of non-butyrate producers in the microbiome, either through addition of butyrate-enhancing species (i.e. pH-buffering organisms or competitors that promote high butyrate activity states) or microbiome engineering strategies for targeted depletion of butyrate-inhibiting species (e.g. sulfur-reducing bacteria).

While our approach lacks a host-interaction component, the mechanistic nature of insights derived from our model provide generalizable insight into understanding community-level functions in the mammalian gut environment. For instance, DP has been previously associated with IBD66, attributed to its H2S activity that inhibits the oxidation of short chain fatty acids by the host via short-chain acyl-CoA dehydrogenase67. As highlighted by our results, an additional mechanism through which H2S producers could contribute to IBD is by inhibiting bacterial production of the anti-inflammatory metabolite butyrate. In a previous study, cecal contents of gnotobiotic mice colonized with an 8-member community plus DP contained less propionate and elevated 3-hydroxybutyrate (upstream intermediate of butyrate production) compared to the DP deletion community (8-member community alone). In this study, the butyrate concentration did not vary between conditions, which could have been masked by host butyrate consumption as the concentration was very low for both communities (<1 mM)68. These observations could be explained by H2S inhibition of bacterial production of butyrate and propionate, which share similar metabolic pathways, consistent with the accumulation of 3-hydroxybutyrate in the former case and decreased propionate production in the latter. In a separate study, a chemical inhibitor of H2S production resulted in enhanced butyrate production in an anaerobic digestor community, corroborating our results that H2S can inhibit butyrate production across a broad range of communities69. These mechanistic insights could explain associations between inflammatory diseases and other sulfur-reducing bacteria, such as Bilophila wadsworthia70, which is associated with reduced expression of microbial butyrate synthesis pathways in a mouse model of colitis71. At the molecular level, H2S has been observed to form CoA-persulfide through a reaction with coenzyme A, an essential cofactor for SCFA synthesis72. Also, H2S has recently been shown to modulate bacterial metabolism in the gut microbiome via post-translational modification of a wide range of enzymes73. These observations combined with our results provide a strong foundation for future work to understand the molecular basis by which H2S influences bacterial SCFA production and the resulting implications on the host physiology and disease states.

The gut microbiome is exposed to a wide range of dietary substrates and the temporal changes in resource availability can dramatically shape community composition and metabolic activities74. In this work, we constructed models of community dynamics and function in a single media under a batch growth period without considering additional physiologically relevant media factors such as dietary fibers and host-secreted factors. While the primary resources in our media comprise simple monomeric compounds rather than some complex substrates found in dietary components (i.e. sugars and amino acids rather than fiber and proteins/peptides), our understanding using this media environment provides a strong foundation which can be extended to understand the impacts of dietary variation on community function. Future work will extend our approach to build model-guided in vitro experimental pipelines for predicting microbiome function in vivo by incorporating these additional physiologically relevant factors as design variables to enable simultaneous exploration of the community and media factor design spaces. Such a model could be used to identify communities with functional responses that are robust to changes in the chemical environment, which may be good candidates for consistent function in vivo. Additionally, host–microbe interactions could be studied in a controlled manner by using co-cultures of synthetic microbiomes with host tissues75.

While we focused on a predicting a single function (butyrate production), many microbial metabolites directly impact host physiology, with potential combinatorial effects76. Thus, designing microbiomes to elicit desired systemic responses from the host may require multifunctional bacterial therapeutic design. Our approach can be extended to design multiple functions by using a multi-output regression as the function model77. Alternatively, model interpretability could be sacrificed for potential increases in predictive ability by leveraging flexible machine learning78. An additional consideration for such design is that the underlying metabolic networks may drive tradeoffs between production of different molecules, thus constraining the design space. Such relationships could be quantified using flux variability analysis79 of genome-scale metabolic models80, providing potentially useful quantitative constraints for multifunctional synthetic microbiome design.

In sum, our methods provide a flexible foundation to explore design strategies for building microbial communities with target functions from the bottom-up and to understand molecular and ecological mechanisms influencing community-level functions. Such methods will advance the design of synthetic microbiomes with predictable functions for deployment into real-world environments. Beyond understanding and manipulating the human gut microbiome to benefit human health, our approach could be used to harness microbiome properties to address numerous challenges facing society. For example, designing microbiomes for efficient nitrogen fixation to reduce the need for fertilizers, degradation of contaminants for detoxification of wastewater and environmental cleanup, and the production of high value compounds from renewable resources for sustainable bioprocessing applications.


Strain maintenance and culturing

All anaerobic culturing was carried out in an anaerobic chamber with an atmosphere of 2.5 ± 0.5% H2, 15 ± 1% CO2 and balance N2. All prepared media and materials were placed in the chamber at least overnight before use to equilibrate with the chamber atmosphere. The strains used in this work were obtained from the sources listed in Supplementary Data 1 and permanent stocks of each were stored in 25% glycerol at −80 °C. Batches of single-use glycerol stocks were produced for each strain by first growing a culture from the permanent stock in anaerobic basal broth (ABB) media (HiMedia or Oxoid) to stationary phase, mixing the culture in an equal volume of 50% glycerol, and aliquoting 400 μL into Matrix Tubes (ThermoFisher) for storage at −80 °C. Quality control for each batch of single-use glycerol stocks included (1) plating a sample of the aliquoted mixture onto LB media (Sigma-Aldrich) for incubation at 37 °C in ambient air to detect aerobic contaminants and (2) Illumina sequencing of 16S rDNA isolated from pellets of the aliquoted mixture to verify the identity of the organism. For each experiment, precultures of each species were prepared by thawing a single-use glycerol stock and combining the inoculation volume and media listed in Supplementary Data 1 to a total volume of 5 mL (multiple tubes inoculated if more preculture volume needed) for stationary incubation at 37 °C for the preculture incubation time listed in Supplementary Data 1. All experiments were performed in a chemically defined medium (DM38), the composition of which is provided in Supplementary Data 4. This medium was developed by beginning with a previously studied medium that enabled the growth of a subset of our species, replacing some undefined components with defined alternatives (e.g. replacing casamino acids with a defined mixture of purified amino acids), and iteratively adding components to support the growth of diverse gut bacterial species. Our final medium supported the individual growth of all organisms except Faecalibacterium prausnitzii.

Monoculture dynamic growth quantification

Each species’ preculture was diluted to an OD600 of 0.0066 (Tecan F200 Plate Reader, 200 μL in 96-Well Microplate) in DM38 and aliquoted into three replicates of 1 mL each in a 96 Deep Well (96DW) plate and covered with a semi-permeable membrane (Diversified Biotech) and incubated at 37 °C without shaking. At each time point, samples were mixed and OD600 was measured by diluting an aliquot of each sample into phosphate-buffered saline (PBS) to be within the linear range of the plate reader.

Community culturing experiments and sample collection

To produce all desired community combinations, each species’ preculture was diluted to an OD600 of 0.0066 in DM38. Community combinations were arrayed in 96DW plates by pipetting equal volumes of each species’ diluted preculture into the appropriate wells using a Tecan Evo Liquid Handling Robot inside an anaerobic chamber. Each 96DW plate was covered with a semi-permeable membrane and incubated at 37 °C. After 48 h, 96DW plates were removed from the incubator and samples were mixed. Cell density was measured by pipetting 200 μL of each sample into one microplate and diluting 20 μL of each sample into 180 μL of PBS in another microplate and measuring the OD600 of both plates (Tecan F200 Plate Reader). We selected the value that was within the linear range of the instrument for each sample. 200 μL of each sample was transferred to a new 96DW plate and pelleted by centrifugation at 2400×g for 10 min. A supernatant volume of 180 μL was removed from each sample and transferred to a 96-well microplate for storage at −20 °C and subsequent metabolite quantification by high performance liquid chromatography (HPLC). Cell pellets were stored at −80 °C for subsequent genomic DNA extraction and 16S rDNA library preparation for Illumina sequencing. In some experiments, 20 μL of each supernatant was used to quantify pH using a phenol Red assay81. Phenol red solution was diluted to 0.005% weight per volume in 0.9% w/v NaCl. Bacterial supernatant (20 μL) was added to 180 μL of phenol red solution, and absorbance was measured at 560 nm (Tecan Spark Plate Reader). A standard curve was produced by fitting the Henderson–Hasselbach equation to fresh media with a pH ranging between 3 and 11 measured using a standard electro-chemical pH probe (Mettler-Toledo). We used Eq. (1) to map the pH values to the absorbance measurements.

$${{\mathrm{{pH}}}}={\mathrm{{p}}}{K}_{{\mathrm{{a}}}}+b\cdot {{\log }}_{10}\left(\frac{A-{A}_{{\min }}}{{A}_{{\max }}-A}\right)$$

The parameters b and pKa were determined using a linear regression between pH and the log term for the standards in the linear range of absorbance (pH between 5.2 and 11) with Amax representing the absorbance of the pH 11 standard, Amin denoting the absorbance of the pH 3 standard and A representing the absorbance of each condition.

Sulfide titration experiment

Sodium sulfide stock solution and standards were prepared in nitrogen purged water and 1% zinc acetate, respectively, and stored in stoppered, capped Hungate tubes at maximum fill volume to limit volatilizing and oxidizing of sulfide during setup. Each species’ preculture was diluted to an OD600 of 0.0066 in DM38. Four falcon tubes of 1.11× concentrated DM38 were aliquoted, and brought to target sulfide concentration by adding an appropriate volume of sodium sulfide stock solution and a balance of sodium chloride solution, of equimolar sodium content, to a final media volume of 50 mL and DM38 of 1×. This procedure was performed one sulfide concentration at a time, followed by aliquoting into 1.6 mL microfuge tubes, inoculation of each strain, and capping to minimize sulfide volatizing during setup. FP cultures were supplemented with 1 g/L bacto yeast extract (BD) and 33 mM sodium acetate (Sigma Aldrich) prior to capping microfuge tubes. Capped microfuge tubes were incubated at 37 °C for 24 h at which point the OD600 was measured (Tecan F200 Plate Reader, 200 μL in 96-Well Microplate) and supernatants were collected for organic acid quantification via HPLC. Initial sulfide concentrations were measured in blank microfuge tube aliquots of each sulfide concentration via the Cline assay82, to account for degradation of the sulfide stock during experimental setup. Briefly, 14.8 μL of Cline reagent was added to 185.2 μL of culture supernatant and incubated in a sealed 96-Well Microplate for 2 h before diluting in 1% zinc acetate (Fisher) to the linear range of absorbance measurement at 667 nm (Tecan Spark Plate Reader). A standard curve was prepared similarly using sodium sulfide fixed in 1% zinc acetate. The Cline reagent was prepared by dissolving 1.6 g N,N-dimethyl-p-phenylenediamine sulfate (Acros Organics) and 2.4 g FeCl3 (Fisher) in 100 mL 50% v/v HCl (Fisher) in water.

pH and sugars cross-titration experiment

In the pH and sugar titration experiment, the media DM38 was supplemented with 33 mM sodium acetate (Sigma) and excluded glucose, arabinose, and maltose. This media was split into four aliquots, each of which was pH adjusted to the specified pH using 5 M HCl. Each aliquot was then divided in half and glucose, arabinose, and maltose were added to one half to achieve the same concentrations as in DM38. For each pH, the media with and without sugars were serially diluted in ratios necessary to achieve the indicated fraction of sugars. AC was cultured in these media for 48 h, after which samples were collected and measured as described for the community culturing experiments.

HPLC quantification of organic acids

Supernatant samples were thawed in a room temperature water bath before addition of 2 μL of H2SO4 to precipitate any components that might be incompatible with the running buffer. The samples were then centrifuged at 2400 × g for 10 min and then 150 μL of each sample was filtered through a 0.2 μm filter using a vacuum manifold before transferring 70 μL of each sample to an HPLC vial. HPLC analysis was performed using either a ThermoFisher (Waltham, MA) Ultimate 3000 UHPLC system equipped with a UV detector (210 nm) or a Shimadzu HPLC system equipped with a SPD-20AV UV detector (210 nm). Compounds were separated on a 250 × 4.6 mm Rezex© ROA-Organic acid LC column (Phenomenex Torrance, CA) run with a flow rate of 0.2 mL min−1 and at a column temperature of 50 °C. The samples were held at 4 °C prior to injection. Separation was isocratic with a mobile phase of HPLC grade water acidified with 0.015 N H2SO4 (415 µL L−1). At least two standard sets were run along with each sample set. Standards were 100, 20, and 4 mM concentrations of butyrate, succinate, lactate, and acetate, respectively. For most runs, the injection volume for both sample and standard was 25 µL. The resultant data was analyzed using the Thermofisher Chromeleon 7 software package or Shimadzu LabSolutions software package.

Genomic DNA extraction and sequencing library preparation

Genomic DNA was extracted from cell pellets using a modified version of the Qiagen DNeasy Blood and Tissue Kit protocol. First, pellets in 96DW plates were removed from −80 °C and thawed in a room temperature water bath. Each pellet was resuspended in 180 μL of enzymatic lysis buffer (20 mM Tris–HCl (Invitrogen), 2 mM sodium EDTA (Sigma-Aldrich), 1.2% Triton X-100 (Sigma-Aldrich), 20 mg/mL lysozyme from chicken egg white (Sigma-Aldrich)). Plates were then covered with a foil seal and incubated at 37 °C for 30 min with orbital shaking at 600 RPM. Then, 25 μL of 20 mg mL−1 Proteinase K (VWR) and 200 μL of Buffer AL (QIAGEN) were added to each sample before mixing with a pipette. Plates were then covered by a foil seal and incubated at 56 °C for 30 min with orbital shaking at 600 RPM. Next, 200 μL of 100% ethanol (Koptec) was added to each sample before mixing and samples were transferred to a nucleic acid binding (NAB) plate (Pall) on a vacuum manifold with a 96DW collection plate. Each well in the NAB plate was then washed once with 500 μL buffer AW1 (QIAGEN) and once with 500 μL of buffer AW2 (QIAGEN). A vacuum was applied to the Pall NAB plate for an additional 10 min to remove any excess ethanol. Samples were then eluted into a clean 96DW plate from each well using 110 μL of buffer AE (QIAGEN) preheated to 56 °C. Genomic DNA samples were stored at −20 °C until further processing.

Genomic DNA concentrations were measured using a SYBR Green fluorescence assay and then normalized to a concentration of 1 ng μL−1 by diluting in molecular grade water using a Tecan Evo Liquid Handling Robot. First, genomic DNA samples were removed from −20 °C and thawed in a room temperature water bath. Then, 1 μL of each sample was combined with 95 μL of SYBR Green (Invitrogen) diluted by a factor of 100 in TE buffer (Integrated DNA Technologies) in a black 384-well microplate. This process was repeated with two replicates of each DNA standard with concentrations of 0, 0.5, 1, 2, 4, and 6 ng μL−1. Each sample was then measured for fluorescence with an excitation/emission of 485/535 nm using a Tecan Spark plate reader. Concentrations of each sample were calculated using the standard curve and a custom Python script was used to compute the dilution factors and write a worklist for the Tecan Evo Liquid Handling Robot to normalize each sample to 1 ng μL−1 in molecular grade water. Samples with DNA concentration <1 ng μL−1 were not diluted. Diluted genomic DNA samples were stored at −20 °C until further processing.

Amplicon libraries were generated from diluted genomic DNA samples by PCR amplification of the V3–V4 of the 16S rRNA gene using custom dual-indexed primers (Supplementary Data 5) for multiplexed next-generation amplicon sequencing on Illumina platforms (Method adapted from Venturelli et al. Mol. Syst. Biol., 2018). Primers were arrayed in skirted 96-well PCR plates (VWR) using an acoustic liquid handling robot (Labcyte Echo 550) such that each well received a different combination of one forward and one reverse primer (0.1 μL of each). After liquid evaporated, dry primers were stored at −20 °C. Primers were resuspended in 15 μL PCR master mix (0.2 μL Phusion High Fidelity DNA Polymerase (Thermo Scientific), 0.4 μL 10 mM dNTP solution (New England Biolabs), 4 μL 5× phusion HF buffer (Thermo Scientific), 4 μL 5 M Betaine (Sigma-Aldrich), 6.4 μL Water) and 5 μL of normalized genomic DNA to give a final concentration of 0.05 μM of each primer. Primer plates were sealed with Microplate B seals (Bio-Rad) and PCR was performed using a Bio-Rad C1000 Thermal Cycler with the following program: initial denaturation at 98 °C (30 s); 25 cycles of denaturation at 98 °C (10 s), annealing at 60 °C (30 s), extension at 72 °C (60 s); and final extension at 72 °C (10 min). 2 μL of PCR products from each well were pooled and purified using the DNA Clean & Concentrator (Zymo) and eluted in water. The resulting libraries were sequenced on an Illumina MiSeq using a MiSeq Reagent Kit v3 (600-cycle) to generate 2 × 300 paired-end reads.

Bioinformatic analysis for quantification of species abundance

Sequencing data were demultiplexed using Basespace Sequencing Hub’s FastQ Generation program. Custom python scripts were used for further data processing (method adapted from Venturelli et al. Mol. Syst. Biol., 2018)16. Paired end reads were merged using PEAR (v0.9.10)83 after which reads without forward and reverse annealing regions were filtered out. A reference database of the V3–V5 16S rRNA gene sequences was created using consensus sequences from next-generation sequencing data or Sanger sequencing data of monospecies cultures. Sequences were mapped to the reference database using the mothur (v1.40.5)84 command classify.seqs (Wang method with a bootstrap cutoff value of 60). Relative abundance was calculated as the read count mapped to each species divided by the total number of reads for each condition. Absolute abundance of each species was calculated by multiplying the relative abundance by the OD600 measurement for each sample. Samples were excluded from further analysis if >1% of the reads were assigned to a species not expected to be in the community (indicating contamination) or if they had <1000 total reads and OD600 > 0.1 (indicating that there were insufficient reads for analysis and this was not due to lack of community growth).

gLV models and training

We used a model with two modules: the gLV model to predict composition of the assembled community and a regression model with interaction terms to predict butyrate production as a function of the predicted community composition (Fig. 1a). The gLV model is a set of N coupled first-order ordinary differential equations, where N denotes the number of species, shown in Eq. (2).


The species Xi is the abundance of species i, ri is a parameter that represents the basal growth rate of species i, and aij is a parameter that represents interactions by modifying the growth rate of species i proportional to the abundance of species j. To prevent unbounded growth, aij is constrained to be negative when i=j, representing intra-species competition. This model has previously been used to understand and predict the behavior of microbial communities16 and provides an interpretable model form (e.g. which interspecies interactions are important) without introducing an excessive number of parameters (e.g. mechanistic models85).

We used a Bayesian parameter inference approach to estimate parameters for the gLV model from experimental measurements (adapted from Shin et al., PLoS Comput. Biol., 201944). Briefly, our method has a prior distribution for each model parameter and then varies the parameters to fit the model to the measured species abundances (mean of biological replicates) while penalizing deviations from the parameter prior distributions. These penalties provide a regularization effect, which is necessary when the model is underdetermined. We used L2 regularization because we expected inter-species competition to be prevalent and thus did not expect many interaction parameters to be negligible. After an optimal parameter set is found, this process is repeated hundreds of times after applying random noise to the experimental data proportional to the measured experimental variance to generate an ensemble of parameter sets (i.e. the posterior distribution). This posterior distribution is then used as the prior distribution when updating the model with new data. We adapted a previous implementation of this method in Julia for this work.

Before training the model on any data, we assumed a normally distributed prior for each parameter with mean of 0 and standard deviation equal to 1. We then trained the gLV model on time-series measurements of monoculture growth for each species, estimating a posterior distribution for each ri and aii parameter (other aij posterior distributions were equal to the prior distribution). We used this posterior distribution as a prior distribution to update the model with the pairwise community data and generated the gLV module of Model M1, where posterior distributions were estimated from experimental data for ri, aii, and aij where species i and species j co-occurred in the experimental data and the posterior distribution of aij for unobserved pairs was equal to the prior. We similarly updated the model using the 3–5-member community experiments to generate Model M2. Regularization coefficients for each iteration of the model updating process are shown in Supplementary Data 6.

The gLV modules of Models M1 and M2 were underdetermined due to pairs of species never being observed in the same community within the training dataset. To generate parameters for these unobserved interactions, we used a matrix imputation approach to estimate the interaction parameters informed by the phylogenetic relatedness of species. First, we sorted the aij interaction parameter matrix such that the rows and columns occurred in the same order as the phylogenetic tree (Fig. 1c). Next, we used K-nearest neighbors matrix imputation with K = 2 to estimate interaction parameters for species that were not observed in the training data (implemented in Python 3 using the fancyimpute package, This process was repeated independently for each parameter set in the posterior distribution.

While the parameter optimization portion of this model-training process had previously been found to scale with increasing number of pairwise community datasets44, we found that the optimization problem became intractable when attempting to estimate parameters from high richness community data (i.e. >10 species), due to infeasible memory requirements resulting in an inability to converge on a solution. To address this problem, we used the nonlinear programming solver FMINCON in MATLAB to generate the gLV module of Model M3 by training on all data simultaneously. While this approach is much less computationally efficient than the previous approach (taking hours rather than minutes to converge for datasets containing only low richness communities), it does not have the same memory-related convergence issues for datasets containing high richness communities and will find a solution given sufficient time. Using this method, the cost function for the optimization algorithm is computed using an ODE solver to simulate each community and the sum of mean squared errors for the community is computed and added to a L2 regularization term penalizing the magnitude of the parameter vector. To ensure that the model did not sacrifice the goodness of fit to the time-series monospecies data, the mean squared errors for these data were weighted more highly. The resulting optimization function was Eq. (3).

$$\varphi =\mathop{\Sigma}\limits_{k{\epsilon }{\mathrm{{Single}}}}{({X}_{{\mathrm{{exp}}},k}-{X}_{{\mathrm{{model}}},k})}^{2}+w\mathop{\sum}\limits_{l{\epsilon }{\mathrm{{Dynamic}}}}{({X}_{{\mathrm{{exp}}},l}-{X}_{{\mathrm{{model}}},l})}^{2}+\lambda \mathop{\sum}\limits_{j{\epsilon }{\mathrm{{Params}}}}{\theta }_{j}^{2}$$

In this equation, single denotes the set of experiments where only the end point community composition was measured, dynamic indicates the set of time-series monospecies measurements, w is the weighting factor the time-series monospecies measurements, and λ represents the regularization coefficient. The FMINCON function identifies a parameter estimate which minimizes the cost function. We provided the median parameter values from Model M2 as an initial guess for the FMINCON function. We repeated this process with various values of λ and w to find a parameter set that simultaneously fits the Dynamic and Single datasets with maximal regularization penalty to prevent overfitting to the data (Supplementary Data 6). We used a procedure based on the one described above for the Julia implementation to generate an ensemble of parameter sets (i.e. the posterior distribution) using FMINCON. Because each iteration of the FMINCON parameter estimation took several hours to complete, we massively parallelized the generation of each of the hundreds of parameter sets in the ensemble using resources from the UW-Madison Center for High Throughput Computing.

Regression models and training

We used a regression model with interaction terms to represent microbial community metabolite release. We chose this model based on the following derivation beginning with typical models used for understanding metabolite release in bioprocess engineering86. First, we considered an Eq. (4) determining productivity as a function of biomass concentration,

$$\frac{{\mathrm{{d}}}P}{{\mathrm{{d}}}t}=\mathop{\sum}\limits_{i{\epsilon }{\mathrm{{BP}}}}{q}_{P,i}{X}_{i}$$

where P represents the product concentration (mM), Xi denotes the biomass concentration of species i, and \({q}_{P,i}\) represents the specific productivity of species i (mM OD600−1 h−1). If we assume that the specific productivity is proportional to the specific growth rate (i.e. a growth coupled metabolite release, as would be expected for fermentation products which are a byproduct of growth), we can define it as Eq. (5).

$${q}_{P,i}={\rho }_{i}{\mu }_{i}={\rho }_{i}\left({r}_{i}+\mathop{\sum}\limits_{j=1}^{N}{a}_{ij}{X}_{j}\right)$$

Here, ρi represents the production per unit growth of species i and \({\mu }_{i}\) represents the specific growth rate of species i, which is then substituted from the gLV model Eq. (2). Further, ρi can be a function of the abundances of other species in the system to capture behavior where the presence of one species causes another to alter its metabolism, as in Eq. (6).

$${\rho }_{i}={\rho }_{i0}+\mathop{\sum}\limits_{j=1}^{N}{\rho }_{ij}{X}_{j}$$

Combining Eqs. (4)–(6) yields Eq. (7) describing the overall productivity.

$$\frac{{\mathrm{{d}}}P}{{\mathrm{{d}}}t}=\mathop{\sum}\limits_{i{\epsilon }{\mathrm{{BP}}}}\left({\rho }_{i0}+\mathop{\sum}\limits_{j=1}^{N}{\rho }_{ij}{X}_{j}\right) \left({r}_{i}+\mathop{\sum}\limits_{j=1}^{N}{a}_{ij}{X}_{j}\right){X}_{i}$$

To determine the product concentration at a specific time (e.g. 48 h as in our experiments), we can integrate Eq. (6) in time, yielding Eq. (8).

$$P(T) = \, \int_{0}^{T}\mathop{\sum}\limits_{i{\epsilon }{\mathrm{{BP}}}}\left({\rho }_{i0}+\mathop{\sum}\limits_{j=1}^{N}{\rho }_{ij} {X}_{j}\right) \left({r}_{i}+\mathop{\sum}\limits_{j=1}^{N}{a}_{ij}{X}_{j}\right){X}_{i}{\mathrm{{d}}}t\\ = \, \mathop{\sum}\limits_{i{\epsilon }{\mathrm{{BP}}}}\left[\int_{0}^{T}{\rho }_{i0}{r}_{i}{X}_{i}{\mathrm{{d}}}t+ \mathop{\sum}\limits_{i=1}^{N}\int_{0}^{T}({\rho }_{i0}{a}_{ij}+{\rho }_{ij}{r}_{i}){X}_{i}{X}_{j}{\mathrm{{d}}}t+\mathop{\sum}\limits_{i=1}^{N}\int_{0}^{T}{\rho }_{ij}{a}_{ij}{X}_{i}{X}_{j}^{2}{\mathrm{d}}t\right]$$

Because these integrals are complex, involving the time integrals of multiple species, and the lack of time resolution of our data, we chose to make linear approximations as described in Eqs. (9) and (10). Additionally, we chose to assume that third-order interactions of the type shown in Eq. (11) were small for two reasons. First, we reasoned that species were unlikely to have large impacts on both the growth (via aij) and metabolic shifts (via ρij) on the same species, thus their product would be small. Second, including such interactions would introduce 325 additional parameters to our model, reducing our ability to reasonably infer all parameter values and increasing the chances of overfitting. Together, these assumptions result in the linear regression model with interactions described in Eq. (12).

$$\int_{0}^{T}{\rho }_{i0}{r}_{i}{X}_{i}{\mathrm{{d}}}t\approx {\alpha }_{i,0}+{\alpha }_{i}{X}_{i}(T)$$
$$\int_{0}^{T}({\rho }_{i0}{a}_{ij}+{\rho }_{ij}{r}_{i}){X}_{i}{X}_{j}{\mathrm{{d}}}t\approx {\beta }_{ij,0}+{\beta }_{ij}{X}_{i}(T){X}_{j}(T)$$
$$\int_{0}^{T}{\rho }_{ij}{a}_{ij}{X}_{i}{X}_{j}^{2}{\mathrm{{d}}}t\approx 0$$
$$P(T)=\mathop{\sum}\limits_{i{\epsilon }{\mathrm{{BP}}}}({\alpha }_{i,0}+{\alpha }_{i}{X}_{i}(T))+\mathop{\sum}\limits_{j{\epsilon }{\mathrm{{BP}}}}\mathop{\sum}\limits_{k{\epsilon }{\mathrm{{ALL}}}}({\beta }_{jk,0}+{\beta }_{jk}{X}_{j}(T){X}_{k}(T))$$

Note that the summations in Eq. (12) refer only to those species included in a community, so the intercepts \({\alpha }_{i,0}\) and \({\beta }_{{jk},0}\) only apply when the corresponding species were added to the community. These intercepts allow for production of butyrate to be attributed to the presence of butyrate producers even if their abundance is low at the time under consideration, which could be due to non-monotonic growth dynamics (i.e. early growth and butyrate production followed by inhibition from interactions causing a decrease in abundance). A mathematical consequence of these intercepts is a lower bound on the confidence intervals of butyrate production across communities with a conserved set of butyrate producers, as observed in Fig. 2b. The simplified \({\beta }_{{ij}}\) parameters capture additional modifications to productivity via interactions and are thus informative in guiding investigation of which pairs of species may be participating in production interactions. The resulting regression model had 450 total parameters. Model fitting was performed using custom scripts written in MATLAB (M1 and M2, using lasso function) and Python (M3, using scikit-learn87). We used L1 regularization to minimize the number of nonzero parameters. Regularization coefficients were chosen by using 10-fold cross validation and choosing the coefficient value with the lowest median mean-squared error for the test data. For models M1 and M2, ensembles of regression models were generated, one for each possible combination of butyrate producers, where samples containing butyrate producers from outside of each set were excluded. In this case, butyrate production from less productive species (e.g. FP) were small compared to more productive species (e.g. AC, ER, RI, CC) thus reducing the model accuracy for communities lacking the high productivity species. For Model M3, one regression model was generated using all data because all communities of interest contained highly productive butyrate producers.

Model simulations to predict new communities

Custom MATLAB scripts were used to predict community assembly and butyrate production, for many communities as described in the text (e.g. all communities containing all 5 butyrate producers for Fig. 3a). For each community, the growth dynamics were simulated using each parameter set from the posterior distribution of the gLV model. The resulting community compositions for each simulation were an input to the regression model to predict butyrate concentration. Statistics on the resulting distributions of butyrate concentration and abundance of each species were stored for later plotting. Because of the large number of communities and the large number of parameter sets (i.e. hundreds of simulations per community), we used parallel computing (MATLAB parfor) to complete the simulations in a reasonable timeframe (~4 days for the communities in Fig. 3a). For the communities in Fig. 5, we simulated only with the best fit parameters due to the large number of possible communities (33,554,432 communities).

Statistics and reproducibility

The experiments of various communities were performed in nine different batches and the full community was included in each of these batches to quantify variation across the different experimental batches. The 24-species “leave-one-out” communities were also repeated in three of the batches. The variance of these replicated communities can be seen in Figs. 2a, 3c,d, and 4a. The sulfide titration experiment was replicated on three separate occasions with slight differences in experimental approach while optimizing the procedure to limit loss of H2S to the gas phase and the results agreed at least qualitatively with the data shown on each occasion.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.

Data availability

Additional data supporting the findings described in this work are available from the corresponding author under reasonable request. The processed data for all community experiments and simulation results are available in a Github Repository: The Illumina Sequencing data are available via Zenodo at data are provided with this paper.

Code availability

Scripts for model training and simulations are available in a Github Repository here:


  1. 1.

    Thompson, L. R. et al. A communal catalogue reveals Earth’s multiscale microbial diversity. Nature 551, 457–463 (2017).

    CAS  PubMed  PubMed Central  Article  ADS  Google Scholar 

  2. 2.

    Moran, M. A. The global ocean microbiome. Science (80-.). 350, aac8455 (2015).

    Article  CAS  Google Scholar 

  3. 3.

    Ahmad, F., Ahmad, I. & Khan, M. S. Screening of free-living rhizospheric bacteria for their multiple plant growth promoting activities. Microbiol. Res. 163, 173–181 (2008).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  4. 4.

    Flint, H. J., Scott, K. P., Duncan, S. H., Louis, P. & Forano, E. Microbial degradation of complex carbohydrates in the gut. Gut Microbes 3, 289–306 (2012).

    PubMed  PubMed Central  Article  Google Scholar 

  5. 5.

    Lawson, C. E. et al. Common principles and best practices for engineering microbiomes. Nat. Rev. Microbiol. 17, 725–741 (2019).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  6. 6.

    Youngster, I. et al. Fecal microbiota transplant for relapsing Clostridium difficile infection using a frozen inoculum from unrelated donors: a randomized, open-label, controlled pilot study. Clin. Infect. Dis. 58, 1515–1522 (2014).

    PubMed  PubMed Central  Article  Google Scholar 

  7. 7.

    Kougias, P. G. & Angelidaki, I. Biogas and its opportunities—a review keywords. Front. Environ. Sci. 12, 1–22 (2018).

    CAS  Google Scholar 

  8. 8.

    Mishra, D., Kim, D., Ahn, J. & Rhee, Y. Bioleaching: a microbial process of metal recovery; a review. Met. Mater. 11, 249–256 (2005).

    CAS  Article  Google Scholar 

  9. 9.

    Kazemian, N. et al. The trans-kingdom battle between donor and recipient gut microbiome influences fecal microbiota transplantation outcome. Sci. Rep. 10, 1–10 (2020).

    Article  CAS  Google Scholar 

  10. 10.

    DeFilipp, Z. et al. Drug-resistant E. coli bacteremia transmitted by fecal microbiota transplant. N. Engl. J. Med. 381, 2043–2050 (2019).

    PubMed  Article  PubMed Central  Google Scholar 

  11. 11.

    Malone, L., Cm, M. B. A., Grigorenko, E. & Stalons, D. Weight gain after fecal microbiota transplantation. Open Forum Infect. Dis. 2, (2015).

  12. 12.

    Wang, S., Xu, M., Wang, W., Cao, X. & Piao, M. Systematic review: adverse events of fecal microbiota transplantation. PLoS ONE 1–24 (2016).

  13. 13.

    Gutiérrez, N. & Garrido, D. Species deletions from microbiome consortia reveal key metabolic interactions between gut microbes. mSystems 4, 1–16 (2019).

    Article  Google Scholar 

  14. 14.

    Tanoue, T. et al. A defined commensal consortium elicits CD8 T cells and anti-cancer immunity. Nature 565, 600–605 (2019).

    CAS  PubMed  Article  ADS  PubMed Central  Google Scholar 

  15. 15.

    Tlaskalová-Hogenová, H. et al. The role of gut microbiota (commensal bacteria) and the mucosal barrier in the pathogenesis of inflammatory and autoimmune diseases and cancer: contribution of germ-free and gnotobiotic animal models of human diseases. Cell. Mol. Immunol. 8, 110–120 (2011).

    PubMed  PubMed Central  Article  CAS  Google Scholar 

  16. 16.

    Venturelli, O. S. et al. Deciphering microbial interactions in synthetic human gut microbiome communities. Mol. Syst. Biol. 14, e8157 (2018).

    PubMed  PubMed Central  Article  Google Scholar 

  17. 17.

    Friedman, J., Higgins, L. M. & Gore, J. Community structure follows simple assembly rules in microbial microcosms. Nat. Ecol. Evol. 1, 0109 (2017).

    Article  Google Scholar 

  18. 18.

    Sanchez-Gorostiaga, A., Bajić, D., Osborne, M. L., Poyatos, J. F. & Sanchez, A. High-order interactions distort the functional landscape of microbial consortia. PLoS Biol. (2019).

  19. 19.

    Medlock, G. L. et al. Inferring metabolic mechanisms of interaction within a defined gut microbiota. Cell Syst. 7, 245–257.e7 (2018).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  20. 20.

    Piccardi, P., Vessman, B. & Mitri, S. Toxicity drives facilitation between 4 bacterial species. Proc. Natl Acad. Sci. USA 116, 15979–15984 (2019).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  21. 21.

    Lendvay, J. M. & Lo, F. E. Bioreactive barriers: a comparison of bioaugmentation and biostimulation for chlorinated solvent remediation. Environ. Sci. Technol. 37, 1422–1431 (2003).

    CAS  Article  ADS  Google Scholar 

  22. 22.

    Compant, S., Samad, A., Faist, H. & Sessitsch, A. A review on the plant microbiome: ecology, functions, and emerging trends in microbial application. J. Adv. Res. 19, 29–37 (2019).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  23. 23.

    Niu, B., Nathaniel, J., Zheng, X. & Kolter, R. Simplified and representative bacterial community of maize roots. Proc. Natl. Acad. Sci. USA 24–26 (2017).

  24. 24.

    Khanna, S. et al. A novel microbiome therapeutic increases gut microbial diversity and prevents recurrent Clostridium difficile infection. J. Infect. Dis. 214, 173–181 (2016).

    PubMed  Article  PubMed Central  Google Scholar 

  25. 25.

    Vargason, A. M. & Anselmo, A. C. Clinical translation of microbe-based therapies: current clinical landscape and preclinical outlook. AIChE Bioeng. Transl. Med. 124–137 (2018).

  26. 26.

    Bittleston, L. S., Gralka, M., Leventhal, G. E., Mizrahi, I. & Cordero, O. X. Context-dependent dynamics lead to the assembly of functionally distinct microbial communities. Nat. Commun. 11, 1–10 (2020).

    Article  CAS  Google Scholar 

  27. 27.

    Kanaly, R. A., Harayama, S. & Watanabe, K. Rhodanobacter sp. strain BPC1 in a benzo[a]pyrene-mineralizing bacterial consortium. Appl. Environ. Microbiol. 68, 5826–5833 (2002).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  28. 28.

    Song, H., Bremer, B. J., Hinds, E. C., Raskutti, G. & Romero, P. A. Inferring protein sequence–function relationships with large-scale positive-unlabeled learning. Cell Syst. 12, 92–101 (2021).

  29. 29.

    Zhang, J. et al. Combining mechanistic and machine learning models for predictive engineering and optimization of tryptophan metabolism. Nat. Commun. 11, 4880 (2020).

  30. 30.

    Radivojević, T., Costello, Z., Workman, K. & Garcia Martin, H. A machine learning Automated Recommendation Tool for synthetic biology. Nat. Commun. 11, 1–14 (2020).

    Article  CAS  Google Scholar 

  31. 31.

    Stein, R. R. et al. Computer-guided design of optimal microbial consortia for immune system modulation. Elife 7, 1–17 (2018).

    Article  Google Scholar 

  32. 32.

    Rosser, E. C. et al. Microbiota-derived metabolites suppress arthritis by amplifying aryl-hydrocarbon receptor activation in regulatory B cells. Cell Metab. 31, 1–15 (2020).

    Article  CAS  Google Scholar 

  33. 33.

    Kimura, I. et al. The gut microbiota suppresses insulin-mediated fat accumulation via the short-chain fatty acid receptor GPR43. Nat. Commun. 4, 1–12 (2013).

    ADS  Google Scholar 

  34. 34.

    Li, Z. et al. Butyrate reduces appetite and activates brown adipose tissue via the gut-brain neural circuit. Gut 2017 (2017).

  35. 35.

    Lin, H. V. et al. Butyrate and propionate protect against diet-induced obesity and regulate gut hormones via free fatty acid receptor 3-Independent mechanisms. PLoS ONE 7, 1–9 (2012).

    Article  Google Scholar 

  36. 36.

    Furusawa, Y. et al. Commensal microbe-derived butyrate induces the differentiation of colonic regulatory T cells. Nature 504, 446–450 (2013).

    CAS  PubMed  Article  ADS  PubMed Central  Google Scholar 

  37. 37.

    Segain, J. et al. Butyrate inhibits inflammatory responses through NFkB inhibition: implications for Crohns disease. Gut 47, 397–403 (2000).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  38. 38.

    Rivera-Chávez, F. et al. Depletion of butyrate-producing clostridia from the gut microbiota drives an aerobic luminal expansion of Salmonella. Cell Host Microbe 19, 443–454 (2016).

    PubMed  PubMed Central  Article  CAS  Google Scholar 

  39. 39.

    Khan, S., Maremanda, K. P. & Jena, G. Butyrate, a short-chain fatty acid and histone deacetylases inhibitor: nutritional, physiological, and pharmacological aspects in diabetes. In Handbook of Nutrition, Diet, and Epigenetics (eds Preedy, V. & Patel, V. B.) 1–15 (Springer International Publishing, 2017).

  40. 40.

    Fung, K. Y. C., Cosgrove, L., Lockett, T., Head, R. & Topping, D. L. A review of the potential mechanisms for the lowering of colorectal oncogenesis by butyrate. Br. J. Nutr. 108, 820–831 (2012).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  41. 41.

    Gilijamse, P. W. et al. Treatment with Anaerobutyricum soehngenii: a pilot study of safety and dose–response effects on glucose metabolism in human subjects with metabolic syndrome. npj Biofilms Microbiomes 6, 1–10 (2020).

    Article  CAS  Google Scholar 

  42. 42.

    Petrof, E. O. & Khoruts, A. From stool transplants to next-generation microbiota therapeutics. Gastroenterology 146, 1573–1582 (2014).

    PubMed  PubMed Central  Article  Google Scholar 

  43. 43.

    Maynard, D. S., Miller, Z. R. & Allesina, S. Predicting coexistence in experimental ecological communities. Nat. Ecol. Evol. 4, 91–100 (2020).

    PubMed  Article  PubMed Central  Google Scholar 

  44. 44.

    Shin, S., Venturelli, O. S. & Zavala, V. M. Scalable nonlinear programming framework for parameter estimation in dynamic biological system models. PLoS Comput. Biol. 15, 1–29 (2019).

    Article  CAS  Google Scholar 

  45. 45.

    Romero, P. A., Krause, A. & Arnold, F. H. Navigating the protein fitness landscape with Gaussian processes. Proc. Natl. Acad. Sci. USA 110, E193–E201 (2013).

    MathSciNet  CAS  PubMed  MATH  Article  ADS  PubMed Central  Google Scholar 

  46. 46.

    Rautio, M. et al. Reclassification of Bacteroides putredinis (Weinberg et al., 1937) in a New Genus Alistipes gen. nov., as Alistipes putredinis comb. nov., and description of Alistipes finegoldii sp. nov., from human sources. Syst. Appl. Microbiol. 26, 182–188 (2003).

    PubMed  Article  PubMed Central  Google Scholar 

  47. 47.

    Forster, S. C. et al. A human gut bacterial genome and culture collection for precise and efficient metagenomic analysis. Nat. Biotechnol. 37, 186–192 (2019).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  48. 48.

    Tramontano, M., Andrejev, S., Pruteanu, M. & Klünemann, M. Nutritional preferences of human gut bacteria reveal their metabolic idiosyncrasies. Nat. Microbiol. 4–6 (2018).

  49. 49.

    Kong, W., Meldgin, D. R., Collins, J. J. & Lu, T. Designing microbial consortia with defined social interactions. Nat. Chem. Biol. 14, 821–829 (2018).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  50. 50.

    Fort, H. Making quantitative predictions on the yield of a species immersed in a multispecies community: the focal species method. Ecol. Modell. 430, 109108 (2020).

    Article  Google Scholar 

  51. 51.

    Vital, M., Howe, A. & Tiedje, J. Revealing the bacterial synthesis pathways by analyzing (meta) genomic data. MBio 5, 1–11 (2014).

    Article  Google Scholar 

  52. 52.

    Duncan, S. H., Louis, P. & Flint, H. J. Lactate-utilizing bacteria, isolated from human feces, that produce butyrate as a major fermentation product. Appl. Environ. Microbiol. 70, 5810–5817 (2004).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  53. 53.

    Marquet, P., Duncan, S. H., Chassard, C., Bernalier-Donadille, A. & Flint, H. J. Lactate has the potential to promote hydrogen sulphide formation in the human colon. FEMS Microbiol. Lett. 299, 128–134 (2009).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  54. 54.

    Struchtemeyer, C. G., Duncan, K. E. & Mcinerney, M. J. Evidence for syntrophic butyrate metabolism under sulfate-reducing conditions in a hydrocarbon-contaminated aquifer. FEMS Microbiol. Ecol. 76, 289–300 (2011).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  55. 55.

    Foster, K. R. & Bell, T. Competition, not cooperation, dominates interactions among culturable microbial species. Curr. Biol. 22, 1845–50 (2012).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  56. 56.

    Mahowald, M. et al. Characterizing a model human gut microbiota composed of members of its two dominant bacterial phyla. Proc. Natl Acad. Sci. USA 106, 5859–64 (2009).

    CAS  PubMed  Article  ADS  PubMed Central  Google Scholar 

  57. 57.

    Rios-Covian, D., Gueimonde, M., Duncan, S. H., Flint, H. J. & De Los Reyes-Gavilan, C. G. Enhanced butyrate formation by cross-feeding between Faecalibacterium prausnitzii and Bifidobacterium adolescentis. FEMS Microbiol. Lett. 362, 1–7 (2015).

    Article  CAS  Google Scholar 

  58. 58.

    Ilhan, Z. E., Marcus, A. K., Kang, D.-W., Rittmann, B. E. & Krajmalnik-Brown, R. pH-mediated microbial and metabolic interactions in fecal enrichment cultures. mSphere 2, 1–12 (2017).

    Article  Google Scholar 

  59. 59.

    Walker, A. W., Duncan, S. H., Carol McWilliam Leitch, E., Child, M. W. & Flint, H. J. pH and peptide supply can radically alter bacterial populations and short-chain fatty acid ratios within microbial communities from the human colon. Appl. Environ. Microbiol. 71, 3692–3700 (2005).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  60. 60.

    Belenguer, A. et al. Impact of pH on lactate formation and utilization by human fecal microbial communities. Appl. Environ. Microbiol. 73, 6526–6533 (2007).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  61. 61.

    Reichardt, N. et al. Specific substrate-driven changes in human faecal microbiota composition contrast with functional redundancy in short-chain fatty acid production. ISME J. 12, 610–622 (2018).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  62. 62.

    Bell, T., Newman, J. A., Silverman, B. W., Turner, S. L. & Lilley, A. K. The contribution of species richness and composition to bacterial services. Nature 436, 1157–1160 (2005).

    CAS  PubMed  Article  ADS  PubMed Central  Google Scholar 

  63. 63.

    Rivett, D. W. & Bell, T. Abundance determines the functional role of bacterial phylotypes in complex communities. Nat. Microbiol. 3, 767–772 (2018).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  64. 64.

    de Groot, P. et al. Fecal microbiota transplantation halts progression of human new-onset type 1 diabetes in a randomized controlled trial. Gut 1–14 (2020).

  65. 65.

    Veiga, P., Suez, J., Derrien, M. & Elinav, E. Moving from probiotics to precision probiotics. Nat. Microbiol. (2020).

  66. 66.

    Loubinoux, J., Bronowicki, J. P., Pereira, I. A. C., Mougenel, J. L. & Le Faou, A. E. Sulfate-reducing bacteria in human feces and their association with inflammatory bowel diseases. FEMS Microbiol. Ecol. 40, 107–112 (2002).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  67. 67.

    Babidge, W., Millard, S. & Roediger, W. Sulfides impair short chain fatty acid β-oxidation at acyl-CoA dehydrogenase level in colonocytes: implications for ulcerative colitis. Mol. Cell. Biochem. 181, 117–124 (1998).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  68. 68.

    Rey, F. E. et al. Metabolic niche of a prominent sulfate-reducing human gut bacterium. Proc. Natl Acad. Sci. USA 110, 13582–7 (2013).

    CAS  PubMed  Article  ADS  PubMed Central  Google Scholar 

  69. 69.

    Isa, M. H. & Anderson, G. K. Molybdate inhibition of sulphate reduction in two-phase anaerobic digestion. Process Biochem. 40, 2079–2089 (2005).

    CAS  Article  Google Scholar 

  70. 70.

    Devkota, S. et al. Dietary-fat-induced taurocholic acid promotes pathobiont expansion and colitis in Il10-/- mice. Nature 487, 104–108 (2012).

    CAS  PubMed  PubMed Central  Article  ADS  Google Scholar 

  71. 71.

    Natividad, J. M. et al. Bilophila wadsworthia aggravates high fat diet induced metabolic dysfunctions in mice. Nat. Commun. 9, 2802 (2018).

    PubMed  PubMed Central  Article  ADS  CAS  Google Scholar 

  72. 72.

    Landry, A. P. et al. A catalytic trisulfide in human sulfide quinone oxidoreductase catalyzes coenzyme a persulfide synthesis and inhibits butyrate oxidation. Cell Chem. Biol. 26, 1515–1525.e4 (2019).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  73. 73.

    Lobel, L., Cao, Y. G., Fenn, K., Glickman, J. N. & Garrett, W. S. Diet posttranslationally modifies the mouse gut microbial proteome to modulate renal function. Science (80-.) 369, 1518–1524 (2020).

    CAS  Article  ADS  Google Scholar 

  74. 74.

    Patnode, M. L. et al. Interspecies competition impacts targeted manipulation of human gut bacteria by fiber-derived glycans. Cell 179, 59–73.e13 (2019).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  75. 75.

    Taketani, M. et al. Genetic circuit design automation for the gut resident species Bacteroides thetaiotaomicron. Nat. Biotechnol. 38, 962–969 (2020).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  76. 76.

    Koh, A. & Backhed, F. From association to causality: the role of the gut microbiota and its functional products on host metabolism. Mol. Cell 1–13 (2020).

  77. 77.

    Borchani, H., Varando, G., Bielza, C. & Larrañaga, P. A survey on multi-output regression. Wiley Interdiscip. Rev. Data Min. Knowl. Discov. 5, 216–233 (2015).

    Article  Google Scholar 

  78. 78.

    Costello, Z. & Martin, H. G. A machine learning approach to predict metabolic pathway dynamics from time-series multiomics data. npj Syst. Biol. Appl. 4, 1–14 (2018).

    Article  Google Scholar 

  79. 79.

    Mahadevan, R. & Schilling, C. H. The effects of alternate optimal solutions in constraint-based genome-scale metabolic models. Metab. Eng. 5, 264–276 (2003).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  80. 80.

    Magnúsdóttir, S. et al. Generation of genome-scale metabolic reconstructions for 773 members of the human gut microbiota. Nat. Biotechnol. 35, 81–89 (2017).

    PubMed  Article  CAS  PubMed Central  Google Scholar 

  81. 81.

    Silverstein, T. P. Fitting imidazole 1H NMR titration data to the Henderson–Hasselbalch equation. J. Chem. Educ. 89, 1474–1475 (2012).

    CAS  Article  Google Scholar 

  82. 82.

    Cline, J. D. Spectrophotometric determination of hydrogen sulfide in natural waters. Limnol. Oceanogr. 14, 454–458 (1969).

    CAS  Article  ADS  Google Scholar 

  83. 83.

    Zhang, J., Kobert, K., Flouri, T. & Stamatakis, A. PEAR: a fast and accurate Illumina Paired-End reAd mergeR. Bioinformatics 30, 614–620 (2014).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  84. 84.

    Schloss, P. D. et al. Introducing mothur: open-source, platform-independent, community-supported software for describing and comparing microbial communities. Appl. Environ. Microbiol. 75, 7537–7541 (2009).

    CAS  PubMed  PubMed Central  Article  Google Scholar 

  85. 85.

    Momeni, B., Xie, L. & Shou, W. Lotka–Volterra pairwise modeling fails to capture diverse pairwise microbial interactions. Elife 6, 1–34 (2017).

    Article  Google Scholar 

  86. 86.

    Bailey, J. & Ollis, D. F. Biochemical Engineering Fundamentals (McGraw-Hill, 1986).

  87. 87.

    Pedregosa, F. et al. Scikit-learn: machine learning in Python. J. Mach. Learn. Res. 12, 2825–2830 (2011).

    MathSciNet  MATH  Google Scholar 

  88. 88.

    Clark, R. et al. Design of synthetic human gut microbiome assembly and butyrate production., (2021).

Download references


We would like to thank Sungho Shin, Jordan Jalving, and Victor Zavala for their advice related to implementing Julia parameter estimation methods. In addition, we are grateful to Mayank Baranwal and Alfred Hero for conversations which inspired the matrix imputation approach for estimating unobserved interaction parameters. We would like to thank Federico Rey for generously taking the time to provide advice that improved the manuscript. Research was sponsored by the National Institutes of Health and was accomplished under Grant Number R35GM124774, the University of Wisconsin-Madison Office of the Chancellor and Vice Chancellor for Research and Graduate Education with funding from the Wisconsin Alumni Research Foundation, National Institute of Biomedical Imaging and Bioengineering under grant number R01EB030340 and the Multi University Research Initiative (MURI) from under grant number W911NF-19-1-0269. S.E.H. was supported by the National Institute of General Medical Sciences of the National Institutes of Health under Award Number T32GM008349. R.L.C. was supported in part by an NHGRI training grant to the Genomic Sciences Training Program (T32 HG002760). This research was performed using the computing resources and assistance of the UW-Madison Center for High Throughput Computing (CHTC) in the Department of Computer Sciences. The CHTC is supported by UW-Madison, the Advanced Computing Initiative, the Wisconsin Alumni Research Foundation, the Wisconsin Institutes for Discovery, and the National Science Foundation, and is an active member of the Open Science Grid, which is supported by the National Science Foundation and the U.S. Department of Energy’s Office of Science.

Author information




O.S.V. and R.L.C conceived the study. R.L.C., J.J.H., S.E.H., and B.M.C. carried out the experiments. R.L.C. implemented computational modeling. R.L.C., S.E.H., and O.S.V. analyzed the data. B.M.C. proposed inhibition of butyrate production by hydrogen sulfide. D.A.-N. and D.M.S. designed and implemented metabolite measurements. O.S.V. secured funding. R.L.C. and O.S.V. wrote the paper and all authors provided feedback on the manuscript.

Corresponding author

Correspondence to Ophelia S. Venturelli.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Peer review information Nature Communications thanks the anonymous reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Source data

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Clark, R.L., Connors, B.M., Stevenson, D.M. et al. Design of synthetic human gut microbiome assembly and butyrate production. Nat Commun 12, 3254 (2021).

Download citation


By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.


Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing