Skip to main content
Nature Communications logoLink to Nature Communications
. 2017 Dec 11;8:2042. doi: 10.1038/s41467-017-02090-2

Mapping the ecological networks of microbial communities

Yandong Xiao 1,2, Marco Tulio Angulo 3,4, Jonathan Friedman 5, Matthew K Waldor 6,7, Scott T Weiss 1, Yang-Yu Liu 1,8,
PMCID: PMC5725606  PMID: 29229902

Abstract

Mapping the ecological networks of microbial communities is a necessary step toward understanding their assembly rules and predicting their temporal behavior. However, existing methods require assuming a particular population dynamics model, which is not known a priori. Moreover, those methods require fitting longitudinal abundance data, which are often not informative enough for reliable inference. To overcome these limitations, here we develop a new method based on steady-state abundance data. Our method can infer the network topology and inter-taxa interaction types without assuming any particular population dynamics model. Additionally, when the population dynamics is assumed to follow the classic Generalized Lotka–Volterra model, our method can infer the inter-taxa interaction strengths and intrinsic growth rates. We systematically validate our method using simulated data, and then apply it to four experimental data sets. Our method represents a key step towards reliable modeling of complex, real-world microbial communities, such as the human gut microbiota.


Understanding ecological interactions in microbial communities is limited by lack of informative longitudinal abundance data necessary for reliable inference. Here, Xiao et al. develop a method to infer the interactions between microbes based on their abundances in steady-state samples.

Introduction

The microbial communities established in animals, plants, soils, oceans, and virtually every ecological niche on Earth perform vital functions for maintaining the health of the associated ecosystems15. Recently, our knowledge of the organismal composition and metabolic functions of diverse microbial communities has markedly increased, due to advances in DNA sequencing and metagenomics6. However, our understanding of the underlying ecological networks of these diverse microbial communities lagged behind7. Mapping the structure of those ecological networks and developing ecosystem-wide dynamic models will be important for a variety of applications8, from predicting the outcome of community alterations and the effects of perturbations9, to the engineering of complex microbial communities7,10. We emphasize that the ecological network discussed here is a directed, signed, and weighted graph, where nodes represent microbial taxa and edges represent direct ecological interactions (e.g., parasitism, commensalism, mutualism, amensalism, or competition) between different taxa. This is fundamentally different from the correlation-based association or co-occurrence network7,1113, which is undirected and does not encode any causal relations or direct ecological interactions, and hence cannot be used to faithfully predict the dynamic behavior of microbial communities.

To date, existing methods for inferring the ecological networks of microbial communities are based on temporal abundance data, i.e., the abundance time-series of each taxon in the microbial community1419. The success of those methods has been impaired by at least one of the following two fundamental limitations. First, those inference methods typically require the a priori choice of a parameterized population dynamics model for the microbial community. This choice is  hard to justify, given that microbial taxa in the microbial community interact via a multitude of different mechanisms7,2022, producing complex dynamics even at the scale of two taxa23,24. Any deviation of the chosen model from the ‘true’ model of the microbial community can lead to systematic inference errors, regardless of the inference method that is used19. Second, a successful temporal data-based inference requires sufficiently informative time-series data19,25. For many host-associated microbial communities, such as the human gut microbiota, the available temporal data are often poorly informative. This is due to the fact that such microbial communities often display stability and resilience26,27, which leads to measurements containing largely their steady-state behavior. For microbial communities such as the human gut microbiota, trying to improve the informativeness of temporal data is challenging and even ethically questionable, as it requires applying drastic and frequent perturbations to the microbial community, with unknown effects on the host.

To circumvent the above fundamental limitations of inference methods based on temporal data, here we developed a new method based on steady-state data, which does not require any external perturbations. The basic idea is as follows. Briefly, if we assume that the net ecological impact of species on each other is context-independent, then comparing equilibria (i.e., steady-state samples) consisting of different subsets of species would allow us to infer the interaction types. For example, if one steady-state sample differs from another only by addition of one species X, and adding X brings down the absolute abundance of species Y, then we can conclude X inhibits the growth of Y. This very simple idea can actually be extended to more complicated cases where steady-state samples differ from each other by more than one species. Indeed, we rigorously proved that, if we collect enough independent steady states of the microbial community, it is possible to infer the microbial interaction types (positive, negative, and neutral interactions) and the structure of the ecological network, without requiring any population dynamics model. We further derived a rigorous criterion to check if the steady-state data from a microbial community is consistent with the generalized Lotka–Volterra (GLV) model1519, a classic population dynamics model for microbial communities in human bodies, soils, and lakes. We proved that, if the microbial community follows the GLV dynamics, then the steady-state data can be used to accurately infer the model parameters, i.e., inter-taxa interaction strengths and intrinsic growth rates. We validated our inference method using simulated data generated from various classic population dynamics models. Finally, we applied it to real data collected from four different synthetic microbial communities, finding that the inferred ecological networks either agree well with the ground truth or help us predict the response of systems to perturbations. Our method represents a key step toward reliable ecological modeling of complex microbial communities, such as the human gut microbiota.

Results

Theoretical basis

Microbes typically do not exist in isolation, but form complex ecological networks7. The ecological network of a microbial community is encoded in its population dynamics, which can be described by a set of ordinary differential equations (ODEs):

dxitdt=xitfix(t),i=1,,N. 1

Here, fi(x(t))’s are some unspecified functions whose functional forms determine the structure of the underlying ecological network; x(t)=x1(t),,xN(t)TRN is an N-dimensional vector with xit denoting the absolute abundance of the i-th taxon at time t. In this work, we do not require ‘taxon’ to have a particular taxonomic ranking, as long as the resulting abundance profiles are distinct enough across all the collected samples. Indeed, we can group microbes by species, genus, family, or just operational taxonomic units (OTUs).

Note that in the right-hand side of Eq. (1), we explicitly factor out x i to emphasize that (i) without external perturbations those initially absent or later extinct taxa will never be present in the microbial community again as time goes by, which is a natural feature of population dynamics (in the absence of taxon invasion or migration); (ii) there is a trivial steady state where all taxa are absent; (iii) there are many non-trivial steady states with different taxa collections. We assume that the steady-state samples collected in a data set X correspond to those non-trivial steady states x* of Eq. (1), which satisfy xi*fix1*,,xN*=0, i=1,,N. For many host-associated microbial communities, e.g., the human gut microbiota, those cross-sectional samples collected from different individuals contain quite different collections of taxa (up to the taxonomic level of phylum binned from OTUs)26. We will show later that the number of independent steady-state samples is crucial for inferring the ecological network.

Mathematically, the intra- and inter-taxa ecological interactions (i.e., promotion, inhibition, or neutral) are encoded by the Jacobian matrix Jx(t)RN×N with matrix elements Jij(x(t))fi(x(t))xj. The condition Jij(x(t))>0 (<0 or =0) means that taxon j promotes (inhibits or does not affect) the growth of taxon i, respectively. The diagonal terms Jii(x(t)) represent intra-taxa interactions. Note that Jij(x(t)) might depend on the abundance of many other taxa beyond i and j (due to the so-called ‘higher-order’ interactions24,2832).

The structure of the ecological network is represented by the zero-pattern of Jx(t). Under a very mild assumption that 01JijxI+σxK-xIdσ=0 holds if and only if Jij0 (where x I and x K are two steady-state samples sharing taxon i), we find that the steady-state samples can be used to infer the zero-pattern of Jx(t), i.e., the structure of the ecological network (Methods, the subsection ‘Inferring the zero-pattern’ of Supplementary Note 1, Supplementary Note 2, and Supplementary Note 3 for details). Note that the network structure is interesting by itself and can be very useful in control theoretical analysis of microbial communities33. But in many cases, we are more interested in inferring the interaction types or strengths, so that we can better predict the community’s response to perturbations.

The ecological interaction types are encoded in the sign-pattern of Jx(t), denoted as signJ(x(t)). To infer the interaction types, i.e., signJ(x(t)), we make an explicit assumption that signJ(x(t))=const across all the observed steady-state samples. In other words, the nature of the ecological interactions between any two taxa does not vary across all the observed steady-state samples, though their interaction strengths might change. Note that the magnitude of Jij(x(t)) by definition may vary over different states, we just assume its sign remains invariant across all the observed samples/states. This assumption might be violated if those steady-state samples were collected from the microbial community under drastically different environmental conditions (e.g., nutrient availability34). In that case, inferring the interaction types becomes an ill-defined problem, since we have a ‘moving target’ and different subsets of steady-state samples may offer totally different answers. Notably, as we will show later, the assumption is valid for many classic population dynamics models3539.

The assumption that signJ(x(t))=const can be falsified by analyzing steady-state samples. In Proposition 1 of the subsection ‘Inferring the sign-pattern’ of Supplementary Note 1, we rigorously proved that if signJ(x(t))=const, then true multi-stability does not exist. Equivalently, if a microbial community displays true multi-stability, then signJ(x(t))const. Here, a community of N taxa displays true multi-stability if there exists a subset of M (N) taxa that has multiple different steady states, where all the M taxa have positive abundances and the other (N-M) taxa are absent. In practice, we can detect the presence of true multi-stability by examining the collected steady-state samples. If yes, then we know immediately that our assumption that signJ(x(t))=const is invalid and we should only infer the zero-pattern of J, i.e., the structure of the ecological network. If no, then at least our assumption is consistent with the collected steady-state samples, and we can use our method to infer signJ(x(t)), i.e., the ecological interaction types. In short, by introducing a criterion to falsify our assumption, we significantly enhance the applicability of our method (see Remark 6 of the subsection ‘Inferring the sign-pattern’ of Supplementary Note 1 for more detailed discussions).

Inferring interaction types

The assumption that signJ(x(t))=const enables us to mathematically prove that signJ(x(t)) satisfies a strong constraint (see Methods and Theorem 2 in the subsection ‘Inferring the sign-pattern’ of Supplementary Note 1). By collecting enough independent steady-state samples, we can solve for the sign-pattern of Jx, and hence map the structure of the ecological network (Remarks 4 and 5 in the subsection ‘Inferring the sign-pattern’ of Supplementary Note 1).

The basic idea is as follows. Let Ii be the set of all steady-state samples sharing taxon i. Then, for any two of those samples x I and x K, where the superscripts I,KIi denote the collections of present taxa in those samples, we can prove that the sign-pattern of the i-th row of Jacobian matrix, denoted as a ternary vector si{-,0,+}N, is orthogonal to (xI-xK) (see Eq. (S3) in Supplementary Note 1). In other words, we can always find a real-valued vector yRN, which has the same sign-pattern as s i and satisfies yxI-xK=0. If we compute the sign-patterns of all vectors orthogonal to xI-xK for all I,KIi, then s i must belong to the intersections of those sign-patterns, denoted as S^i. In fact, as long as the number Ω of steady-state samples in X is above certain threshold Ω*, then S^i will contain only three sign-patterns {-a,0,a} (see Remark 5 in the subsection ‘Inferring the sign-pattern’ of Supplementary Note 1). To decide which of these three remaining sign-patterns is the true one, we just need to know the sign of only one non-zero interaction. If such prior knowledge is unavailable, one can at least make a reasonable assumption that s ii = ‘−’, i.e., the intra-taxa interaction J ii is negative (which is often required for community stability). When S^i has more than three sign-patterns, we proved that the steady-state data is not informative enough in the sense that all sign-patterns in S^i are consistent with the data available in X (see Remark 5 in the subsection ‘Inferring the sign-pattern’ of Supplementary Note 1). This situation is not a limitation of any inference algorithm, but of the data itself. To uniquely determine the sign-pattern in such a situation, one has to either collect more samples (thus increasing the informativeness of X) or use a priori knowledge of non-zero interactions.

We illustrate the application of the above described method to small microbial communities with unspecified population dynamics (Fig. 1). For the two taxa community (Fig. 1a), there are three possible types of equilibria, i.e., {x{1},x{2},x{1,2}}, depicted as colored pie charts in Fig. 1b. In order to infer s1=(sign(J11),sign(J12)), we compute a straight line (shown in green in Fig. 1b) that is orthogonal to the vector (x1,2-x{1}) and passes through the origin. The regions (including the origin and two quadrants) crossed by this green line provide the set of possible sign-patterns S^1={-,+,0,0,+,-} that s 1 may belong to. A priori knowing that J11<0, our method correctly concludes that s1=(-,+). Note that J12>0 is consistent with the observation that with the presence of taxon 2, the steady-state abundance of taxon 1 increases (Fig. 1b), i.e., taxon 2 promotes the growth of taxon 1. We can apply the same method to infer the sign-pattern of s2=(-,-).

Fig. 1.

Fig. 1

Inferring ecological interaction types for a small microbial community. The interaction types are coded as the sign-pattern of the Jacobian matrix. a For a microbial community of two taxa, its ecological network and the sign-pattern of the corresponding Jacobian matrix are shown here. b There are three possible steady-state samples (shown as colored pie charts), and two of them x{1,2},x1 share taxon 1. We calculate the green line that passes through the origin and is perpendicular to the vector (x1,2-x1) (shown as a blue line segment). This green line crosses the origin, and two other orthants (shown in light cyan and green), offering a set of possible sign-patterns: 0,0,(-,-) and (+,-), for which s1=(signJ11,sign(J12)) may belong to. Provided that J11<0, we conclude that s1=(-,+). c For a microbial community of three taxa, its ecological network and the sign-pattern of the corresponding Jacobian matrix are shown here. d There are seven possible steady-state samples, and we plot four of them that share taxon 1. Consider a line segment (x{1,3}-x{1}) (solid blue). We calculate the orange plane that passes through the origin and is perpendicular to this solid blue line. This orange plane crosses nine regions: the origin and the other eight regions (denoted in different color cubes, color lines), offering nine possible sign-patterns for s 1. We can consider another line segment that connects two steady-state samples sharing taxon 1, say, x{1,3} and x{1,2,3}, and repeat the above procedure. We do this for all the sample pairs (dashed blue lines), record the regions crossed by the corresponding orthogonal planes. Finally, the intersection of the regions crossed by all those orthogonal hyperplanes yields a minimum set of sign-patterns S^1={-,0,+,0,0,0,+,0,-} that s 1 may belong to. If we know that J11<0, then we can uniquely determine s1=(-,0,+)

For the three taxa community (Fig. 1c), there are seven possible types of equilibria (steady-state samples), i.e., {x1,x{2},x3,x1,2,x1,3,x2,3,x{1,2,3}}. Four of them share taxon 1 (see colored pie charts in Fig. 1d). Six line segments connect the 42=6 sample pairs, and represent vectors of the form xI-xK,I,KI1={{1},{1,2},{1,3},{1,2,3}}. Considering the line segment (x1,3-x1), i.e., the solid blue line in Fig. 1d, we compute a plane (shown in orange in Fig. 1d) that is orthogonal to it and passes through the origin. The regions (including the origin and eight orthants) crossed by this orange plane provide a set of possible sign-patterns that s 1 may belong to (Fig. 1d). We repeat the same procedure for all other vectors (xI-xK),I,KI1, and compute the intersection of all the possible sign-patterns, finally yielding the minimum set S^1={-,0,+,0,0,0,+,0,-} to which s 1 may belong to. If the sign of one non-zero interaction is known (J11<0 for this example), our method correctly infers the true sign-pattern s1=-,0,+. Repeating this process for samples sharing taxon 2 (or 3) will enable us to infer the sign-pattern s 2 (or s 3), respectively.

It is straightforward to generalize the above method to a microbial community of N taxa (see Methods and the subsection ‘Brute-force algorithm’ of Supplementary Note 2 for details). But this brute-force method requires us to calculate all the sign-pattern candidates first, and then calculate their intersection to determine the minimum set S^i that s i will belong to. Since the solution space of sign-patterns is of size 3N, the time complexity of this brute-force method is exponential with N, making it impractical for a microbial community with N>10 taxa (Methods). To resolve this issue, we developed a heuristic algorithm that pre-calculates many intersection lines of N-1 non-parallel hyperplanes that pass through the origin and are orthogonal to xI-xK,I,KIi. Based on these pre-calculated intersection lines, the algorithm determines S^i using the most probable intersection line. The solution space of this heuristic algorithm is determined by the user-defined number of pre-calculated interaction lines (denoted as Ψ). Hence this algorithm naturally avoids searching the exponentially large solution space (see Methods and the subsection ‘Inference using the heuristic algorithm’ of Supplementary Note 2 for details). Later on, we will show that this heuristic algorithm can indeed infer the interaction types with high accuracy.

In reality, due to measurement noise and/or transient behavior of the microbial community, the abundance profiles of the collected samples may not exactly represent steady states of the microbial community. Hence, for certain J ij’s, their inferred signs might be wrong. Using simulated data, we will show later that for considerable noise level the inference accuracy is still reasonably high.

Inferring interaction strengths

To quantitatively infer the inter-taxa interaction strengths, it is necessary to choose a priori a parameterized dynamic model for the microbial community. The classical GLV model can be obtained from Eq. (1) by choosing

fix=j=1Naijxj+ri,i=1,,N, 2

where r=r1,,rNTRN is the intrinsic growth rate vector and A=aijRN×N is the interaction matrix characterizing the intra- and inter-taxa interactions.

From Eq. (2) we can easily calculate the Jacobian matrix J, which is nothing but the interaction matrix A itself. This also reflects the fact that the value of a ij quantifies the interaction strength of taxon j on taxon i. The GLV model considerably simplifies the inference of the ecological network, because we can prove that aixI-xK=0, for all I,KIi, where aiai1,,aiN represents the i-th row of the A matrix (see the subsection ‘Inference of interaction strengths and intrinsic growth rates’ of Supplementary Note 5). In other words, all steady-state samples containing the i-th taxon will align exactly onto a hyperplane, whose orthogonal vector is parallel to the vector a i that we aim to infer (Fig. 2a, Theorem 3 of the subsection ‘A condition for detecting GLV dynamics’ of Supplementary Note 5). Thus, for the GLV model, the inference from steady-state data reduces to finding an (N-1)-dimensional hyperplane that ‘best fits’ the steady-state sample points {xIIIi} in the N-dimensional state space. In order to exactly infer a i, it is necessary to know the value of at least one non-zero element in a i, say, a ii. Otherwise, we can just determine the relative interaction strengths by expressing a ij in terms of a ii. Once we obtain a i, the intrinsic growth rate r i of the i-th taxon can be calculated by averaging (-aixI) overall IIi, i.e., all the steady-state samples containing taxon i.

Fig. 2.

Fig. 2

Consistency check of the GLV model and the observed steady-state samples. For a microbial community following exactly the GLV dynamics, all its steady-state samples sharing one common taxon will align onto a hyperplane in the state space. a Here we consider a microbial community of three taxa. There are four steady-state samples {x{1},x{1,2},x{1,3},x{1,2,3}} that share common taxon 1. Those four steady-state samples represent four points in the state space, and they align onto a plane (light red). The normal vector of this plane is parallel to the first row a 1 of the interaction matrix A in the GLV model. Given any one of non-zero entries in a 1, we can determine the exact values of all other entries. Otherwise, we can always express the inter-taxa interaction strengths a ij (ji) as a function of the intra-taxa interaction strength a ii. b Here we again consider a microbial community of three taxa. Taxon-1 and taxon-2 follow the GLV dynamics, but taxon-3 does not. Then those steady-state samples that share taxon-3 do not align onto a plane anymore. Here we show the best fitted plane (in green) by minimizing the distance between this plane and the four steady states, with the coefficient of determination R2=0.77

In case the samples are not collected exactly at steady states of the microbial community or there is noise in abundance measurements, those samples containing taxon i will not exactly align onto a hyperplane. A naive solution is to find a hyperplane that minimizes its distance to those noisy samples. But this solution is prone to induce false-positive errors and will yield non-sparse solutions (corresponding to very dense ecological networks). This issue can be partly alleviated by introducing a Lasso regularization40, implicitly assuming that the interaction matrix A in the GLV model is sparse. However, the classical Lasso regularization may induce a high false-discovery rate (FDR), meaning that many zero interactions are inferred as non-zeros ones. To overcome this drawback, we applied the Knockoff filter41 procedure, allowing us to control the FDR below a desired user-defined level q>0 (see the subsection ‘Applying the Knockoff filter to control the false-discovery rate’ of Supplementary Note 5 for details).

The observation that for the GLV model all noiseless steady-state samples containing the i-th taxon align exactly onto a hyperplane can also be used to characterize how much the dynamics of the i-th taxon in a real microbial community deviates from the GLV model. This deviation can be quantified by the coefficient of determination (denoted by R 2) of the multiple linear regression when fitting the hyperplane using the steady-state samples (Fig. 2b). If R 2 is close to 1 (the samples indeed align to a hyperplane), we conclude that the dynamics of the microbial community is consistent with the GLV model, and hence the inferred interaction strengths and intrinsic growth rates are reasonable. Otherwise, we should only aim to qualitatively infer the ecological interaction types that do not require specifying any population dynamics.

Validation on simulated data

To validate the efficacy of our method in inferring ecological interaction types, we numerically calculated the steady states of a small microbial community with N=8 taxa, using four different population dynamics models3539: GLV, Holling Type II (Holling II), DeAngelis–Beddington (DB), and Crowley–Martin (CM) models (see Supplementary Note 4 for details). Note that all these models satisfy the requirement that the sign-pattern of the Jacobian matrix is time-invariant. To infer the ecological interaction types among the eight taxa, we employed both the brute-force algorithm (with solution space ~38=6,561) and the heuristic algorithm (with solution space given by the number of the pre-calculated intersections chosen as Ψ=5N=40).

In the noiseless case, we find that when the number of steady-state samples satisfies Ω>3N, the heuristic algorithm outperformed the brute-force algorithm for data sets generated from all the four different population dynamics models (Fig. 3a). This result is partly due to the fact that the former requires many fewer samples than the latter to reach high accuracy (the percentage of correctly inferred interaction types). However, when the sample size Ω is small (<3N), the heuristic algorithm completely fails while the brute-force algorithm still works to some extent.

Fig. 3.

Fig. 3

Validation of our method in inferring interaction types using simulated data. a,b Consider a small microbial community of N=8 taxa. We generate steady-state samples using four different population dynamics models: Generalized Lotka–Volterra (GLV), Holling Type II (Holling II), DeAngelis–Beddington (DB), and Crowley–Martin (CM). We compare the performance of the brute-force algorithm (with solution space ~38=6,561) and the heuristic algorithm (with solution space ~Ψ=5N=40). a In the noiseless case, we plot the inference accuracy (defined as the percentage of correctly inferred signs in the Jacobian matrix) as a function of sample size Ω. b In the presence of noise, we plot the inference accuracy as a function of the noise level η. Here the sample size is fixed: Ω=5N=40. The error bar represents standard deviation for 10 different realizations. c, d We calculate the minimal sample size Ω* required for the heuristic algorithm to achieve high accuracy (100% for GLV, 95% for Holling II, DB, and CM) at different system sizes. We consider two different taxa presence patterns: uniform and heterogenous (see insets). Here the simulated data is generated in the noiseless case and we chose Ψ=10N. ad The underlying ecological network is generated from a directed random graph model with connectivity 0.4 (i.e., with probability 0.4 there will be a directed edge between any two taxa)

We then fix Ω=5N, and compare the performance of the brute-force and heuristic algorithms in the presence of measurement noise (Fig. 3b). We add artificial noise to each non-zero entry xiI of a steady-state sample x I by replacing xiI with xiI+ηu, where u~U[-xiI,xiI] is a random number uniformly distributed in the interval [-xiI,xiI] and η0 quantifies the noise level. We again find that the heuristic algorithm works better than the brute-force algorithm for data sets generated from all the four different population dynamics models.

The above encouraging results on the heuristic algorithm prompt us to systematically study the key factor to obtain an accurate inference, i.e., the minimal sample size Ω* (Fig. 3c, d). Note that for a microbial community of N taxa, if we assume that for any subset of the N taxa there is only one stable steady state such that all the corresponding taxa have non-zero abundance, then there are at most Ωmax=(2N-1) possible steady-state samples. (Of course, not all of them will be ecologically feasible. For example, certain pairs of taxa will never coexist.) In general, it is unnecessary to collect all possible steady-state samples to obtain a highly accurate inference result. Instead, we can rely on a subset of them. To demonstrate this, we numerically calculated the minimal sample size Ω* we need to achieve a highly accurate inference of interaction types. We considered two different taxa presence patterns: (1) uniform: all taxa have equal probability of being present in the steady-state samples (inset of Figs. 3c); and (2) heterogenous: a few taxa have higher presence probability than others, reminiscent of human gut microbiome samples26 (inset of Fig. 3d). We found that for the steady-state data generated from all the four population dynamics models, Ω* always scales linearly with N in both taxa presence patterns, and the uniform taxa presence pattern requires much fewer samples (Fig. 3c, d).

Note that as N grows, the total possible steady-state samples Ωmax increases exponentially, while the minimal sample size Ω* we need for high inference accuracy increase linearly. Hence, interestingly, we have Ω*Ωmax0 as N increases. This suggests that as the number of taxa increases, the proportion of samples needed for accurate inference actually decreases. This is a rather counter-intuitive result because, instead of a ‘curse of dimensionality’, it suggests that a ‘blessing of dimensionality’ exists when using the heuristic algorithm to infer interaction types for microbial communities with a large number of taxa.

To validate our method in quantitatively inferring inter-taxa interaction strengths, we numerically calculated steady states for a microbial community of N=50 taxa, using the GLV model with aii=-1 for all taxa.

In the noiseless case, if during the inference we know exactly aii=-1 for all taxa, then we can perfectly infer the inter-taxa interaction strengths a ij’s and the intrinsic growth rates r i’s (see Fig. 4a). To study the minimal sample size Ω* required for perfect inference in the noiseless case, we again consider two different taxa presence patterns: (1) uniform and (2) heterogeneous. We find that for both taxa presence patterns Ω* scales linearly with N, though the uniform taxa presence pattern requires much fewer samples (Fig. 4b).

Fig. 4.

Fig. 4

Validation of our method in inferring interaction strengths using simulated data. Here, we simulate steady-state samples using the GLV model with N taxa and intra-taxa interaction strength aii=-1 for each taxon. The underlying ecological network is generated from a directed random graph model with connectivity 0.4. The noise is added to steady-state samples as follows: xiIxiI+ηu, where the random number u follows a uniform distribution U[-xiI,xiI], and η is the noise level. a, b Consider the ideal case: (1) noiseless η=0; and (2) we know exactly aii=-1. a We can perfectly infer a ij’s and r i’s. b The minimal sample size Ω* required to correctly infer the interaction strengths scales linearly with the system size N. Here we consider two different taxa presence pattern: uniform and heterogenous. cf In the presence of noise, and during the we just assume that the intra-taxa interaction strengths âii follows a half-normal distribution. c Using the Lasso regularization induces high false-discovery rate (FDR) ~ 0.448 at η=0.1. d Using classical Lasso with cross validation, both NRMSE and FDR increase with increasing η. e For the same data set used in c, we use the knockoff filter to control the FDR below a certain level q=0.2. f With increasing noise level η, FDR can still be successfully controlled below q=0.2 by applying the knockoff filter. In subfigures a, cf, we have N=50. The error bar represents standard deviation for 10 different realizations

In the presence of noise, and if we don’t know the exact values of a ii’s, but just assume they follow a half-normal distribution -N(-1,0.12), we can still infer a ij’s and r i’s with reasonable accuracy (with the normalized root-mean-square error (NRMSE) < 0.08), for noise level η<0.3 (Fig. 4c–f). However, we point out that the classical Lasso regularization could induce many false positives, and the FDR reaches 0.448 at noise level η=0.1, indicating that almost half of inferred non-zero interactions are actually zero (Fig. 4c). Indeed, even with a noise level η=0.04, the classical Lasso already yields FDR~0.45, staying there for higher η (Fig. 4d).

In many cases, we are more concerned about low FDR than high false-negative rates, because the topology of an inferred ecological network with even many missing links can still be very useful in the study of its dynamical and control properties42. To control FDR below a certain desired level q=0.2, we applied the Knockoff filter41 (Fig. 4e), finding that though it will introduce more false negatives (see the horizontal bar in Fig. 4e), it can control the FDR below 0.2 for a wide range of noise level (Fig. 4f).

We also found that applying this GLV inference method to samples obtained from a microbial community with non-GLV dynamics leads to significant inference errors even in the absence of noise (Supplementary Fig. 9).

Application to experimental data

First, we applied our inference method to an experimental data set from a synthetic soil microbial community of eight bacterial species43. This data set consists of steady states of a total of 101 different species combinations: all eight solos, 28 duos, 56 trios, all eight septets, and one octet (see the subsection ‘A synthetic microbial community of 8 soil bacteria’ of Supplementary Note 6 for details). For those steady-state samples that started from the same species collection, but with different initial conditions, we average over their final steady states to get a representative steady state for this particular species combination.

In the experiment, it was found that several species grew to a higher density in the presence of an additional species than in monoculture. The impact of each additional species (competitor) j on each focal species i can be quantified by the so-called relative yield, defined as: Rij=xi{i,j}-xi{i}xi{i,j}+xi{i}, which represents a proxy of the ground truth of the interaction strength that species j impacts species i. A negative relative yield indicates growth hindrance of species j on i, whereas positive values indicated facilitation (Fig. 5a). Though quantifying the relative yield is conceptually easy and implementable for certain small microbial communities (see Supplementary Note 7 for details), for many host-associated microbial communities with many taxa, such as the human gut microbiota, measuring these one-species and two-species samples is simply impossible. This actually motivates the inference method we developed here.

Fig. 5.

Fig. 5

Inferring interaction types of a synthetic soil microbial community. The steady-state samples were experimentally collected from a synthetic soil microbial community of eight bacterial species. Those steady-state samples involve 101 different species combinations: all eight solos, 28 duos, 56 trios, all eight septets, and 1 octet. a From the eight solos (monoculture experiments) and 28 duos (pair-wise co-culture experiments), one can calculate the relative yield R ij, quantifying the promotion (positive) or inhibition (negative) impact of species j on species i. The values shown in the relative yield matrix R=(Rij) quantify the strengths of promotion and inhibition effects. The sign-pattern of this matrix serves as the ground truth of that of the Jacobian matrix associated with the unknown population dynamics of this microbial community. b Without considering the 8 solos and 28 duos, we analyze the other steady-state samples. We use the brute-force method to infer the ecological interaction types, i.e., the sign-pattern of the Jacobian matrix. Blue (or red) means inhibition (or promotion) effect of species j on species i, respectively. 10 signs (labeled by ‘×’) are falsely inferred, four signs (gray) are undetermined by the analyzed steady-state samples. c, d The robustness of the inference results in the presence of artificially added noise: xiIxiI+ηu, where the random number u follows a uniform distribution U[-xiI,xiI], and η is the noise level. At each noise level, we run 50 different realizations. Yellow (or blue) means many (or few) inferred J ij keep the same sign among 50 different realizations. c. Many of the inferred J ij keep their signs in the presence of noise up to noise level η=0.3. d At η=0.04, we plot the percentage of unchanged signs for inferred Jacobian matrix in 50 different realizations. The ‘×’ labels correspond to the 10 falsely inferred signs shown in b. Five of the 10 falsely inferred interactions change their signs frequently even when the perturbation is very small, implying that the falsely inferred signs in b could be due to measurement noise in the experiments

Before we apply our inference method, to be fair, we remove all those steady states involving one or two species, and analyze only the remaining 65 steady states. (Note that for N=8, the number of total possible steady states is Ωmax=255. Hence we only use roughly one quarter of the total possible steady states.) During the inference, we first check if the population dynamics of this microbial community can be well described by the GLV model. We find that all the fitted hyperplanes show small R 2, indicating that the GLV model is not appropriate to describe the dynamics of this microbial community (Supplementary Fig. 10b). Hence, we have to aim for inferring the ecological interaction types, without assuming any specific population dynamics model.

Since this microbial community has only eight species, we can use the brute-force algorithm to infer the sign-pattern of the 8×8 Jacobian matrix, i.e., the ecological interaction types between the eight species (The results of using a heuristic algorithm are similar and described in the Supplementary Fig. 10c). Compared with the ground truth obtained from the relative yield matrix (Fig. 5a), we find that 50 (78.13%) of the 64 signs were correctly inferred, 10 (15.62%) signs were falsely inferred (denoted as ‘×’), and four (6.25%) signs cannot be determined (denoted as ‘?’) with the information provided by the 65 steady states (Fig. 5b).

We notice that the relative yield of many falsely inferred interactions is weak (with the exception of REa,Pch, and REa,Pf). We conjecture that these errors are caused by noise or measurement errors in the experiments. To test this conjecture, we analyzed the robustness of each inferred s ij by calculating the percentage of unchanged s ij after adding perturbations (noise) to the samples (Fig. 5c). Similar to adding noise to simulated steady-state data, here we add noise to each non-zero entry xiI of a sample x I such that xiIxiI+ηu, where u~U[-xiI,xiI]. The more robust the inferred results are, the higher the percentage of unchanged signs as η is increased. We found that most of the inferred signs were robust: the percentage of unchanged signs remained nearly 80% up to noise level η=0.3 (Fig. 5c). Specifically, Fig. 5d plots the percentage of unchanged signs of the inferred Jacobian matrix when η=0.04. We found that even if the perturbation is very small, 5 of the 10 falsely inferred s ij in Fig. 5b changed their signs very frequently (blue entries with label ‘×’ in Fig. 5d). In other words, those interactions were very sensitive to noise, suggesting that some falsely inferred signs in Fig. 5b were largely caused by measurement noise.

Second, we applied our method to an experimental data set from a synthetic bacterial community of maize roots44. There are seven bacterial species (Ecl, Sma, Cpu, Opi, Ppu, Hfr, and Cin) in this community. This data set consists of in total eight steady-state samples: seven sextets and one septet. We found that this community cannot be described by the GLV dynamics (Supplementary Fig. 11).

Using only the seven sextets (i.e., seven steady-state samples involving six of the seven species), we inferred the sign-pattern of the Jacobian matrix (Fig. 6a). Based on the sign of J ij, we can predict how the abundance of species-i in a microbial community will change, when we add species-j to the community. For example, if we add Ecl to a community consisting of the other six species (i.e., Sma, Cpu, Opi, Ppu, Hfr, and Cin), we predict that the abundance of Sma, Opi, Ppu, Hfr, and Cin will increase, while the abundance of Cpu will decrease (first column of Fig. 6b). Note that our prediction only considers the direct ecological interactions between species and ignores the indirect impact among species. Indeed, Ecl promotes Opi, but Ecl also promotes Hfr that inhibits Opi. Hence the net effect of Ecl on Opi is hard to tell without knowing the interaction strengths. Nevertheless, we found that our prediction is consistent with experimental observation (Fig. 6b, first column).

Fig. 6.

Fig. 6

Inferring interaction types in a synthetic community of maize roots with seven bacterial species. The data set consists of seven sextets and one septet. a Without considering the one septet, we analyze the seven sextets (steady-state samples involving six of the seven species). We use the brute-force method to infer the ecological interaction types, i.e., the sign-pattern of the Jacobian matrix. Blue (or red) means inhibition (or promotion) effect of species j on species i, respectively. One sign (gray) is undetermined from the seven sextets. b The changes of species abundance before and after, respectively, adding one species into a sextet. Blue (or red) corresponds to the decrease (or increase) of one species’ abundance after introducing a new species into sextets, respectively. Each column corresponds to a sextet (a six-baterial community), the name of the newly introduced species is marked in the top of each column. ‘×’ indicates the false prediction. There are in total 12 false predictions

We then systematically compared our predictions of species abundance changes with experimental observations. There are in total seven sextets, corresponding to the seven columns in Fig. 6b. We add the corresponding missing species back to the community, and check the abundance changes of the existing six species. There are in total 6×7=42 abundance changes. We found that our inferred sign-pattern of the Jacobian matrix (Fig. 6a) can correctly predict 30 of the 42 abundance changes (accuracy ~71.43%). Moreover, for those false predictions, the detailed values of the abundance changes are actually relatively small (comparing to those of correct predictions). Note that we only used seven steady-samples to infer the interaction types. If we have more steady-state samples available, we assume the prediction accuracy of our method can be further improved.

We also demonstrated the application of our inference method to two additional experimental data sets. One was obtained from a synthetic microbial community of two cross-feeding partners34, the other was obtained from a synthetic community of 14 auxotrophic Escherichia coli strains45. For both data sets, our inference results agree well with the ground truth (see Supplementary Note 6 for details).

Discussion

In this work, we developed a new inference method to map the ecological networks of microbial communities using steady-state data. Our method can qualitatively infer ecological interaction types (signs) without specifying any population dynamics model. Furthermore, we show that steady-state data can be used to test if the dynamics of a microbial community can be well described by the classic GLV model. When GLV is found to be adequate, our method can quantitatively infer inter-taxa interaction strengths and the intrinsic growth rates.

The proposed method bears some resemblance to previous network reconstruction methods based on steady-state data46. But we emphasize that, unlike the previous methods, our method does not require any perturbations applied to the system nor sufficiently close steady states. For certain microbial communities such as the human gut microbiota, applying perturbations may raise severe ethical and logistical concerns.

Note that our method requires the measurement of steady-state samples and absolute taxon abundances. For systems that are in frequent flux, where steady-state samples are hard to collect, our method is not applicable. Moreover, it fails on analyzing the relative abundance data (see Methods). Note that the compositionality of relative abundance profiles also represents a major challenge for inference methods based on temporal data15,19. Fortunately, for certain small laboratory-based microbial communities, we can measure the absolute taxon abundances in a variety of ways, e.g., selective plating47, quantitative polymerase chain reaction (qPCR)15,16,48,49, flow cytometry50, and fluorescence in situ hybridization (FISH)51. For example, in the study of a synthetic soil microbial community of eight bacterial species43, the total cell density was assessed by measuring the optical density and species fractions (relative abundance) were determined by plating on nutrient agar plates. In recent experiments evaluating the dynamics of Clostridium difficile infection in mice models15,16, two sources of information were combined to measure absolute abundances: (1) data measuring relative abundances of microbes, typically consisting of counts (e.g., high-throughput 16S rRNA sequencing data); and (2) data measuring overall microbial biomass in the sample (e.g., universal 16S rRNA qPCR).

In contrast to the difficulties encountered in attempts to enhance the informativeness of temporal data that are often used to infer ecological networks of microbial communities, the informativeness of independent steady-state data can be enhanced by simply collecting more steady-state samples with distinct taxa collection. For host-associated microbial communities, this can be achieved by collecting steady-state samples from different hosts. Our numerical analysis suggests that the minimal number of samples with distinct taxa collections required for robust inference scales linearly with the taxon richness of the microbial community. Our analysis of experimental data from a small synthetic microbial community of eight species shows that collecting roughly one quarter of the total possible samples is enough to obtain a reasonably accurate inference. Furthermore, our numerical results suggest that this proportion can be significantly lower for larger microbial communities.

This blessing of dimensionality suggests that our method holds great promise for inferring the ecological networks of large and complex microbial communities, such as the human gut microbiota. There are two more encouraging facts that support this idea. First of all, it has been shown that the composition of the human gut microbiome remains stable for months and possibly even years until a major perturbation occurs through either antibiotic administration or drastic dietary changes5255. The striking stability and resilience of human gut microbiota suggest that the collected samples very likely represent the steady states of the gut microbial ecosystem. Second, for healthy adults the gut microbiota displays remarkable universal ecological dynamics56 across different individuals. This universality of ecological dynamics suggests that microbial abundance profiles of steady-state samples collected from different healthy individuals can be roughly considered as steady states of a conserved ‘universal gut dynamical’ ecosystem and hence can be used to infer its underlying ecological network. Despite the encouraging facts, we emphasize that there are still many challenges in applying our method to infer the ecological network of the human gut microbiota. For example, the assumption of invariant ecological interaction types (i.e., promotion, inhibition, or neutral) between any two taxa needs to be carefully verified. Moreover, our method requires the measurement of absolute abundances of taxa.

We expect that additional insights into microbial ecosystems will emerge from a comprehensive understanding of their ecological networks. Indeed, inferring ecological networks using the method developed here will enable enhanced investigation of the stability57 and assembly rules58 of microbial communities as well as facilitate the design of personalized microbe-based cocktails to treat diseases related to microbial dysbiosis9,10.

Methods

Theoretical basis for inferring ecological interactions

Consider a microbial community of N taxa, whose population dynamics follow Eq.(1). A steady-state data set X is a collection of N-dimensional vectors xRN corresponding to the measured equilibria of Eq. (1). We will denote a steady-state sample as xIRN, where the superscript II determines which taxa are present, and I=2{1,,N} is the set of all possible subsets of {1,,N}. Consider the subset XiX of all samples containing taxon i so that fix=0 for all xXi. Applying the mean value theorem for multivariable functions, we obtain

fixI-fixK=01fixI+σxK-xIxdσxI-xK=0, 3

where ‘·’ denotes the inner product between vectors in RN. Let Jix=fixxRN be the i-th row of the Jacobian matrix Jx=Jijx=fixxj and let us introduce the notation

LxI,xKJi:=01Ji(xI+σ(xK-xI))dσ, 4

where LxI,xK denotes the line segment connecting  the points x I and x K in RN. With this notation, Eq. (3) can be rewritten more compactly as

LxI,xKJixI-xK=0,xI,xKXi. 5

The above equation implies that the difference of any two samples xI,xK sharing taxon i constrains the integral of J i over the line segment joining them xI-xK.

We consider that the ecological interactions in a microbial community are encoded in the Jacobian matrix JRN×N of its population dynamics. More precisely, we assume that the j-th taxon directly impacts the i-th one iff the function Jijx0. Notice that this condition is well defined because Jij(x) is a meromorphic function. Furthermore, an ecological interaction is inhibitory iff Jijx<0 and excitatory iff Jijx>0.

Inferring the absence or presence of interactions is equivalent to inferring the zero-pattern of the Jacobian matrix, recovering the topology of the ecological network underlying the microbial community. Furthermore, inferring the type of interactions (inhibitory, excitatory, or null) is equivalent to inferring the sign-pattern of the Jacobian matrix.

Inference using the brute-force algorithm

In Theorem 2 of the subsection ‘Inferring the sign-pattern’ of Supplementary Note 1, in order to check if there is a vector with sign-pattern s-,0,+N orthogonal to a given vector (xI-xK), we can check if the following linear program has a solution:

FindvRNsubjecttovTxI-xK=0andsignv=s. 6

Note that the condition signv=s can be encoded as a set of equalities/inequalities of the form {vi=0,vi<0,vi>0} corresponding to the cases {si=0,si=-1,si=1}. Therefore, we can construct an algorithm to obtain all admissible sign-patterns for given steady-state data. Indeed, by enumerating all possible sign-patterns, we can use the liner program in Eq. (6) to check if each of the possible 3N sign-patterns is admissible for taxon i. See Algorithm 1 in the subsection ‘Brute-force algorithm’ of Supplementary Note 2 for the pseudo code.

This brute-force algorithm relies on the enumeration of all 3N possible sign-patterns in RN, since it needs to test if each one of them is admissible for the given data. If the set Xi has ni elements, there will be ni(ni-1)2 vectors of the form xI-xK with (xI,xK)Xi×Xi. Then for each of those vectors and each of the possible 3N sign-patterns, we will need to run the linear program Eq. (6) to check if there is an orthogonal vector with the desired sign-pattern. If we assume that the linear program can be solved with N operations, then for each taxon the Brute-force algorithm requires to perform a number of operations in the order of N3Nni(ni-1)2. Hence, for 100 taxa, we will need to perform at least 5.19×1049 operations for the reconstruction of each taxon—which is a number with the same order of magnitude as the number of atoms in Earth. Furthermore, the linear programming used in the brute-force method can also be time consuming even for a small microbial community with N~10. Consequently, applying the enumeration procedure is only reasonable for a community with N~10, since in this case only around 106 operations are needed to infer the sign-pattern of the Jacobian corresponding to each taxon.

Inference using the heuristic algorithm

The computational complexity of the brute-force algorithm motivated us to develop a more efficient reconstruction method. This method has two main ingredients. First, a graph-based approach to quickly check whether a region can be crossed by a hyperplane, circumventing the need to solve the linear program. Second, a heuristic algorithm efficiently explores the solution space and infers the ecological interaction types.

First, we formalize a sign-satisfaction problem. Consider a real-valued vector yRN. Thus, solving the linear program Eq. (6) is equivalent to solving the following sign-satisfaction problem:

Findsigny-,0,+NsubjecttoyTxI-xK=0. 7

Notice that from a geometrical viewpoint, solving Eq. (7) is equivalent to finding the orthants of RN crossed by the hyperplane orthogonal to (xI-xK).

Second, we propose a graph-based approach to solving the sign-satisfaction problem. For the definition, construction, and examples of sign-satisfaction graph, see the subsection ‘Inference using the heuristic algorithm’ of Supplementary Note 2. By using the sign-satisfaction graph, it is very efficient to test if the hyperplane orthogonal to (xI-xK) crosses some orthants of RN, because it reduces to checking if its corresponding vector in -,0,+N meets the requirements of sign-satisfaction. However, finding all orthants crossed by such orthogonal hyperplane remains challenging, since the sign-satisfaction graph did not decrease the dimension of the solution space (that remains with exponential size 3N). To address this issue, next we introduce a method to efficiently sample paths in the sign-satisfaction graph.

Third, we use the intersection line of hyperplanes to sample paths in the sign-satisfaction graph. This method depends on a user-defined parameter Ψ1 that specifies the number of intersection lines we need to compute. There are five steps: (step-1): Construct the matrix of the difference of all the sample pairs. Consider the set of all vectors {xI-xKxI,xKXi}. Let MiRN×Xi2 be a matrix constructed by stacking all the Xi2vectors, where Xi is the number of samples containing taxon i. By construction, each column of M i is the normal vector of a hyperplane orthogonal to the difference of the corresponding sample pair. (step-2): Randomly sample (N-1) hyperplanes. Choose randomly N-1 columns from M i. (step-3): Find the intersection of the (N-1) sampled hyperplanes to obtain an intersection line. This can be done by finding the kernel of the matrix obtained by stacking the chosen columns. Note that the randomly sampled (N-1) hyperplanes do not always intersect into a line, because some hyperplanes might be parallel with each other. However, this situation is not generic in RN. Thus, if the randomly sampled hyperplanes do no intersect into a line, we return to step-2 and choose a new subset of columns. (step-4): Count how many hyperplanes cross the region of the intersection line using the sign-satisfaction graph. The sign-pattern of this intersection line represent the three orthants in RN crossed by all those (N-1) hyperplanes. For the remaining hyperplanes in M i (i.e., the rest of the columns in M i), let ϕ~ be the number of those hyperplanes that cross these three orthants. We normalize ϕ~ using ϕ=ϕ~Xi2, so that ϕ[0,1]. Notice that ϕ=1 means that this sign-pattern of the intersection line meets the requirements of sign-satisfaction for all the sample pairs. Therefore, the magnitude of the computed ϕ can be seen as the confidence of this potential solution to be the true solution of the sign-satisfaction problem. (step-5): Go back to step-2 until Ψ1 intersection lines have been computed.

In summary, selecting the intersection line can be seen as a ‘preference’ sampling in the sign-satisfaction graph, because this intersection line can be crossed by at least (N-1) hyperplanes in M i. Combining the sign-satisfaction graph with the sampling procedure described above, we propose a heuristic algorithm to infer the sign-pattern of J i. See Supplementary Fig. 6 for the detailed flowchart of this method.

Limitations of the inference using relative abundance data

High-throughput amplicon sequencing of 16S RNA has become a well-established approach for profiling microbial communities. The result of this procedure is a relative abundance profile, where the relative abundance of each taxon in the microbial community has been normalized so that their sum is one. This implies that an increase of the relative abundance of one taxon must be accompanied by a decrease in the relative abundance of other taxa.

This compositionality of relative abundance data severely limits the application of system identification methods based on temporal data, as discussed with details in refs. 15,19,59. It also limits our method based on steady-state data. Consider, for example, that there exist three relative abundance profiles containing taxon i, say x¯I,x¯J,x¯K. Since they are relative abundances, the sum of each of these samples must equal 1, implying that sum(x¯I-x¯J)=sum(x¯I-x¯K)=sum(x¯J-x¯K)=0. Consequently, the vector 1=1,,1RN satisfies 1x¯I-x¯J= 1x¯I-x¯K= 1(x¯J-x¯K)=0. In other words, this vector 1 is always orthogonal to all sample differences and the intersection line of the (N-1) hyperplanes generated by relative abundance is always 1. Therefore, the heuristic algorithm fails in correctly inferring the sign-pattern of Jacobian matrix using relative abundances, because it always predicts that one possible sign-pattern is sign(s)=(+,,+).

Data availability

All the experimental data,sets analyzed in this study are either publicly available or kindly provided by the original authors. Other data that support the findings of this study are available from the corresponding author on reasonable request.

Electronic supplementary material

Peer Review File (2.7MB, pdf)

Acknowledgements

This work is supported in part by the John Templeton Foundation (Award number 51977). We thank Drs. Gabe Billings and Brigid Davis for insightful comments on the manuscript. We thank Drs. Joseph Nathaniel Paulson, Michael T. Mee, Harris H. Wang, Francesco Carrara, and Carsten F. Dormann for kindly providing their experimental data sets. We thank Dr. Liang Tian for discussions.

Author contributions

Y.-Y.L conceived the project. Y.-Y.L and M.T.A. designed the project. Y.X. and M.T.A. did the analytical calculations. Y.X. did the numerical simulations and analyzed the empirical data. All authors analyzed the results. Y.-Y.L., Y.X., and M.T.A. wrote the manuscript. J.F, M.K.W., and S.T.W. edited the manuscript.

Competing interests

The authors declare that they have no competing financial interests.

Footnotes

Electronic supplementary material

Supplementary Information accompanies this paper at 10.1038/s41467-017-02090-2.

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

References

  • 1.Clemente J, Ursell L, Parfrey L, Knight R. The impact of the gut microbiota on human health: an integrative view. Cell. 2012;148:1258–1270. doi: 10.1016/j.cell.2012.01.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Flint H, Scott K, Louis P, Duncan S. The role of the gut microbiota in nutrition and health. Nat. Rev. Gastroenterol. Hepatol. 2012;9:577–589. doi: 10.1038/nrgastro.2012.156. [DOI] [PubMed] [Google Scholar]
  • 3.Schimel, J. & Schaeffer, S. Microbial control over carbon cycling in soil. Front. Microbiol.3, 348 (2012). [DOI] [PMC free article] [PubMed]
  • 4.Nannipieri P, et al. Microbial diversity and soil functions. Eur. J. Soil Sci. 2003;54:655–670. doi: 10.1046/j.1351-0754.2003.0556.x. [DOI] [Google Scholar]
  • 5.Berendsen R, Pieterse C, Bakker P. The rhizosphere microbiome and plant health. Trends Plant. Sci. 2012;17:478–486. doi: 10.1016/j.tplants.2012.04.001. [DOI] [PubMed] [Google Scholar]
  • 6.Shendure J, Ji H. Next-generation DNA sequencing. Nat. Biotechnol. 2008;26:1135–1145. doi: 10.1038/nbt1486. [DOI] [PubMed] [Google Scholar]
  • 7.Faust K, Raes J. Microbial interactions: from networks to models. Nat. Rev. Microbiol. 2012;10:538–550. doi: 10.1038/nrmicro2832. [DOI] [PubMed] [Google Scholar]
  • 8.Widder S, et al. Challenges in microbial ecology: building predictive understanding of community function and dynamics. ISME J. 2016;10:2557–2568. doi: 10.1038/ismej.2016.45. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Buffie C, et al. Precision microbiome reconstitution restores bile acid mediated resistance to Clostridium difficile. Nature. 2014;517:205–208. doi: 10.1038/nature13828. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Hudson L, Anderson S, Corbett A, Lamb T. Gleaning insights from fecal microbiota transplantation and probiotic studies for the rational design of combination microbial therapies. Clin. Microbiol. Rev. 2016;30:191–231. doi: 10.1128/CMR.00049-16. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Claesson M, et al. Gut microbiota composition correlates with diet and health in the elderly. Nature. 2012;488:178–184. doi: 10.1038/nature11319. [DOI] [PubMed] [Google Scholar]
  • 12.Friedman J, Alm E. Inferring correlation networks from genomic survey data. PLoS Comput. Biol. 2012;8:e1002687. doi: 10.1371/journal.pcbi.1002687. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Claussen JC, et al. Boolean analysis reveals systematic interactions among low-abundance species in the human gut microbiome. PLoS Comput. Biol. 2017;13:e1005361. doi: 10.1371/journal.pcbi.1005361. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Steinway SN, Biggs MB, Jr, L. TP, Papin JA, Albert R. inference of network dynamics and metabolic interactions in the gut microbiome. PLoS Comput. Biol. 2015;11:e1004338. doi: 10.1371/journal.pcbi.1004338. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Bucci, V. et al. MDSINE: microbial dynamical systems INference engine for microbiome time-series analyses. Genome. Biol. 17, 121 (2016). [DOI] [PMC free article] [PubMed]
  • 16.Stein R, et al. Ecological modeling from time-series inference: insight into dynamics and stability of intestinal microbiota. PLoS Comput. Biol. 2013;9:e1003388. doi: 10.1371/journal.pcbi.1003388. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Fisher C, Mehta P. Identifying keystone species in the human gut microbiome from metagenomic timeseries using sparse linear regression. PLoS ONE. 2014;9:e102451. doi: 10.1371/journal.pone.0102451. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Gerber G, Onderdonk A, Bry L. Inferring dynamic signatures of microbes in complex host ecosystems. PLoS Comput. Biol. 2012;8:e1002624. doi: 10.1371/journal.pcbi.1002624. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Cao H, Gibson T, Bashan A, Liu Y. Inferring human microbial dynamics from temporal metagenomics data: Pitfalls and lessons. BioEssays. 2016;39:1600188. doi: 10.1002/bies.201600188. [DOI] [PubMed] [Google Scholar]
  • 20.Phelan VV, Liu WT, Pogliano K, Dorrestein PC. Microbial metabolic exchange—the chemotype-to-phenotype link. Nat. Chem. Biol. 2012;8:26–35. doi: 10.1038/nchembio.739. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Kelsic E, Zhao J, Vetsigian K, Kishony R. Counteraction of antibiotic production and degradation stabilizes microbial communities. Nature. 2015;521:516–519. doi: 10.1038/nature14485. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Levine JM, Bascompte J, Adler PB, Allesina S. Beyond pairwise mechanisms of species coexistence in complex communities. Nature. 2017;546:56–64. doi: 10.1038/nature22898. [DOI] [PubMed] [Google Scholar]
  • 23.Jost C, Ellner SP. Testing for predator dependence in predator-prey dynamics: a non-parametric approach. Proc. R. Soc. Lond. B Biol. Sci. 2000;267:1611–1620. doi: 10.1098/rspb.2000.1186. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Momeni B, Xie L, Shou W. Lotka-Volterra pairwise modeling fails to capture diverse pairwise microbial interactions. eLife Sci. 2017;6:e25051. doi: 10.7554/eLife.25051. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Angulo M, Moreno J, Lippner G, Barabási A, Liu Y. Fundamental limitations of network reconstruction from temporal data. J. R. Soc. Interface. 2017;14:20160966. doi: 10.1098/rsif.2016.0966. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26.Huttenhower C, et al. Structure, function and diversity of the healthy human microbiome. Nature. 2012;486:207–214. doi: 10.1038/nature11234. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27.Lozupone C, Stombaugh J, Gordon J, Jansson J, Knight R. Diversity, stability and resilience of the human gut microbiota. Nature. 2012;489:220–230. doi: 10.1038/nature11550. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Case TJ, Bender EA. Testing for higher order interactions. Am. Nat. 1981;118:920–929. doi: 10.1086/283885. [DOI] [Google Scholar]
  • 29.Worthen WB, Moore JL. Higher-order interactions and indirect effects: a resolution using laboratory drosophila communities. Am. Nat. 1991;138:1092–1104. doi: 10.1086/285271. [DOI] [Google Scholar]
  • 30.Billick I, Case TJ. Higher order interactions in ecological communities: what are they and how can they be detected? Ecology. 1994;75:1529–1543. doi: 10.2307/1939614. [DOI] [Google Scholar]
  • 31.Bairey E, Kelsic ED, Kishony R. High-order species interactions shape ecosystem diversity. Nat. Commun. 2016;7:12285. doi: 10.1038/ncomms12285. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Grilli, J., Barabás, G., Michalska-Smith, M. J. & Allesina, S. Higher-order interactions stabilize dynamics in competitive network models. Nature10.1038/nature23273 (2017). [DOI] [PubMed]
  • 33.Angulo, M. T., Moog, C. H. & Liu, Y.-Y. Controlling microbial communities: a theoretical framework. bioRxiv 149765 (2017). 10.1101/149765. [DOI] [PMC free article] [PubMed]
  • 34.Hoek T, et al. Resource availability modulates the cooperative and competitive nature of a microbial cross-feeding mutualism. PLoS Biol. 2016;14:e1002540. doi: 10.1371/journal.pbio.1002540. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Skalski G, Gilliam J. Functional responses with predator interference: viable alternatives to the holling type II model. Ecology. 2001;82:3083. doi: 10.1890/0012-9658(2001)082[3083:FRWPIV]2.0.CO;2. [DOI] [Google Scholar]
  • 36.Holling C. The functional response of predators to prey density and its role in mimicry and population regulation. Mem. Èntomol. Soc. Can. 1965;97:5–60. doi: 10.4039/entm9745fv. [DOI] [Google Scholar]
  • 37.Beddington J. Mutual interference between parasites or predators and its effect on searching efficiency. J. Anim. Ecol. 1975;44:331. doi: 10.2307/3866. [DOI] [Google Scholar]
  • 38.Crowley P, Martin E. Functional responses and interference within and between year classes of a dragonfly population. J. North Am. Benthol. Soc. 1989;8:211–221. doi: 10.2307/1467324. [DOI] [Google Scholar]
  • 39.Kuang Y, Hwang T, Hsu S. Global dynamics of a Predator-Prey model with Hassell-Varley Type functional response. Discret. Contin. Dyn. Syst.-Ser. B. 2008;10:857–871. doi: 10.3934/dcdsb.2008.10.857. [DOI] [Google Scholar]
  • 40.Tibshirani R, others. The lasso method for variable selection in the Cox model. Stat. Med. 1997;16:385–395. doi: 10.1002/(SICI)1097-0258(19970228)16:4&#x0003c;385::AID-SIM380&#x0003e;3.0.CO;2-3. [DOI] [PubMed] [Google Scholar]
  • 41.Barber R, Candès E. Controlling the false discovery rate via knockoffs. Ann. Stat. 2015;43:2055–2085. doi: 10.1214/15-AOS1337. [DOI] [Google Scholar]
  • 42.Liu YY, Slotine JJ, Barabási AL. Controllability of complex networks. Nature. 2011;473:167–173. doi: 10.1038/nature10011. [DOI] [PubMed] [Google Scholar]
  • 43.Friedman J, Higgins L, Gore J. Community structure follows simple assembly rules in microbial microcosms. Nat. Ecol. Evol. 2017;1:0109. doi: 10.1038/s41559-017-0109. [DOI] [PubMed] [Google Scholar]
  • 44.Niu B, Paulson JN, Zheng X, Kolter R. Simplified and representative bacterial community of maize roots. Proc. Natl Acad. Sci. USA. 2017;114:E2450–E2459. doi: 10.1073/pnas.1616148114. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 45.Mee MT, Collins JJ, Church GM, Wang HH. Syntrophic exchange in synthetic microbial communities. Proc. Natl Acad. Sci. USA. 2014;111:E2149–E2156. doi: 10.1073/pnas.1405641111. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46.Sontag ED. Network reconstruction based on steady-state data. Essays Biochem. 2008;45:161–176. doi: 10.1042/bse0450161. [DOI] [PubMed] [Google Scholar]
  • 47.Apajalahti JHA, Kettunen A, Nurminen PH, Jatila H, Holben WE. Selective plating underestimates abundance and shows differential recovery of bifidobacterial species from human feces. Appl. Environ. Microbiol. 2003;69:5731–5735. doi: 10.1128/AEM.69.9.5731-5735.2003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Rinttilä T, Kassinen A, Malinen E, Krogius L, Palva A. Development of an extensive set of 16S rDNA-targeted primers for quantification of pathogenic and indigenous bacteria in faecal samples by real-time PCR. J. Appl. Microbiol. 2004;97:1166–1177. doi: 10.1111/j.1365-2672.2004.02409.x. [DOI] [PubMed] [Google Scholar]
  • 49.Datta MS, Sliwerska E, Gore J, Polz MF, Cordero OX. Microbial interactions lead to rapid micro-scale successions on model marine particles. Nat. Commun. 2016;7:11965. doi: 10.1038/ncomms11965. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Dubelaar GBJ, Jonker RR. Flow cytometry as a tool for the study of phytoplankton. Sci. Mar. 2000;64:135–156. doi: 10.3989/scimar.2000.64n2135. [DOI] [Google Scholar]
  • 51.Amann R, Fuchs BM. Single-cell identification in microbial communities by improved fluorescence in situ hybridization techniques. Nat. Rev. Micro. 2008;6:339–348. doi: 10.1038/nrmicro1888. [DOI] [PubMed] [Google Scholar]
  • 52.David L, et al. Host lifestyle affects human microbiota on daily timescales. Genome Biol. 2014;15:R89. doi: 10.1186/gb-2014-15-7-r89. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Relman D. The human microbiome: ecosystem resilience and health. Nutr. Rev. 2012;70:S2–S9. doi: 10.1111/j.1753-4887.2012.00489.x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Caporaso J, et al. Moving pictures of the human microbiome. Genome Biol. 2011;12:R50. doi: 10.1186/gb-2011-12-5-r50. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 55.Faith J, et al. The long-term stability of the human gut microbiota. Science. 2013;341:1237439–1237439. doi: 10.1126/science.1237439. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 56.Bashan A, et al. Universality of human microbial dynamics. Nature. 2016;534:259–262. doi: 10.1038/nature18301. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 57.Angulo, M. & Slotine, J. Qualitative stability of nonlinear networked systems. IEEE Trans. Autom. Control1-1 (2016). 10.1109/tac.2016.2617780.
  • 58.Grilli J, et al. Feasibility and coexistence of large ecological communities. Nat. Commun. 2017;8:14389. doi: 10.1038/ncomms14389. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Li C, Lim KMK, Chng KR, Nagarajan N. Predicting microbial interactions through computational approaches. Methods. 2016;102:12–19. doi: 10.1016/j.ymeth.2016.02.019. [DOI] [PubMed] [Google Scholar]

Associated Data

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

Supplementary Materials

Peer Review File (2.7MB, pdf)

Data Availability Statement

All the experimental data,sets analyzed in this study are either publicly available or kindly provided by the original authors. Other data that support the findings of this study are available from the corresponding author on reasonable request.


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES