Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2020 May 29;16(5):e1007917. doi: 10.1371/journal.pcbi.1007917

Compositional Lotka-Volterra describes microbial dynamics in the simplex

Tyler A Joseph 1, Liat Shenhav 2, Joao B Xavier 3, Eran Halperin 2,4,5,6,7, Itsik Pe’er 1,8,9,*
Editor: Vasilis Dakos10
PMCID: PMC7325845  PMID: 32469867

Abstract

Dynamic changes in microbial communities play an important role in human health and disease. Specifically, deciphering how microbial species in a community interact with each other and their environment can elucidate mechanisms of disease, a problem typically investigated using tools from community ecology. Yet, such methods require measurements of absolute densities, whereas typical datasets only provide estimates of relative abundances. Here, we systematically investigate models of microbial dynamics in the simplex of relative abundances. We derive a new nonlinear dynamical system for microbial dynamics, termed “compositional” Lotka-Volterra (cLV), unifying approaches using generalized Lotka-Volterra (gLV) equations from community ecology and compositional data analysis. On three real datasets, we demonstrate that cLV recapitulates interactions between relative abundances implied by gLV. Moreover, we show that cLV is as accurate as gLV in forecasting microbial trajectories in terms of relative abundances. We further compare cLV to two other models of relative abundance dynamics motivated by common assumptions in the literature—a linear model in a log-ratio transformed space, and a linear model in the space of relative abundances—and provide evidence that cLV more accurately describes community trajectories over time. Finally, we investigate when information about direct effects can be recovered from relative data that naively provide information about only indirect effects. Our results suggest that strong effects may be recoverable from relative data, but more subtle effects are challenging to identify.

Author summary

Dynamic changes in microbial communities play an important role in human health and disease. Specifically, deciphering how microbial species in a community interact with each other and their environment can elucidate mechanisms of disease, a problem typically investigated using tools from community ecology. Yet, such methods require measurements of absolute densities, whereas typical only provide estimates of relative abundances. We investigate methods for describing microbial dynamics in terms of relative abundances using approaches from machine learning and dynamical systems. Across three real datasets, we show that relative abundances are sufficient to describe compositional dynamics. Additionally, we show that models trained on relative abundances alone predict future compositions as well models trained on absolute abundances. Finally, we provide criteria for when direct effects, which typically can only be learned from absolute abundances, are recoverable for relative data. As a proof of concept, we recapitulate a previously proposed interaction network for C. difficile colonization.

Introduction

The completion of the second phase of the Human Microbiome Project has highlighted the relationship between dynamic changes in the microbiome and disease [1]. Temporal changes in the vaginal microbiome during pregnancy, for example, are associated with increased risk for preterm birth [2], and the intestinal microbiome of individuals with inflammatory bowel disease undergoes large-scale changes during active and inactive periods of the disease [3]. Changes to the intestinal microbiome are also predictive of treatment outcomes. In hospitalized patients the intestinal microbiome provides resistance to pathogenic bacteria, and depletion of the community in response to antibiotics increases risk of infection [4, 5]. Moreover, some treatments for disease are mediated through the intestinal microbiome itself [6]. Consequently, recent research has focused on temporal modeling of the microbiome with the aim of understanding the etiology of disease, predicting patient outcomes for personalized medicine, and elucidation of microbe-microbe or host-microbiome interactions [5, 7, 8]. Yet, the gut microbiome is a complex ecosystem, making realization of these goals a challenging task.

Approaches to modeling microbial dynamics originate across different domains with different goals (e.g. community ecology, applied statistics, and compositional data analysis), and the field has yet to converge on a standard methodology for time-series modeling. For instance, traditional approaches based in community ecology describe temporal dynamics using generalized Lotka-Volterra (gLV) differential equations (e.g. [710]): a system of nonlinear differential equations modeling competitive and cooperative interactions, extended to include external perturbations by Stein et al. [7]. Such models have been shown to accurately predict community dynamics [7, 10]. However, gLV-based models describe dynamics in terms of absolute densities of taxa. Estimating model parameters requires measurements of community size—either from quantitative PCR, spiked-in samples of known concentrations, fluorescence-activated cell sorting, or other cell counting methods—in addition to sequencing counts of constituent taxa [11]. While measurements of community size are often required to infer direct interactions and effects, they are often unavailable.

In parallel, there has been an increasing appreciation for the compositional nature of many microbial datasets [1215], motivating research that explores the boundaries of inference from sequencing counts alone (e.g. [1618]). Sequencing counts only contain noisy information about the relative abundances of community members: the total number of sequencing reads is independent of the size of the community. Approaches to time-series modeling from relative abundances generally fall in to two categories: linear models using relative abundances, and linear models using a compositional data transformation. For the former, McGeachie et al. [19] and Gibbons et al. [20] model relative abundance trajectories as linear combinations of previous time points and external effects. However, these methods implicitly ignore the constraint that relative abundances must sum to one and are therefore negatively correlated, making parameter estimates difficult to interpret. Li et al. [34] suggest addressing this by inference of the latent overall biomass. Alternatively, Shenhav et al. [21] suggested a linear mixed model with variance components, while representing the previous state microbial community using its quantiles instead of relative abundances. Yet, binning taxa into quantiles may lose fine-grained information about interactions. Indeed, correctly modeling relative abundance data is challenging because the data is in a constrained space (the simplex, where relative abundances must sum to one), which can lead to spurious associations if standard statistical tools are applied directly [14].

A promising alternative uses methods from compositional data analysis [22, 23], a branch of statistics devoted to the analysis of simplex-valued data. Techniques from compositional data analysis alleviate problems of working in the simplex by transforming data from a constrained space to an unconstrained one with orthogonal coordinates and statistically independent components. Specifically, relative abundances are transformed to log-ratios using a compositional data transformation, such as the isometric log-ratio transformation [24] or additive log-ratio transformation [22]. For example, Silverman et al. [25] combine a phylogenetically motivated log-ratio transformation (PhyILR, [18]) with dynamic linear models to describe microbial dynamics. Äijö et al. [26] similarly provide a correction for sequencing noise by using a Gaussian process model to parameterize a multinomial distribution on sequencing counts, thereby providing a statistical correction for zero-inflation and over-dispersion common to microbial datasets. Their model implicitly describes dynamics in an additive log-ratio transformed space. Alternatively, Jarauta and Egozcue [27] investigate predator-prey interactions using simplical linear differential equations coupled with separate equations for community size. Their approach, however, is restricted to oscillatory behavior of competitive interactions between two-species. Nonetheless, much remains unknown about the compositional dynamics of the microbiome, and few studies compare these diverse approaches on equal footing.

In this paper, we investigate models of microbial dynamics in the simplex. As a guiding principle, we derive a new dynamical system for simplex-valued data from the generalized Lotka-Volterra equations, which we term “compositional” Lotka-Volterra (cLV), synthesizing approaches from community ecology and compositional data analysis. On three real datasets, we show that the parameters of cLV recapitulate interactions in the simplex implied by gLV. Moreover, we show that cLV is as accurate as gLV in forecasting microbial trajectories in terms of relative abundances, suggesting that estimated concentrations are unnecessary for predicting community trajectories in terms of relative abundances. We further compare cLV to two other models of relative abundance dynamics: a linear models under the additive log-ratio transformation, and a linear on relative abundances. We provide evidence that cLV better describes community dynamics than linear models, suggesting that nonlinear models are important for accurately describing community dynamics in the simplex. Finally, we investigate when direct effects can be recovered from relative data. We provide a proof-of-concept demonstration where we recapitulate a proposed interaction network with C. difficle inferred using absolute densities.

Results

Motivation

Our motivation for this work is three-fold. First, gLV has a strong theoretical foundation in community ecology and dynamical systems theory, and has been shown to accurately describe community dynamics of the microbiome. However, gLV models absolute abundances, and we would like to extend the model to relative abundances. Second, approaches from compositional data analysis have highlighted the benefits—both statistical and practical—of transforming constrained relative abundances to an unconstrained space using a log-ratio transformation. Thus, we would like to express microbial dynamics under such a transformation. Third, several models for the dynamics of relative abundances exist in the literature, most of which are linear models using relative abundances or linear models in a transformed space. Yet if we believe gLV, a nonlinear model, then linear models will fail to accurately describe community dynamics and predict community changes. Hence, we want to compare linear and nonlinear models. We emphasize that directly applying gLV to relative abundances lacks mathematical justification. Specifically, gLV models the change in the absolute abundance of each taxon over time, whereas the appropriate model for relative abundances derived from gLV results in equations that depend on total community size. This means an approximation is required. In the following sections we develop such an approximate model, devise a method to infer its parameters, and explain its correspondence with gLV.

Compositional Lotka-Volterra

The gLV equations describe the dynamics of microbial taxa in terms of their concentration or density, i.e., number of cells per unit of volume. We standardly denote by xi(t) the concentration of taxon i at time t for the chosen scale for i = 1, …, D, and let up(t) be an indicator variable describing presence or absence of external perturbation p at time t for p = 1, …, P. These equations thus state that the change in concentration of xi(t) is determined by a taxon specific growth rate gi, interactions between taxa Aij, and the effect of each external perturbation p on each taxon i, Bip. Specifically, gLV-based models use the following set of nonlinear (Riccati) differential equations:

i=1,,D:ddtxi(t)=xi(t)(gi+j=1DAijxj(t)+p=1PBipup(t)). (1)

Assuming xi(t)>0, equivalent equations describe compositional dynamics under the additive log-ratio transformation:

i=1,,D:ddtlogxi(t)=gi+j=1DAijxj(t)+p=1PBipup(t) (2)

Define N(t)=j=1Dxj(t) and πi(t)=xi(t)N(t). Then, using the additive log ratio (alr) transformation

ddtlog(πi(t)πD(t))=(gi-gD)g¯i+j=1D(Aij-ADj)A¯ijxj(t)+p=1P(Bip-BDp)B¯ipup(t) (3)
=g¯i+j=1DN(t)A¯ijπj(t)+p=1PB¯ipup(t) (4)

The volume scale of xi(t) is arbitrary (it is defined when a measurement is taken and can be rescaled), so without loss of generality we pick a scale such that the mean community size is 1 (i.e. E[N(t)]=1). Hence

ddtlog(πi(t)πD(t))g¯i+j=1DA¯ijπj(t)+p=1PB¯ipup(t)=:fi(t) (5)

The terms g¯i, A¯ij, and B¯il now describe relative (to the denominator) growth rates, relative interactions, and relative external effects respectively.

The additive log-ratio transformation makes explicit that model parameters describe changes ratios of taxa, the only information provided by relative abundances. Growth rates, interactions, and external perturbations can all be reasoned about through their effect on the log ratio between pairs of taxa. While the choice of denominator in the additive log-ratio transform was arbitrary, knowledge of the parameters for one choice of denominator provides information about how the ratios of all pairs of taxa change (see S1A Appendix). This means that if we are interested in the ratio of two particular taxa, we only need to learn model parameters once, then transform the system to the appropriate parameters.

We refer to Eq 5 as “compositional” Lotka-Volterra (cLV). Notably, solving for ddtπi (see S1B Appendix) gives

i=1,,D-1:ddtπi(t)=πi(t)(fi(t)-f¯(t)) (6)

where

f¯(t)k=1D-1πk(t)fk(t) (7)

The first set of terms of Eq 6, πi(t)fi(t), correspond to gLV on relative abundances, while the second set of terms -πi(t)f¯(t) serve as a “compositional correction:” a correction to the dynamics of πi(t) due to constraint that the πi(t) must sum to one. Fig 1 depicts examples of the phase space for compositional Lotka-Volterra.

Fig 1. Example phase spaces and trajectories for compositional Lotka-Volterra.

Fig 1

The top row displays examples using the additive log-ratio transformation for three taxa. The bottom row displays examples in relative-abundance space corresponding to the examples in the top row. Arrows display the direction of the gradient, while the colors display its magnitude (lighter is smaller). A) Phase space where dynamics depend on relative growth rates alone. B) Phase space where dynamics depend on growth rates and interactions. The black dot denotes a fixed point. The solid line depicts a simulated trajectory, where an external perturbation (red line) moves the system away from the fixed point. C) Alternate view of the example in B. The red arrow denotes an external perturbation causing the system to move away from the fixed point. D) Phase space in the simplex corresponding to A. Black dots denote fixed points and only occur on the corners. E) Phase space in the simplex corresponding to B. Black dots denote six possible fixed points. The line displays the same simulated trajectory as B. F) Simulation example corresponding to B depicted as relative abundances. An external perturbation at time point 50 causes the system to move away from the fixed point in the interior of the simplex toward one at the boundary.

There are several remarks to make about this derivation in light of our motivation:

  • cLV is an approximation to gLV when the variance in community size, Var(N(t))=E[(N(t)-1)2], is low. Then, the parameters of cLV approximately correspond to differences in parameters of gLV. For example, the interaction term A¯ij=Aij-ADj is the absolute interaction between taxon i and taxon j minus the effect of the denominator D on taxon j. We suggest that a useful metric for determining when the parameters correspond is a type of “signal-to-noise” ratio for community size. Specifically,
    SNR=E[N(t)]Var(N(t))=1Var(N(t))

    Thus, “noise” will dominate the “signal” when Var(N(t)) > 1 and parameter estimates will diverge. We provide empirical evidence for this claim in the section Correspondence with the parameters of gLV.

  • While cLV is an approximation to gLV, the two models are distinct. Mathematically, Eq 5 defines its own stand-alone dynamical system. It is therefore interesting to investigate which of these models more accurately describes relative abundance dynamics, and whether other models of relative abundance dynamics are potentially better. We focus on this question in the section Model comparison.

  • The correspondence between the parameters of cLV and gLV gives mathematical criteria for which absolute terms are recoverable from relative data. For interactions specifically, if the magnitude of the interaction Aij is larger than the magnitude of the interaction ADj, then cLV will recapitulate the sign of the absolute interaction. This also suggests that the appropriate choice of denominator for the alr is one where the taxon πD is approximately log constant over time. We investigate this in the section Interpreting model parameters.

We note that our derivation using the alr transformation is easily extended to other compositional data transformations, since the alr can be expressed as a linear transformation of the centered log-ratio transformation and of the isometric log-ratio transformation [24]. We derive the this transformation in S1C Appendix. This opens the door for other domain-specific data transformations, such as the phylogenetic isometric log-ratio transformation [18]. Additionally, taking the alr (or other) transformation has the benefit of expressing the system as an affine function of relative abundances, making it amenable to fast parameter inference procedures using least squares.

Parameter inference

To examine each remark of our derivation we need to infer model parameters on real data. Thus, we first investigated methods for parameter inference. The challenge in inferring model parameters is that the number of parameters often greatly outnumbers the sample size. Therefore some form of regularization is required to avoid overfitting. Previous work on inferring parameters of gLV used ridge regression [7] for regularization, and pseudo-counts to address sequencing noise and zeros. Later work by Bucci et al. [10] included more sophisticated methodologies for modeling sequencing noise, however the form of our model (Eq 6) does not allow us to readily apply these methods. We therefore chose to focus on two standard approaches to regularization: ridge regression [28] and elastic net [29].

We evaluated each method by simulating data under cLV, varying sample size, sequencing depth, and frequency of longitudinal samples (see Methods). Performance was measured using three metrics: root-mean-square-error (RMSE) between estimated and ground truth interactions, RMSE between estimated and ground truth growth rates, and prediction of unseen held out trajectories from initial conditions. As a baseline, we evaluated both models using simulations with and without sequencing noise. Importantly, the choice of denominator for our simulations was arbitrary.

In our simulations without sequencing noise, elastic net regularization outperformed ridge regression, particularly at low sample sizes (Fig 2). With the introduction of sequencing noise the performance difference between models was negligible (S1 Fig). Since elastic net regularization outperformed ridge regression on the simulations without sequencing noise, and because elastic net regularization includes ridge regression as a special case, we choose to focus on elastic net regularization for the remaining simulations.

Fig 2. Comparison of performance between ridge regression and elastic net.

Fig 2

Performance was evaluated on simulated ground truth using three metrics: root-mean-square error (RMSE) between true and estimated interactions, RMSE between true and estimated growth rates, and RMSE between true and estimated hold out trajectories for 5 samples per simulation replicate. Box plots describe the distribution in RMSE over 50 simulation replications. Significance is computed using the Wilcoxon signed-rank test (****: p < 10−4; ***:p < 10−3; **: p < 10−2; *: p < 0.05; ns: not significant).

Simulations investigating sequencing depth demonstrated no noticeable gain in estimation accuracy beyond a depth of 10000 sequencing reads (S2 Fig). Nonetheless, accuracy was poorer than the simulations without sequencing noise. Simulations investigating temporal density revealed that sample size was more important than density in time. At smaller sample sizes (5 and 10 samples), predictive performance on hold out trajectories started decline when the time between samples was approximately 4 days apart (S3 Fig). At larger sample sizes, we observed little difference in ability to estimate model parameters or predictive accuracy.

We also performed simulations to evaluate how choice of denominator affected parameter inference. In particular, we wanted to ensure that different choices of denominator do not affect quality of inference. To do this, we simulated data under one choice of denominator, performed inference with each taxon in the denominator, and computed the RMSE between inferred parameters and simulation parameters transformed to the appropriate denominator (see S1A Appendix). Quality of inference was assessed by computing the variance in RMSE of parameter estimates. A low variance suggests that inference is robust to choice of denominator. S4 Fig displays box plots of the variance in RMSE across 20 simulation replicates. Notably, in all cases the variance in estimates was low, particularly when assessing predictive performance. We note that in our simulations we enforced constraints that each taxon existed at each time point, and that its mean abundance across observations was greater than 0.001. Thus, our results suggest so long as these criteria hold parameter estimates and prediction ability are robust to choice of denominator.

Correspondence with the parameters of gLV

We remarked that the parameters of cLV approximate differences between parameters of gLV, and that the strength of this approximation depends on variability of community size. Therefore, we next empirically investigated how well the approximation holds on three real datasets. Close correspondence between parameters suggests that relative interactions learned by cLV are representative of the true underlying relative interactions between taxa (if we treat gLV as the ground truth). Moreover, if this correspondence holds, it is suggestive of when absolute interactions are recoverable from relative data, which we examine in the section Interpreting model parameters.

We used three real datasets of mouse models (Table 1) that measured community density of the gut microbiome, giving estimates of both relative abundances and bacterial concentrations. The “Antibiotic” dataset consisted of 3 populations of mice (9 mice total) used to study susceptibility to C. difficle infection following administration of antibiotics. The “Diet” dataset included 7 mice: 5 mice were fed from a high-fiber diet, switched to a low-fiber diet, then returned to the high-fiber diet. The remaining mice were fed the high-fiber diet. In the “C. diff” dataset, 5 gnobiotic mice were orally gavaged with a bacterial mixture and subjected to a C. difficle challenge after 28 days. Administration of antibiotics, change in diet, and introduction of C. difficle were treated as external perturbations (in addition to including C. difficle as a taxon in the C. diff dataset). The C. diff dataset and Antibiotic dataset combined 16S sequencing with qPCR to estimate relative abundances and community size separately, while the Diet dataset used qPCR for individual taxa to measure concentrations. Thus, the Antibiotic, Diet, and C. diff datasets display a wide range of dynamics, from strong community shifts due to antibiotics, to relatively stable dynamics.

Table 1. Description of the three real datasets investigated.

Name Sample Size Description
Antibiotic 9 mice (77 total obs) Antibiotic treated mice [7, 30]. Data collected using 16S rDNA sequencing and qPCR for biomass quantification.
Diet 7 mice (330 total obs) High-fiber to low-fiber diet and back [10]. Data collected using qPCR with taxon specific primers.
C. diff 5 mice (130 total obs) C. difficle challenge after 28 days [10]. Data collected using 16S rDNA sequencing and qPCR for biomass quantification.

Sample sizes are listed along with the total number of observations across samples.

We trained cLV on relative abundances, and gLV on rescaled concentrations. We rescaled observed concentrations such that the average community size, N(t), was 1 across observed samples. We note that this only rescales parameter estimates, and results in no loss of generality. Variance in N(t) across samples is an estimator for variance in community size. For this particular task, we chose to use ridge regression since elastic net may choose to zero out different parameters for each model, making direct comparison challenging.

We observed a strong correspondence between the relative parameters estimated using cLV and parameters from gLV (Fig 3). As expected, the strength of the correlation between parameter estimates corresponded with the observed variability in community size (Var(N(t))). The strongest correlation was observed on the Diet dataset (Pearson r = 0.96 for interactions, r = 0.993 for external effects, r = 0.909 for growth rates), where the size of the community remained stable (estimated Var(N(t)) = 0.055), while the weakest correlation was observed on the Antibiotic dataset (Pearson r = 0.808 for interactions, r = 0.995 for external effects, r = −0.141 for growh rates), where community size fluctuated rapidly after antibiotic administration (estimated Var(N(t)) = 1.10). Nonetheless, correspondence between interactions and external effects was strong among the three datasets we explored.

Fig 3. Correspondence between relative parameters estimated using gLV and cLV on three datasets.

Fig 3

Each box plot displays the distribution of observed community size (i.e. N(t)) across all samples, rescaled such that E[N(t)]=1. Scatter plots display the relative parameters estimated by cLV (y-axis), and the corresponding difference in parameters of gLV (x-axis). cLV better approximates interactions inferred using gLV when the variability in concentrations is low, matching theoretical expectations. A strong correspondence is observed between external perturbations across all datasets.

Model comparison

cLV and gLV describe dynamics over time with respect to difference spaces. cLV describes relative abundances, while gLV describes absolute abundances. Additionally, there have been several other models of relative abundance dynamics proposed in the literature. A natural question is therefore: which model better describes trajectories of relative abundances? We thus compared cLV to gLV, and to two other models similar to others proposed in the literature:

ALRddtηi(t)=g¯i+j=1D-1A¯ijηj(t)+p=1PB¯ipu(t) (8)
linearddtπi(t)=gi+j=1DAijπj(t)+p=1PBipu(t) (9)

where ηi(t) = log(πi(t)/πD(t)), the additive log-ratio transformation. The first model (ALR) is a linear model under the additive log-ratio transformation. The second model (linear) is a linear model in relative abundances. We further compared cLV to gLV in two ways: inferring parameters on estimated concentrations (gLVabs), and inferring parameters on estimated relative abundances (gLVrel). The latter is equivalent to assuming constant community size. Table 2 displays the number of parameters of each model.

Table 2. Number of parameters of each model.

Model # interactions # growth # perturbations
gLV D × D D D × P
cLV (D − 1) × D D − 1 (D − 1) × P
ALR (D − 1) × (D − 1) D − 1 (D − 1) × P
linear D × D D D × P

Number of interaction parameters, growth parameters, and external perturbation parameters for D taxa and P effects.

We evaluated models based on a measure of generalization performance, or the ability to predict unseen data. Generalization performance metrics inherently penalize models that overfit, or use parameters to fit noise in data rather than model actual signal. These metrics allow for principled comparison of models with different structures or numbers of parameters. In our case, we used a metric that evaluated predicted trajectories on held out test data via leave-one-out cross validation. That is, for each dataset we held out one time-series in turn, and trained models on the remaining data.

We further fit each model using elastic net to avoid differences in performance due to different inference procedures. Specifically, we wanted to avoid a scenario where one model outperformed the others because it used a better inference procedure. Performance was evaluated by computing the RMSE between the held-out ground truth and predicted trajectories. As a baseline, we compared all models to a constant trajectory that predicted no change from initial conditions. A lower RMSE than the constant trajectory indicates that a model is predicting the right direction of a trajectory, as it moves away from initial conditions.

Notably, across all three datasets cLV outperformed both gLVabs and gLVrel (Fig 4). On the Diet and C. diff datasets, the difference can be attributed to better predictions on the first several time points as the community moves from initial conditions toward a steady state (S5 and S6 Figs). This suggests that cLV better describes relative abundances than gLV. All three models appeared to describe stable communities well. On the Antibiotic dataset, both gLV models were slower to predict recovery of the community in response to antibiotics (S7 Fig).

Fig 4. Comparing predicted trajectories from initial conditions across models.

Fig 4

RMSE (y-axis) between true and estimated trajectories per sample across three datasets (panels) and six models. RMSE is computed on held out data using leave-one-out cross-validation: one sample is held out at time and the models are trained on the remaining data. Trajectories are predicted on the held out sample from initial conditions. Significance is computed relative using the one-sided Wilcoxon signed rank test (**: p < 0.01; *: p < 0.05; ns: not significant).

Our results comparing cLV to ALR and the linear model were less clear (Fig 4). On the Diet dataset, cLV better predicted community trajectories than both models (p = 0.008 for ALR, p = 0.039 for linear, one-sided Wilcoxon signed-rank test). As before, much of the difference in performance is from how well each model predicted movement from initial conditions toward a stable state (S5 Fig). All models performed similarly on the C. diff dataset (S6 Fig). This is likely for two reasons. First, the community converged to a stable state after few time points, which all models predicted well. Second, none of the models captured a fluctuation in community composition, where the community briefly moved away from stability, in the 5 time points immediately after introduction of C. difficle (S6 Fig).

On the Antibiotic dataset, we observed a slight improvement of cLV when compared to the ALR and linear models. However the result did not achieve significance. All models were slow to predict community recovery after antibiotics. However, cLV appeared to better describe the community after recovery than the ALR model: it more accurately predicted the final time point, empirically closest to the new stable state (S8 Fig). We did not observe a significant difference when compared to the linear model.

Interpreting model parameters

Our derivation of cLV suggested criteria for when absolute growth rates, interactions terms, and external perturbation terms, can be recovered from relative data. Recall that the parameters for cLV are given by

g¯igi-gDA¯ijAij-ADjB¯ipBip-BDp.

The terms on the left are for cLV, and the terms on the right are the absolute growth rates, interactions, and external perturbations from gLV. In the section Correspondence with the parameters of gLV we showed that the correspondence between all but the growth rates are strong. This means we can derive criteria for when cLV will recapitulate the sign of an interaction or perturbation. We can use the former to identify cooperative or competitive interactions, and the later to identify beneficial or harmful external perturbations. For example, consider the interactions A¯ijAij-ADj. We want to know when the sign of A¯ij will be the same as the sign of Aij. If Aij and ADj have opposite signs, then A¯ij will always have the same sign as Aij. If Aij and ADj have the same sign, then A¯ij will have the same sign if and only if |Aij| > |ADj|. If we assume that Akl is drawn from a distribution symmetric around zero, then the first and second cases are equally likely to occur—each with 0.5 probability. The first case always recapitulates the sign, while the second does so with Pr(|Aij| > |ADj|). Thus, the probability cLV recapitulates the sign is greater than 0.5—better than random chance.

We can take this argument one step further, by suggesting a particular choice of denominator where ADj is small. Specifically, for interactions one wants a denominator where ADj ≈ 0, hence we want

ddtlogπi(t)-ddtlogπD(t)0(gi+j=1DAijπj(t)+p=1PBipup(t))-(gD+j=1DADjπj(t)+p=1PBDpup(t))0

So we should choose a denominator where log πDconst across all observations. For perturbations, one wants a denominator log πDconst when the perturbation occurs. Notably, these do not need to be the same denominator: we previously showed parameters one denominator gives the parameters for all other choices.

We tested this by attempting to recapitulate an interaction network with C. difficle proposed by Stein et al. [7] on the Antibiotic dataset. By investigating learned model parameters of gLV, the authors proposed a schematic for which infection by C. difficle may occur. We thus wanted to see if we could suggest the same mechanism from the interaction network inferred using relative abundances and cLV. To do this, we first trained cLV using the denominator with the lowest log variance (i.e. where logπD is approximately constant within a sample), and inspected interactions with respect to this denominator. We then transformed the parameters with respect to a denominator with the lowest log variance after antibiotics, and obtained parameters for perturbations. We then inspected these parameters to see if they matched the mechanism proposed by Stein et al. [7].

Fig 5 displays the interaction network proposed to Stein et al. [7], as well as the parameters of cLV with “uncl. Lachnospiraceae” in the denominator for interactions, and “und. uncl. Mollicutes” for external perturbations. Notably, cLV recapitulates all but two of the interactions originally proposed: the effect of clindamycin on Coprobacillus and C. difficle. When training gLV using our inference procedure, the effect of clindamycin on Coprobacillus had the smallest magnitude of all observed effects—precisely the case where cLV will have difficulty recapitulating an effect (S9 Fig). In addition, we estimate a positive effect of clindamycin on C. difficle using gLV, matching the estimate by cLV. Taken together, this suggests that cLV has some utility for recapitulating absolute interactions from relative data.

Fig 5. cLV recapitulates absolute interactions.

Fig 5

Estimated effect of external perturbations (A) and interactions (B) inferred by cLV. Parameters are computed with respect to uncl. Lachnospiraceae in the denominator for interactions, and und. uncl. Mollicutes for perturbations. Estimated parameters recapitulate the interaction network with C. difficle (C) proposed by Stein et al. [7].

Discussion

Accurately describing microbial dynamics is crucial to understanding, modeling, and forecasting microbial communities. Here, we investigated microbial dynamics in the space of relative abundances. We introduced a new dynamical system, called compositional Lotka-Volterra (cLV), and demonstrated that cLV accurately captured relative abundance dynamics. By comparing cLV to gLV, we demonstrated a correspondence between the parameters of cLV and gLV. We leveraged this correspondence to show that cLV can sometimes recapitulate absolute interactions using relative data alone. We further evaluated how well cLV described relative abundance dynamics by comparing cLV to gLV and two other models inspired by the literature. We demonstrated that cLV more accurately predicted relative abundance trajectories than gLV, and was as good or better than the other models explored.

We derived cLV as an approximation to gLV for relative abundances, and showed that there was an approximate correspondence between the parameters of both models. The approximation depends on the variance in community size over time. Importantly, the parameters of cLV are not the same as gLV: cLV describes changes with respect to ratios between taxa, the only information provided by relative abundances. Furthermore, cLV specifically models dynamics in the constrained space of relative abundances, while gLV does not. When the variance in community size was low, we demonstrated the correspondence between the parameters of each model was strong. As the variance increased, the correspondence between interaction terms and external perturbations remained somewhat strong, but the correspondence between growth rates did not. This matched our formulation of a “signal-to-noise” ratio to measure parameter correspondence. Thus, we expect the interaction and perturbation parameters of the two models to correspond well when the variance in community size, after rescaling, is smaller than 1.

Notably, cLV more accurately forecast relative abundances than gLV across all three datasets we explored. One possible explanation is that, without a statistical model, gLV is penalized twice for sequencing noise: once for biomass estimation (e.g. qPCR) and once for relative abundance estimation (e.g. 16S sequencing). However, the effect persisted even when gLV was trained on relative abundances that eliminated one source of noise. This suggests that—if a researcher is interested in predicting relative abundances alone—no usable information is gained by access to community size data. Moreover, unless biomass is constant, our results suggest gLV is wrong model for relative abundances.

We further compared cLV to two models inspired by common assumptions in the literature: a linear model on relative abundances, and linear model under the additive log-ratio transformation. While cLV outperformed the other two models on one dataset, results were less clear on the other two. Importantly, cLV did no worse than the other models we compared, and appeared to better predict trajectories in at least some cases. Both our derivation of cLV and the results here provide some evidence that nonlinear models are required to accurately describe community dynamics. Nonetheless, our investigation is limited by lack of availability of high quality benchmark datasets. As longitudinal sampling becomes more commonplace, availability of larger high quality datasets will allow for more robust comparisons between competing methods.

Finally, we showed that in some cases cLV can recapitulate absolute interactions from relative data. We did this by recapitulating a microbe-microbe interaction network with C. difficle proposed by Stein et al. [7]. This demonstrated that similar conclusions can sometimes be drawn from relative and absolute data. While Bucci et al. [10] noted some ability to recapitulate the parameters of gLV when training on relative abundances, our contribution is a mathematical formulation of criteria for when absolute parameters can be recovered from relative abundance information. Given such a formulation, it may be possible to devise a statistical test for when an absolute interaction can be recovered, and our work is a first step toward this goal.

There are several limitations to our study. In particular, our inference procedure did not incorporate technical noise due to data generation. In practice, relative abundances are estimated from sequencing counts, which can contain a considerable amount of technical noise. Indeed, our simulations showed at least some loss of accuracy in the presence of sequencing noise. While we applied a denoising step to the C. diff dataset, we were unable to do so on the remaining two due to differences in data collection methods and data reported. This is most likely to impact parameter estimates for rare taxa, because zero values needed to be transformed using pseudo-counts, and small differences in sequencing counts of rare taxa can cause large changes in estimated log-ratios. Nonetheless, we fit all models to data preprocessed with the same pseudo-count transformation—they all suffer from this limitation. Thus, this uniform pre-processing allowed us to compare models on equal footing.

It should also be noted that the gLV equations are not without criticism. While useful for quantifying dynamics, it is clear that they only describe an idealized system in which few real world systems abide. Additionally, influential work by Arditi and Ginzburg [31] strongly criticizes the Lotka-Volterra predator-prey model, of which gLV is a more general example. They suggest that predation (negative interactions on the A matrix) depends on ratios between taxa. Our results suggest that gLV, and cLV, described microbial trajectories well. However, an accurate model does not say anything about the physical dynamics governing the system.

Finally, a fundamental limitation of all models based on log-ratios is the inability to describe extinction and colonization. Indeed, while the compositional data analysis field has techniques for dealing with count zeros where a species falls below the detection threshold, there is no uniformly accepted technique for essential zeros (i.e. extinction; [32]). Hence, each taxon is assumed to exist at each time point. This suggests that the appropriate choice for denominator is one which does not go extinct among any time points. It may not always be possible to select a taxon uniformly present among all samples, necessitating alternate approaches to parameter inference.

Current blind spots of cLV highlight several areas for future research. One is to couple this methodology with a statistical model that includes technical and biological variation. This would allow us quantify variation not captured by the model. Another attractive extension of cLV would include extinction and recolonization, allowing more accurate forecasting of long-term trajectories where the set of taxa in a community varies. Finally, future work should focus on developing statistical methodology to recapitulate direct interactions and direct effects from relative data. By providing a theoretical understanding of microbial dynamics in the simplex, cLV represents a promising first step toward these goals.

Methods

Simulation evaluation

We simulated data under cLV to evaluate how well our inference procedure learned model parameters using a similar framework to Bucci et al. [10]. We used MDSINE [10] to obtain denoised concentrations of taxa in the C. diff, then rescaled estimated concentrations such that the mean community size, N(t), was 1 across all samples. We then fit the parameters gLV using ridge regression with a small regularization parameter (λA = λg = λB = 0.001, see below). We used estimated parameters to calculate the mean and scale of growth rates (gmean > 0, σg2), mean and scale of self interactions (Aii < 0, σself2), the scale of between taxa interactions, σinteract2, and the mean and scale of initial concentrations (x^0, σinit2).

For each simulation, we drew growth rates, self-interactions, and initial conditions from

giN+(gmean,σg2)AiiN-(Aself,σself2)xi(0)N(x^0,σinit2)

We simulated sparse interactions by first drawing the probability of an interaction between taxon i and taxon j, then drawing the interaction itself

zijBernoulli(0.2)Aij{0ifzij=0N(0,σinteract2/(jzij)2)ifzij=1

This follows estimates by Bucci et al. [10], who found a 20% probability of an interaction matched their real data. We further required that the resulting matrix be “stably dissapative,” which guarantees existence of a steady state with all taxa present [33]. We therefore drew interaction matrix A repeatedly for each simulation until we found one that satisfied our criteria.

Given the parameters of gLV, we transformed them to the relative parameters of cLV using Eq 3. We then simulated noisy sequencing counts using a Dirichlet-Multinomial model with dispersion parameter 286, estimated by Bucci et al. [10] on the C. diff dataset. We evaluated model performance by computing the root-mean-square-error (RMSE) between true and estimated relative growth rates, relative interactions, and predicted trajectories from initial conditions on 5 hold out samples per simulation replicate.

We performed simulations over 30 time points, varying the sequencing depth from 1000, 2000, 5000, 10000, 25000, and noise-free. We also varied the sample size from 5, 10, 25, 50, and the time between observations from 1 day (consecutive), 2 days, 4 days, and 6 days. For each simulation replicate we required that the mean relative abundance of each taxon was greater than 0.001 and that no taxon took over the community (had abundance greater than 0.8). For each combination of parameters we performed 50 simulation replicates obtain confidence intervals and calculate significance.

Antibiotic dataset

We downloaded and analyzed the dataset originally published by Buffie et al. [30] from the supplementary material of Stein et al. [7], who used it to investigate susceptibility to C. difficle infection following antibiotics. The data include bacterial concentrations from three mice populations (n = 9 mice, 3 from each population), along with recorded antibiotic administration, averaging 8.55 observed time points per population over 20 to 30 days. The first population served as a control and did not receive the antibiotic, the second population received a single dose of the antibiotic, and the third population received a single dose of the antibiotic followed by a C. difficle challenge. At each time point, a mouse from each population was euthanized, the contents of the intestine collected and, the V1-V3 16S rRNA gene was amplified and sequenced using 454 pyrosequencing. Microbial densities were calculated by quantifying 16S rRNA gene copies using quantitative PCR (qPCR). To reduce the number of missing entries (zeros), Stein et al. [7] modeled the top 10 most abundant genera only, and aggregated the remaining taxa into a single component marked “Other.” The resulting data matrix (taxon by time-point) had fewer than 9% entries with zeros. We treated antibiotic administration as an external perturbation, encoding the variable ui(t) = 1 for t = 1 for populations that received the antibiotic, and ui(t) = 0 elsewhere.

Diet dataset

We downloaded and analyzed the Diet dataset from the supplementary material of Bucci et al. [10]. The data consist of bacterial concentrations for 13 Clostridia strains collected from fecal samples of 7 mice. Of these mice, 5 were fed a high-fiber for 2 weeks, switched to a low-fiber diet for 2 weeks, then returned to the high-fiber diet; the remaining mice were fed the high-fiber diet exclusively. The concentration for each strain was quantified separately using qPCR with taxon specific primers. Samples for diet-switched mice were collected either daily or on alternating days for 65 days, for a total of 56 observed time points. The remaining 2 mice were kept on the high-fiber diet for 5 weeks, and data collected over 29 days for a total of 25 observed time points. We treated change in diet as an external perturbation, encoding the variable ui(t) = 1 during all time points when mice were switched the the low-fiber diet, with ui(t) = 0 elsewhere. Fewer than 0.005% of the remaining data matrix had zeros.

C. diff dataset

We downloaded and analyzed the C. diff dataset, which was also from Bucci et al. [10]. In this dataset, 5 gnotobiotic mice were orally gavaged with a bacterial mixture consisting of 22 different species. DNA sequencing data from the V4 region of the 16S rRNA gene was collected along with biomass from qPCR over the course of 56 days; there were 26 observed time points per mouse. At day 28, mice were orally gavaged with C. difficile. For our analysis, we used MDSINE [10] to produce denoised estimates of taxon concentrations. We set ui(t) = 1 for the time point when C. difficle was introduced, treating it both as an external perturbation and observed taxon.

Pseudocounts

Fitting each model requires taking a logarithm of either an observed concentration or a ratio of concentrations, with the exception of the linear model on relative abundances. We used additive smoothing (i.e. pseudocounts) on each dataset to avoid taking a logarithm of zero. To treat pseudocounts for models on relative abundances and concentrations equally, we first added pseudocounts to observed relative abundances, then transformed relative abundances to concentrations using the total concentration of a sample. Specifically, the smoothed relative abundance of a sample was

π^i(t)=πi(t)+ϵ1+ϵD (10)

The smoothed concentration was

x^i(t)=N(t)π^i(t) (11)

We used pseudocounts of ϵ = 10−3 for each dataset. We found that models that took a log of a quantity (gLV, ALR, cLV) were sensitive to smaller pseudocounts when making predicting from initial conditions.

Choice of denominator for cLV

We argued in the Results that the appropriate taxon for the denominator for cLV is one that is approximately log constant and common to all samples. We therefore selected a taxon for the denominator by first computing finite-difference estimates of

ddtlogπi(t)1Δt(logπi(t)-logπi(t-1))

for all taxon i = 1, …D and time points t. We then computed the variance Var(ddtlogπi(t)) for each taxon, and selected for the denominator the taxon with the lowest observed variance.

Correspondence with the parameters of gLV

We compared parameter estimates from gLV to that of cLV on the three real datasets that included community density estimates: the Diet dataset, the C. diff dataset, and the Antibiotic dataset. We transformed the concentrations of each of these datasets so that the were all on the same scale, which also ensured the scale of parameters learned by cLV was approximately the same as gLV. Specifically, let xi(t) be the observed concentration of taxon i and time point t, and let x˜i(t) be the transformed concentration. Then, if μ=1Kk=1Kxi(tk) is the mean concentration across all observed time points, the transformed concentration is

x˜i(tk)=xi(tk)μ (12)

Hence 1Kk=1Kx˜i(tk)=1. This is equivalent to changing the units for concentration. For example, if the original units are in 1011 rRNA copies per cm3 (as in [7]), then the new units are 1011μ rRNA copies per cm3. After adjusting concentrations, we then fit the parameters for both models using ridge regression. Specifically, the objective function was

arg minA*,g*,B*k=1Kgmodel(A*,g*,B*,k)22+x{A*,g*,B*}Penalty(x,α,λx) (13)

with

Penalty(x)=λxx22x{A*,g*,B*} (14)
gcLV(A¯,g¯,B¯,k)=Δη1:D-1(tk)Δtk-(g¯+A¯π1:D(tk-1)+B¯u(tk-1)) (15)
ggLV(A,g,B,k)=Δlogx1:D(tk)Δtk-(g+Ax1:D(tk-1)+Bu(tk-1)) (16)

where ηi(t) = log (πi(t)/πD(t)).

Model comparison

We compared cLV to gLV and two additional models with linear interactions in additive log-ratio space and relative abundance space respectively. We fit all models using the same inference procedure, least squares with an elastic net penalty, to ensure that differences in model performance we not due to different parameter inference methods. Specifically, the objective function is given by Eq 13, with the function gmodel for the two additional models:

gALR(A¯,g¯,B¯,k)=Δη1:D-1(tk)Δtk-(g¯+A¯η1:D-1(tk-1)+B¯u(tk-1)) (17)
glinear(A,g,B,k)=Δπ1:D(tk)Δtk-(g+Aπ1:D(tk-1)+Bu(tk-1)) (18)

where ηi(t) = log (πi(t)/πD(t)). The penalty term was

Penalty(x)=αλxx12+α(1-λx)x22)x{A*,g*,B*} (19)

We evaluated model performance by comparing forecasted trajectories from each model starting from the same initial conditions using leave-one-out cross validation in the Antibiotic dataset, Diet dataset, and C. diff dataset. For each cross-validation replicate on the Antibiotic, Diet, and C. diff datasets, we selected regularization parameters by again performing leave-one-out cross validation on the remaining data, and selected regularization parameters that minimized the total squared error across held-out data. The regularization parameters we explore were (α, λA, λg, λB) ∈ Q × R × R × R with R = {0.1, 0.5, 0.7, 0.9} and Q = {0.1, 0.5, 1, 10}. Microbial trajectories were predicted using the RK45 numerical interaction scheme from SciPy.

Supporting information

S1 Appendix. Appendix to compositional Lotka-Volterra describes microbial dynamics in the simplex.

(PDF)

S1 Fig. Comparison between elastic net and ridge regression on simulations with sequencing noise.

Root-mean-square-error (RMSE; y-axis) between ground truth and estimated interactions, ground truth and estimated growth rates, and predicted trajectories from initial conditions on held out data across 50 simulation replicates. Community trajectories were simulated under cLV, then noisy sequencing counts to with depth of 25000 reads per sample.

(TIF)

S2 Fig. Performance of parameter estimation with elastic net regularization with respect to sequencing depth.

Root-mean-square-error (RMSE; y-axis) between ground truth and estimated interactions, ground truth and estimated growth rates, and predicted trajectories from initial conditions on held out data across 50 simulation replicates. Community trajectories were simulated under cLV, then noisy sequencing counts with increasing sequencing depth.

(TIF)

S3 Fig. Performance of parameter estimation with elastic net regularization with respect to time between observations.

Root-mean-square-error (RMSE; y-axis) between ground truth and estimated interactions, ground truth and estimated growth rates, and predicted trajectories from initial conditions on held out data across 50 simulation replicates. Community trajectories were simulated under cLV. Observations were selected from simulated sequenced space 1, 2, 4, or 6 days apart. Noisy sequencing counts were simulated with a depth of 25000 reads.

(TIF)

S4 Fig. Robustness to choice of denominator.

Simulated parameters were estimated once for each taxon in the denominator per simulation replicate. The variance in RMSE (y-axis) across denominators per replicate was computed to assess how choice of denominator impacted parameter estimates.

(TIF)

S5 Fig. Ground truth and predicted trajectories on the Diet dataset.

Ground truth relative abundances (top), and predicted trajectories under each model. Each column is one sample. Scatter plots give the difference in square error per time point between each model evaluated and cLV (see y-label). Values above 0 (dashed line) indicate cLV is making a better prediction, while values below zero denote the opposite.

(TIF)

S6 Fig. Ground truth and predicted trajectories on the C. diff dataset.

Ground truth relative abundances (top), and predicted trajectories under each model. Each column is one sample. Scatter plots give the difference in square error per time point between each model evaluated and cLV (see y-label). Values above 0 (dashed line) indicate cLV is making a better prediction, while values below zero denote the opposite.

(TIF)

S7 Fig. Ground truth and predicted trajectories on the Antibiotic dataset.

Ground truth relative abundances (top), and predicted trajectories under each model. Each column is one sample. Scatter plots give the difference in square error per time point between each model evaluated and cLV (see y-label). Values above 0 (dashed line) indicate cLV is making a better prediction, while values below zero denote the opposite.

(TIF)

S8 Fig. Model performance when predicting the final time point on the Antibiotic dataset.

RMSE (y-axis) between ground truth and predicted final time point for each sample across models (x-axis).

(TIF)

S9 Fig. Estimated model parameters using gLV on the Antibiotic dataset.

Estimated external perturbations (A) and interactions (B) using gLV with elastic net on the Antibiotic dataset.

(TIF)

Data Availability

All data are public; code to replicate experiments is available at https://github.com/tyjo/clv.

Funding Statement

TAJ was supported by NSF fellowship DGE-1644869. IP was supported by NSF CCF-1547120, NSF DGE-1144854, and NIH U54CA209997. EH and LS were partially supported by the National Science Foundation (grant no. 1705197) and by NIH 1R56MD013312. EH was also partially supported by NIH/NHGRI HG010505-02, NIH 1R01MH115979, NIH 5R25GM112625, and NIH 5UL1TR001881. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1. Proctor LM, Creasy HH, Fettweis JM, Lloyd-Price J, Mahurkar A, Zhou W, et al. The integrative human microbiome project. Nature. 2019;569(7758):641–648. 10.1038/s41586-019-1238-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2. Fettweis J, Serrano M, Brooks J, Edwards D, Girerd P, Parikh H, et al. The vaginal microbiome and preterm birth. Nature medicine. 2019;25(6):1012–1021. 10.1038/s41591-019-0450-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Lloyd-Price J, Arze C, Ananthakrishnan AN, Schirmer M, Avila-Pacheco J, Poon TW, et al. Multi-omics of the gut microbial ecosystem in inflammatory bowel diseases. Nature. 2019;569(7758):655 10.1038/s41586-019-1237-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Taur Y, Xavier JB, Lipuma L, Ubeda C, Goldberg J, Gobourne A, et al. Intestinal domination and the risk of bacteremia in patients undergoing allogeneic hematopoietic stem cell transplantation. Clinical infectious diseases. 2012;55(7):905–914. 10.1093/cid/cis580 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Buffie CG, Bucci V, Stein RR, McKenney PT, Ling L, Gobourne A, et al. Precision microbiome reconstitution restores bile acid mediated resistance to Clostridium difficile. Nature. 2015;517(7533):205 10.1038/nature13828 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Olson CA, Vuong HE, Yano JM, Liang QY, Nusbaum DJ, Hsiao EY. The gut microbiota mediates the anti-seizure effects of the ketogenic diet. Cell. 2018;173(7):1728–1741. 10.1016/j.cell.2018.04.027 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7. Stein RR, Bucci V, Toussaint NC, Buffie CG, Rätsch G, Pamer EG, et al. Ecological modeling from time-series inference: insight into dynamics and stability of intestinal microbiota. PLoS computational biology. 2013;9(12):e1003388 10.1371/journal.pcbi.1003388 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Gibson TE, Gerber GK. Robust and Scalable Models of Microbiome Dynamics. arXiv preprint arXiv:180504591. 2018;.
  • 9. Marino S, Baxter NT, Huffnagle GB, Petrosino JF, Schloss PD. Mathematical modeling of primary succession of murine intestinal microbiota. Proceedings of the National Academy of Sciences. 2014;111(1):439–444. 10.1073/pnas.1311322111 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10. Bucci V, Tzen B, Li N, Simmons M, Tanoue T, Bogart E, et al. MDSINE: Microbial Dynamical Systems INference Engine for microbiome time-series analyses. Genome biology. 2016;17(1):121 10.1186/s13059-016-0980-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11. Cao HT, Gibson TE, Bashan A, Liu YY. Inferring human microbial dynamics from temporal metagenomics data: Pitfalls and lessons. BioEssays. 2017;39(2). 10.1002/bies.201600188 [DOI] [PubMed] [Google Scholar]
  • 12. Fernandes AD, Reid JN, Macklaim JM, McMurrough TA, Edgell DR, Gloor GB. Unifying the analysis of high-throughput sequencing datasets: characterizing RNA-seq, 16S rRNA gene sequencing and selective growth experiments by compositional data analysis. Microbiome. 2014;2(1):15 10.1186/2049-2618-2-15 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. Li H. Microbiome, metagenomics, and high-dimensional compositional data analysis. Annual Review of Statistics and Its Application. 2015;2:73–94. 10.1146/annurev-statistics-010814-020351 [DOI] [Google Scholar]
  • 14. Tsilimigras MC, Fodor AA. Compositional data analysis of the microbiome: fundamentals, tools, and challenges. Annals of epidemiology. 2016;26(5):330–335. 10.1016/j.annepidem.2016.03.002 [DOI] [PubMed] [Google Scholar]
  • 15. Gloor GB, Macklaim JM, Pawlowsky-Glahn V, Egozcue JJ. Microbiome datasets are compositional: and this is not optional. Frontiers in microbiology. 2017;8:2224 10.3389/fmicb.2017.02224 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Xia F, Chen J, Fung WK, Li H. A logistic normal multinomial regression model for microbiome compositional data analysis. Biometrics. 2013;69(4):1053–1063. 10.1111/biom.12079 [DOI] [PubMed] [Google Scholar]
  • 17. Kurtz ZD, Müller CL, Miraldi ER, Littman DR, Blaser MJ, Bonneau RA. Sparse and compositionally robust inference of microbial ecological networks. PLoS computational biology. 2015;11(5):e1004226 10.1371/journal.pcbi.1004226 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. Silverman JD, Washburne AD, Mukherjee S, David LA. A phylogenetic transform enhances analysis of compositional microbiota data. Elife. 2017;6:e21887 10.7554/eLife.21887 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19. McGeachie MJ, Sordillo JE, Gibson T, Weinstock GM, Liu YY, Gold DR, et al. Longitudinal prediction of the infant gut microbiome with dynamic bayesian networks. Scientific reports. 2016;6:20359 10.1038/srep20359 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20. Gibbons SM, Kearney SM, Smillie CS, Alm EJ. Two dynamic regimes in the human gut microbiome. PLoS computational biology. 2017;13(2):e1005364 10.1371/journal.pcbi.1005364 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21. Shenhav L, Furman O, Briscoe L, Thompson M, Silverman JD, Mizrahi I, et al. Modeling the temporal dynamics of the gut microbial community in adults and infants. PLOS Computational Biology. 2019;15(6):e1006960 10.1371/journal.pcbi.1006960 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Aitchison J. The Statistical Analysis of Compositional Data. London, UK, UK: Chapman & Hall, Ltd.; 1986. [Google Scholar]
  • 23. Pawlowsky-Glahn V, Egozcue JJ, Tolosana-Delgado R. Modeling and analysis of compositional data. John Wiley & Sons; 2015. [Google Scholar]
  • 24. Egozcue JJ, Pawlowsky-Glahn V, Mateu-Figueras G, Barcelo-Vidal C. Isometric logratio transformations for compositional data analysis. Mathematical Geology. 2003;35(3):279–300. 10.1023/A:1023818214614 [DOI] [Google Scholar]
  • 25. Silverman JD, Durand HK, Bloom RJ, Mukherjee S, David LA. Dynamic linear models guide design and analysis of microbiota studies within artificial human guts. Microbiome. 2018;6(1):202 10.1186/s40168-018-0584-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26. Äijö T, Müller CL, Bonneau R. Temporal probabilistic modeling of bacterial compositions derived from 16S rRNA sequencing. Bioinformatics. 2017;34(3):372–380. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Jarauta Bragulat E, Egozcue JJ, et al. Approaching predator-prey Lotka-Volterra equations by simplicial linear differential equations. Proceedings of the 4th International Workshop on Compositional Data Analysis. 2011;.
  • 28. Tikhonov AN, Arsenin VI. Solutions of ill-posed problems. vol. 14 Winston, Washington, DC; 1977. [Google Scholar]
  • 29. Zou H, Hastie T. Regularization and variable selection via the elastic net. Journal of the royal statistical society: series B (statistical methodology). 2005;67(2):301–320. 10.1111/j.1467-9868.2005.00503.x [DOI] [Google Scholar]
  • 30. Buffie CG, Jarchum I, Equinda M, Lipuma L, Gobourne A, Viale A, et al. Profound alterations of intestinal microbiota following a single dose of clindamycin results in sustained susceptibility to Clostridium difficile-induced colitis. Infection and immunity. 2012;80(1):62–73. 10.1128/IAI.05496-11 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31. Arditi R, Ginzburg LR. Coupling in predator-prey dynamics: ratio-dependence. Journal of theoretical biology. 1989;139(3):311–326. 10.1016/S0022-5193(89)80211-5 [DOI] [Google Scholar]
  • 32. Martın-Fernandez JA, Palarea-Albaladejo J, Olea RA. Dealing with zeros. Compositional data analysis. 2011; p. 43–58. 10.1002/9781119976462.ch4 [DOI] [Google Scholar]
  • 33. Zhao X, Luo J. Classification and dynamics of stably dissipative Lotka–Volterra systems. International Journal of Non-Linear Mechanics. 2010;45(6):603–607. 10.1016/j.ijnonlinmec.2009.07.006 [DOI] [Google Scholar]
  • 34. Li C, Chng KR, Kwah JS, Av-Shalom TV, Tucker-Kellogg L, Nagarajan N. An expectation-maximization algorithm enables accurate ecological modeling using longitudinal microbiome sequencing data. Microbiome 7, 118 (2019). 10.1186/s40168-019-0729-z [DOI] [PMC free article] [PubMed] [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007917.r001

Decision Letter 0

Natalia L Komarova, Vasilis Dakos

Transfer Alert

This paper was transferred from another journal. As a result, its full editorial history (including decision letters, peer reviews and author responses) may not be present.

25 Nov 2019

Dear Dr Pe'er,

Thank you very much for submitting your manuscript 'Compositional Lotka-Volterra describes microbial dynamics in the simplex' for review by PLOS Computational Biology. Your manuscript has been fully evaluated by the PLOS Computational Biology editorial team and in this case also by independent peer reviewers. The reviewers appreciated the attention to an important problem, but raised some substantial concerns about the manuscript as it currently stands. While your manuscript cannot be accepted in its present form, we are willing to consider a revised version in which the issues raised by the reviewers have been adequately addressed. We cannot, of course, promise publication at that time.

Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

Your revisions should address the specific points made by each reviewer. Please return the revised version within the next 60 days. If you anticipate any delay in its return, we ask that you let us know the expected resubmission date by email at ploscompbiol@plos.org. Revised manuscripts received beyond 60 days may require evaluation and peer review similar to that applied to newly submitted manuscripts.

In addition, when you are ready to resubmit, please be prepared to provide the following:

(1) A detailed list of your responses to the review comments and the changes you have made in the manuscript. We require a file of this nature before your manuscript is passed back to the editors.

(2) A copy of your manuscript with the changes highlighted (encouraged). We encourage authors, if possible to show clearly where changes have been made to their manuscript e.g. by highlighting text.

(3) A striking still image to accompany your article (optional). If the image is judged to be suitable by the editors, it may be featured on our website and might be chosen as the issue image for that month. These square, high-quality images should be accompanied by a short caption. Please note as well that there should be no copyright restrictions on the use of the image, so that it can be published under the Open-Access license and be subject only to appropriate attribution.

Before you resubmit your manuscript, please consult our Submission Checklist to ensure your manuscript is formatted correctly for PLOS Computational Biology: http://www.ploscompbiol.org/static/checklist.action. Some key points to remember are:

- Figures uploaded separately as TIFF or EPS files (if you wish, your figures may remain in your main manuscript file in addition).

- Supporting Information uploaded as separate files, titled Dataset, Figure, Table, Text, Protocol, Audio, or Video.

- Funding information in the 'Financial Disclosure' box in the online system.

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. For instructions see here

We are sorry that we cannot be more positive about your manuscript at this stage, but if you have any concerns or questions, please do not hesitate to contact us.

Sincerely,

Vasilis Dakos, Ph. D.

Guest Editor

PLOS Computational Biology

Natalia Komarova

Deputy Editor

PLOS Computational Biology

A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact ploscompbiol@plos.org immediately:

Download Sanitized Copy

Dear  Dr Pe'er ,

As you will see  the two expert reviewers that evaluated your manuscript, they both find the manuscript of interest, but they raised some considerations in regards to its conclusions and analysis. In your revision, you should pay attention to some of their statements at the discussion as highlighted by Rev2, and in particular to provide a better justification of the relevance of your work for clinicians as suggested by Rev1. In this way, the manuscript can become much more than an improved computational contribution. In addition, I share the concerns raised on the usefulness of section 2.3 and 2.6 and the specifics of the model fitting raised by both reviewers, as well the importance of noise and choice of denominator data. The two reviewers have also raised a series of other comments that need to be addressed to make the paper stronger and more impactful.

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: In this manuscript, Tyler A. Joseph and colleagues adopt ecology models of community dynamics to a compositional space. The paper is clearly written, and the topic will likely be of at least modest interest to the community of researchers interested in the theory of how to apply ecological principles to sequence count data. It is less clear that the progress in theory the paper represents will be of immediate use to the larger community of researchers who have longitudinal 16S or WGS-metagenome data and are searching for ways to relate these data to clinical parameters.

For table #1, could the authors add columns indicating the total sample size for each study, the # of free parameters in each corresponding model and the method used for generating absolute abundance in each study. In general, the authors could be more explicit about the relationship between the number of free parameters in the models they used and the sample size. It is unclear from the current version of the manuscript if the models tend to have nearly as many or more parameters than the number of samples. In such cases, good fits to the data are not hard to achieve (as the physicist von Neumann was alleged to have said, “With four parameters I can fit an elephant, and with five I can make him wiggle his trunk.”). Some consideration of model flexibility given model complexity should be added to the discussion. Do the cLV and gLV and linear models (equations (11) and (12)) all have the same number of free parameters? Or can the modest increases in performance seen by cLV in fitting the data be explained by an increase in the number of free parameters?

The glv equations are not universally appreciated as being appropriate for ecological modeling and some discussion of this should be added to the introduction or discussion (for example J. theor. Biol. (1989) 139, 311-326; Coupling in Predator-Prey Dynamics: Ratio-Dependence; ROGER ARDITIt AND LEV R. G1NZBURG).

The section on “clinical relevance” is not particularly compelling. It’s not immediately clear what an ROC based on “the greatest predicted fraction of Enterococcus (across all predictions) as the prediction threshold” could mean. This seems a bit circular as the model is apparently being used to measure its own predictions. This section (section 2.6) could potentially be removed in its entirety. Alternatively, the authors could find a more traditional clinical prediction (case/control status, probability of getting an infection) or some other feature more clearly related to a patient health outcome as a test of their model. They could also more directly demonstrate the utility of their model by directly comparing to more frequently used data analysis schemes (for example, how does their model do when compared to a random forest classifier built with leave X out classification).

Could the authors expand their discussion of the choice of the denominator taxa in their method? From the methods section, different strategies were taken for choosing the denominator in the different datasets. Could the authors demonstrate that the superiority of the cLV method was robust to these choices. That is to say, if a different choice for the denominator was used, does cLV still out-perform the other methods?

Reviewer #2: attachment

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: Yes: Georg K. Gerber

Attachment

Submitted filename: Review.pdf

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007917.r003

Decision Letter 1

Natalia L Komarova, Vasilis Dakos

17 Mar 2020

Dear Dr Pe'er ,

Thank you very much for submitting your manuscript "Compositional Lotka-Volterra describes microbial dynamics in the simplex" for consideration at PLOS Computational Biology. As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. The reviewers appreciated the attention to an important topic. Based on the reviews, we are likely to accept this manuscript for publication, providing that you modify the manuscript according to the review recommendations.

The two expert reviewers have both found that your revision adequately addressed their raised concerns.

I would suggest that you make one more effort to address the few issues raised by Rev 2 that I think would increase the clarity of your work and could potentially increase the impact of your contribution.

Please prepare and submit your revised manuscript within 30 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. 

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to all review comments, and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Thank you again for your submission to our journal. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Vasilis Dakos, Ph. D.

Guest Editor

PLOS Computational Biology

Natalia Komarova

Deputy Editor

PLOS Computational Biology

***********************

A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact ploscompbiol@plos.org immediately:

[LINK]

Dear Dr Pe'er ,

The two expert reviewers have both found that your revision adequately addressed their raised concerns.

I would suggest that you make one more effort to address the few issues raised by Rev 2 that I think would increase the clarity of your work and could potentially increase the impact of your contribution.

Best regards,

Vasilis Dakos

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The authors have done a good job of responding to the technical queries of the reviewers. The paper remains a solid - if somewhat esoteric - contribution to the literature and I have no further suggestions for improvements.

Reviewer #2: The authors have done substantial work to improve the manuscript and have addressed all of my major concerns. In particular, I really appreciate the authors’ work deriving new qualitative and quantitative understanding of what can be inferred by their model (e.g., the new Section 2.6). The microbiome field really needs this type of careful and thoughtful analysis to get beyond blind application of generic statistical and machine learning methods.

At this point, my critique involves changes for clarity and consistency in the manuscript.

Also, I’d like to apologize for the amount of time it took me to re-review. I received the manuscript while on a tight grant deadline and informed the editorial office I wouldn’t be able to re-review until the first week in March. However, due to the COVID-19 situation, both personally and events at my institution, I’ve been delayed in getting this done.

Comments:

Pg 2, starting line 35: “We show that relative abundances are sufficient to learn the process governing microbial dynamics…”

I would cut this sentence or revise. As written, this sentence could be misinterpreted as: 1) you’re learning the actual physical process (rather than a model) and, 2) absolute abundance measurements provide no useful information.

Pg 4, line 79: “Yet, binning taxa into quantiles loses fine-grained information…”

I would soften this to “MAY lose fine-grained information…”

This depends on the discretization scheme and what the model is trying to learn. For relationships such as signs of interactions, discretization approaches could potentially work quite well.

Pg 5, line 107: “…recapitulate a mechanism of C. difficle [typo] colonization…”

I wouldn’t really say the cited work offers a mechanism of C. difficile colonization. Maybe clearer to call it a “proposed directed microbe-microbe interaction network with C. difficile” or something similar, since that’s what you’re ultimately comparing to. This same phrase is used elsewhere in the manuscript, so should be changed throughout.

Pg 8, line 166: This is a really nice insight! It allows one to easily see what the “compositional” contribution is in these types of models.

Pg 9, line 186: “…form of equation (6) makes direct application of these methods challenging…”

I would revise to “…form of our model (e.g., equation 6) does not allow us to readily apply these methods…”

The model in Bucci et al is fully Bayesian and hierarchical. It’s not clear to me how the cLV model could best be recast as a fully Bayesian model (or that equation 6 is the only issue) and what inference method would be most efficient. That’s an interesting question for future research!

Pg 9, line 207: “…we wanted to ensure that difference [typo] choices of denominator do not affect quality of inference.”

This is a very nice result that demonstrates robustness of the method.

Pg 10, line 228: “…“Diet” dataset included 7 mice. 5 mice were fed from a high-fiber diet…”

Just to clarify, this dataset only contains absolute abundances. The concentrations of the individual taxa were measured via qPCR. Relative abundances weren’t measured in these experiments.

Pg 10, line 238: “For this particular task, we chose to use ridge regression since elastic net may choose to zero out different parameters for each model, making direct comparison challenging.”

I’m not sure what’s meant here or why ridge regression was used here and elastic net was used elsewhere. Both ridge regression and elastic net are shrinkage estimators that don’t zero out regression coefficients (whereas the lasso algorithm does), but just bias them to small values. So, why won’t elastic net work just as well here? Based on your analyses on simulated data, it doesn’t seem there’s a meaningful difference in performance between the two methods. So, couldn’t you just use ridge regression throughout the manuscript for consistency? Or, are you using some version of elastic net that actually does zero out parameters?

Pg 11, line 248: “Nonetheless, correspondence between interactions and external effects was strong among the three datasets we explored.”

This is another nice result that empirically confirms when compositional effects may be important and when they’re not.

Pg 12, line 262: “To avoid overfitting, which would cause models with more parameters to perform better, we only evaluated predicted trajectories on held out test data using leave-one-out cross validation. That is, for each dataset we held out one sample at time, and trained models on the remaining data.”

As written, I think this is a bit confusing as to the reason why you’re doing cross-validation. Maybe something like: “We evaluated models based on a measure of generalization performance, or the ability to predict unseen data. Generalization performance metrics inherently penalizes models that overfit, or use parameters to fit noise in data rather than model actual signal. These metrics allow for principled comparison of models with different structures or numbers of parameters. In our case, we used a metric that evaluated predicted trajectories on held out test data via leave-one-out cross validation. That is, for each dataset we held out one time-series in turn, and trained models on the remaining data.”

Pg 13, line 284: “Second, none of the models captured a community disturbance resulting from the introduction of C. difficle [typo].”

I continue to find this statement confusing. What is meant by the models not capturing a community disturbance? Since you’re modeling C. diff as one of the microbes in the ecosystem, doesn’t that capture the disturbance? I think more clearly defining what’s meant by a community disturbance (in terms of your model and this particular dataset) is needed.

Pg 13, line 292: “…suggested criteria for when an absolute term…”

I’d explicitly state “absolute growth rates and interaction terms” since it’s unclear what “term” means until later in the paragraph.

Pg 13, line 298: I don’t entirely follow the logic that the probability of getting the sign correct is 75%. It’s not clear to me that the assumption of a symmetric distribution around zero implies equal probability of the four cases. Doesn’t it depend on P(|A_{ij}| > |A_{D_{j}}|)?

Pg 14, line 305: This paragraph is overall a bit confusing. Perhaps the term “optimal” rather than “right” would be better. Also, the statement that “…these do not need to be the same denominator…” is confusing. I think some copyediting will help here.

Pg 15, line 347: “Notably, cLV more accurately forecast community trajectories than gLV across all three datasets we explored.”

Be clear that the forecasting task is relative abundances, i.e., “Notably, cLV more accurately forecast community trajectories of relative abundances than gLV across all three datasets we explored.”

Pg 15, line 351: “One explanation for the discrepancy is that gLV is penalized twice for noisy data, while cLV only once.”

I disagree that this is an inherent problem with the gLV equations. It relates more to the statistical noise model (or lack thereof.) You’re comparing two models that lack explicit noise models. Models using either gLV or cLV dynamics could use explicit noise models. This has already been shown to benefit gLV-based models. It would likely benefit a cLV model as well. The issue as to whether absolute abundances can be accurately measured is a separate point. There are technical challenges to making these measurements and the first methods employed were fairly poor. But, there have already been and continue to be improvements in the experimental methodologies.

I think a more interesting and relevant question from the computational perspective (and for purposes of this manuscript) is why gLV underperforms when it’s given only relative abundance information. As you’ve pointed out, this makes an assumption of constant biomass, which is clearly wrong in many cases. Again, as you’ve pointed out, gLV isn’t a model for compositional data. So, unless there’s constant biomass, it’s the wrong model for relative abundances. This is the most important take-away for readers. The intricacies of experimental technologies and statistical error models are secondary issues.

Pg 16, Line 372: “…our contribution is a formulation of when parameters can be recovered mathematically…”

This is a bit hard to follow. Maybe something like “..our contribution is a mathematical formulation of criteria for when absolute parameters can be recovered from relative abundance information.”

Regarding the C. diff dataset in Bucci et al:

Just to be clear, because this was a gnotobiotic experiment, we knew exactly which taxa were introduced, and from the sequencing data, we did not detect any contaminants. Any additional OTUs beyond the taxa actually present are bioinformatic artifacts and occur at very low abundances. So, in your analyses, it makes most sense to include all of the taxa experimentally introduced and exclude any bioinformatic artifacts, as done in the original MDSINE analyses. The MDSINE analyses were done using older bioinformatics pipelines. In recent gnotobiotic experiments we’ve done with the same taxa, we can recover nearly exactly the same ASVs/OTUs as there are actual taxa.

General: there are a number of typos throughout, particularly in the new sections. Careful copyediting is needed.

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: Yes

Reviewer #2: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: Yes: Georg K. Gerber

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, PLOS recommends that you deposit laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. For instructions see http://journals.plos.org/ploscompbiol/s/submission-guidelines#loc-materials-and-methods

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007917.r005

Decision Letter 2

Natalia L Komarova, Vasilis Dakos

28 Apr 2020

Dear Dr Pe'er,

We are pleased to inform you that your manuscript 'Compositional Lotka-Volterra describes microbial dynamics in the simplex' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Vasilis Dakos, Ph. D.

Guest Editor

PLOS Computational Biology

Natalia Komarova

Deputy Editor

PLOS Computational Biology

***********************************************************

Editors remarks:

I find that your responses to the Reviewers comments were satisfactory and your manuscript has benefited.

I would only like to point your attention in taking the time to reread your text to correct minor mistakes - eg lines 82 to explore, 90 - ignores, 427 strange syntax- are some examples that I came across while reading through.

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007917.r006

Acceptance letter

Natalia L Komarova, Vasilis Dakos

22 May 2020

PCOMPBIOL-D-19-01680R2

Compositional Lotka-Volterra describes microbial dynamics in the simplex

Dear Dr Pe'er,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Sarah Hammond

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Appendix. Appendix to compositional Lotka-Volterra describes microbial dynamics in the simplex.

    (PDF)

    S1 Fig. Comparison between elastic net and ridge regression on simulations with sequencing noise.

    Root-mean-square-error (RMSE; y-axis) between ground truth and estimated interactions, ground truth and estimated growth rates, and predicted trajectories from initial conditions on held out data across 50 simulation replicates. Community trajectories were simulated under cLV, then noisy sequencing counts to with depth of 25000 reads per sample.

    (TIF)

    S2 Fig. Performance of parameter estimation with elastic net regularization with respect to sequencing depth.

    Root-mean-square-error (RMSE; y-axis) between ground truth and estimated interactions, ground truth and estimated growth rates, and predicted trajectories from initial conditions on held out data across 50 simulation replicates. Community trajectories were simulated under cLV, then noisy sequencing counts with increasing sequencing depth.

    (TIF)

    S3 Fig. Performance of parameter estimation with elastic net regularization with respect to time between observations.

    Root-mean-square-error (RMSE; y-axis) between ground truth and estimated interactions, ground truth and estimated growth rates, and predicted trajectories from initial conditions on held out data across 50 simulation replicates. Community trajectories were simulated under cLV. Observations were selected from simulated sequenced space 1, 2, 4, or 6 days apart. Noisy sequencing counts were simulated with a depth of 25000 reads.

    (TIF)

    S4 Fig. Robustness to choice of denominator.

    Simulated parameters were estimated once for each taxon in the denominator per simulation replicate. The variance in RMSE (y-axis) across denominators per replicate was computed to assess how choice of denominator impacted parameter estimates.

    (TIF)

    S5 Fig. Ground truth and predicted trajectories on the Diet dataset.

    Ground truth relative abundances (top), and predicted trajectories under each model. Each column is one sample. Scatter plots give the difference in square error per time point between each model evaluated and cLV (see y-label). Values above 0 (dashed line) indicate cLV is making a better prediction, while values below zero denote the opposite.

    (TIF)

    S6 Fig. Ground truth and predicted trajectories on the C. diff dataset.

    Ground truth relative abundances (top), and predicted trajectories under each model. Each column is one sample. Scatter plots give the difference in square error per time point between each model evaluated and cLV (see y-label). Values above 0 (dashed line) indicate cLV is making a better prediction, while values below zero denote the opposite.

    (TIF)

    S7 Fig. Ground truth and predicted trajectories on the Antibiotic dataset.

    Ground truth relative abundances (top), and predicted trajectories under each model. Each column is one sample. Scatter plots give the difference in square error per time point between each model evaluated and cLV (see y-label). Values above 0 (dashed line) indicate cLV is making a better prediction, while values below zero denote the opposite.

    (TIF)

    S8 Fig. Model performance when predicting the final time point on the Antibiotic dataset.

    RMSE (y-axis) between ground truth and predicted final time point for each sample across models (x-axis).

    (TIF)

    S9 Fig. Estimated model parameters using gLV on the Antibiotic dataset.

    Estimated external perturbations (A) and interactions (B) using gLV with elastic net on the Antibiotic dataset.

    (TIF)

    Attachment

    Submitted filename: Review.pdf

    Attachment

    Submitted filename: Response to Reviewers.docx

    Attachment

    Submitted filename: Response Only.pdf

    Data Availability Statement

    All data are public; code to replicate experiments is available at https://github.com/tyjo/clv.


    Articles from PLoS Computational Biology are provided here courtesy of PLOS

    RESOURCES