Zachary D. KurtzpersName, Christian L. MüllerpersName, Emily R. MiraldipersName, Dan R. LittmanpersName, Martin J. BlaserpersName, Richard A. BonneaupersName (2015date). “Sparse and compositionally robust inference of microbial ecological networks..” PLOS Computational Biologytitle·j.
Object of study — inference of microbial ecological association networks from compositional amplicon data
Research question — how to infer OTU-OTU association networks from compositional, under-powered sequencing data
Contribution — SPIEC-EASIterm·mth: compositional dataterm·key transforms combined with sparse graphical modelterm·key inference
phenomenon · claim-type · cross-domain-transfer · mechanism · claim-relation · replication-status · limitation — grounded in the full text| phenomenon | spurious associations from correlation on compositional microbiome data — “Thus, microbial abundances are not independent, and traditional statistical metrics (e.g., correlation) for the detection of OTU-OTU relationships can lead to spurious results.” | |
| claim-type | method — “SPIEC-EASI combines data transformations developed for compositional data analysis with a graphical model inference framework that assumes the underlying ecological association network is sparse.” | |
| method — evidence | — “SPIEC-EASI’s inference engine includes two well-known graphical model estimators, neighborhood selection [ 20 ] and sparse inverse covariance selection [ 22 , 23 , 46 ] that are extended by compositionally robust data transformations for application to the specific context of microbial abundance data.” | |
| object of study — evidence | — “SPIEC-EASI combines data transformations developed for compositional data analysis with a graphical model inference framework that assumes the underlying ecological association network is sparse.” | |
| research question — evidence | — “Secondly, microbial sequencing-based studies typically measure hundreds of OTUs on only tens to hundreds of samples; thus, inference of OTU-OTU association networks is severely under-powered, and additional information (or assumptions) are required for accurate inference.” | |
| contribution — evidence | — “SPIEC-EASI combines data transformations developed for compositional data analysis with a graphical model inference framework that assumes the underlying ecological association network is sparse.” | |
| mechanism | compositional dependence Normalised abundances are not independent, so plain correlation gives spurious OTU-OTU relationships. — “Thus, microbial abundances are not independent, and traditional statistical metrics (e.g., correlation) for the detection of OTU-OTU relationships can lead to spurious results.” | mechanisms[0] |
| sense | compositional (data) - counts normalised to the sample total, so abundances are not independent — “Counts are normalized to the total number of counts in the sample.” | senses[0] |
| relation | OTUs —same-as→ operational taxonomic units — ( ) — “First, the abundances of microbial operational taxonomic units (OTUs) from amplicon-based datasets are compositional.” — “microbial operational taxonomic units (OTUs)” | concept_edges[0] |
| weight | OTUs —same-as→ operational taxonomic units — 0.95 — “First, the abundances of microbial operational taxonomic units (OTUs) from amplicon-based datasets are compositional.” | concept_edges[0] |
| relation | AGP —same-as→ American Gut Project — ( ) — “Our application study on real American Gut Project (AGP) data revealed that inference with SPIEC-EASI produced more consistent and sparser interaction networks than SparCC and CCREPE.” — “real American Gut Project (AGP) data” | concept_edges[1] |
| weight | AGP —same-as→ American Gut Project — 0.95 — “Our application study on real American Gut Project (AGP) data revealed that inference with SPIEC-EASI produced more consistent and sparser interaction networks than SparCC and CCREPE.” | concept_edges[1] |
| relation | SPIEC-EASI —contrasted-with→ SparCC — than — “Our application study on real American Gut Project (AGP) data revealed that inference with SPIEC-EASI produced more consistent and sparser interaction networks than SparCC and CCREPE.” — “inference with SPIEC-EASI produced more consistent and sparser interaction networks than SparCC and CCREPE” | concept_edges[2] |
| weight | SPIEC-EASI —contrasted-with→ SparCC — 0.8 — “Our application study on real American Gut Project (AGP) data revealed that inference with SPIEC-EASI produced more consistent and sparser interaction networks than SparCC and CCREPE.” | concept_edges[2] |
| relation | neighborhood selection —part-of→ SPIEC-EASI — includes — “SPIEC-EASI’s inference engine includes two well-known graphical model estimators, neighborhood selection [ 20 ] and sparse inverse covariance selection [ 22 , 23 , 46 ] that are extended by compositionally robust data transformations for application to the specific context of microbial abundance data.” — “SPIEC-EASI’s inference engine includes two well-known graphical model estimators, neighborhood selection” | concept_edges[3] |
| weight | neighborhood selection —part-of→ SPIEC-EASI — 0.85 — “SPIEC-EASI’s inference engine includes two well-known graphical model estimators, neighborhood selection [ 20 ] and sparse inverse covariance selection [ 22 , 23 , 46 ] that are extended by compositionally robust data transformations for application to the specific context of microbial abundance data.” | concept_edges[3] |
| replication | original | |
| limitation | Scale-free networks elude accurate inference even when globally sparse. — “Finally, in agreement with theoretical and empirical work in high-dimensional statistics, our synthetic benchmark results confirmed that networks with scale-free structures elude accurate inference even if the underlying network is globally sparse.” | limitations[0] |
| limitation | No gold-standard interactions exist for validation, so networks are built de novo. — “In addition, for most microbes few to no ecological interactions are known, thus the ecological interaction network must be constructed de novo , in the absence of guiding assumptions and a set of “gold standard” interactions for validation.” | limitations[1] |
| limitation | Few samples relative to OTUs leave inference under-powered. — “Secondly, microbial sequencing-based studies typically measure hundreds of OTUs on only tens to hundreds of samples; thus, inference of OTU-OTU association networks is severely under-powered, and additional information (or assumptions) are required for accurate inference.” | limitations[2] |
finding · quantity · variable · definition · key-term — grounded in the full text| finding | SPIEC-EASI recovers edges and network properties better than state-of-the-art methods on synthetic data. — “SPIEC-EASI outperforms state-of-the-art methods to recover edges and network properties on synthetic data under a variety of scenarios.” | content_tags.findings[0] |
| finding | OTUs are more likely to interact with phylogenetically related OTUs. — “Specifically, we observed that OTUs were more likely to interact with phylogenetically related OTUs ( Fig 6c and S11 Fig ).” | content_tags.findings[1] |
| finding | Network recovery nearly doubles from scale-free to cluster to band topologies. — “Foremost and in agreement with theoretical results from high-dimensional statistics [ 29 , 30 , 39 ], network topology has a significant impact, as network recovery performance is nearly doubled from scale-free to cluster to band ( Fig 4 ) for fixed sample size, number of taxa, and condition number.” | content_tags.findings[2] |
| finding | The gut network mixes scale-free, band-like and cluster subnetworks. — “In addition, our gut microbial interaction networks appear to be a composite of network types, as we find evidence for scale-free, band-like, and cluster subnetworks.” | content_tags.findings[3] |
| variable | network topology — “Foremost and in agreement with theoretical results from high-dimensional statistics [ 29 , 30 , 39 ], network topology has a significant impact, as network recovery performance is nearly doubled from scale-free to cluster to band ( Fig 4 ) for fixed sample size, number of taxa, and condition number.” | content_tags.variables[0] |
| definition | correlation analysis — “A commonly used tool to infer a network is correlation analysis; that is computing Pearson’s correlation coefficient among all pairs of OTU samples, and an interaction between microbes is assumed when the absolute value of the correlation coefficient is sufficiently high [ 15 , 16 ].” | content_tags.definitions[0] |
| key-terms | SPIEC-EASI, compositional data, OTUs, graphical model, neighborhood selection, inverse covariance, SparCC, American Gut Project, 16S rRNA, microbial networks |
| concept | SPIEC-EASI — not defined in this paper's own words; the paper's sparse inverse covariance method for ecological association inference — “SPIEC-EASI combines data transformations developed for compositional data analysis with a graphical model inference framework that assumes the underlying ecological association network is sparse.” | concepts[0] |
| concept | OTUs — operational taxonomic units — “First, the abundances of microbial operational taxonomic units (OTUs) from amplicon-based datasets are compositional.” | concepts[1] |
| concept | operational taxonomic units — not defined in this paper's own words; clusters of sequence reads used as proxies for microbial populations — “First, the abundances of microbial operational taxonomic units (OTUs) from amplicon-based datasets are compositional.” | concepts[2] |
| concept | AGP — American Gut Project — “Our application study on real American Gut Project (AGP) data revealed that inference with SPIEC-EASI produced more consistent and sparser interaction networks than SparCC and CCREPE.” | concepts[3] |
| concept | American Gut Project — not defined in this paper's own words; a public gut microbiome sampling project — “Our application study on real American Gut Project (AGP) data revealed that inference with SPIEC-EASI produced more consistent and sparser interaction networks than SparCC and CCREPE.” | concepts[4] |
| concept | SparCC — not defined in this paper's own words; a state-of-the-art compositional correlation method — “Our application study on real American Gut Project (AGP) data revealed that inference with SPIEC-EASI produced more consistent and sparser interaction networks than SparCC and CCREPE.” | concepts[5] |
| concept | neighborhood selection — not defined in this paper's own words; a graphical model estimator selecting each node's neighbours — “SPIEC-EASI’s inference engine includes two well-known graphical model estimators, neighborhood selection [ 20 ] and sparse inverse covariance selection [ 22 , 23 , 46 ] that are extended by compositionally robust data transformations for application to the specific context of microbial abundance data.” | concepts[6] |
| concept | correlation analysis — computing Pearson’s correlation coefficient among all pairs of OTU samples — “A commonly used tool to infer a network is correlation analysis; that is computing Pearson’s correlation coefficient among all pairs of OTU samples, and an interaction between microbes is assumed when the absolute value of the correlation coefficient is sufficiently high [ 15 , 16 ].” | concepts[7] |
Full text — tagged
The reference list is not part of the text we hold for this paper. Our copy was extracted from the publisher's page and the bibliography did not survive that extraction, so the article below ends before its references. Nothing has been removed by us.
Sparse and compositionally robust inference of microbial ecological networks.
Abstract 16S ribosomal RNA (rRNA) gene and other environmental sequencing techniques provide snapshots of microbial communities, revealing phylogeny and the abundances of microbial populations across diverse ecosystems. While changes in microbial community structure are demonstrably associated with certain environmental conditions (from metabolic and immunological health in mammals to ecological stability in soils and oceans), identification of underlying mechanisms requires new statistical tools, as these datasets present several technical challenges. First, the abundances of microbial operational taxonomic unitsterm·dom (OTUsterm·dom) from amplicon-based datasets are compositional. Counts are normalized to the total number of counts in the sample. Thus, microbial abundances are not independent, and traditional statistical metrics (e.g., correlation) for the detection of OTU-OTU relationships can lead to spurious results. Secondly, microbial sequencing-based studies typically measure hundreds of OTUsterm·dom on only tens to hundreds of samples; thus, inference of OTU-OTU association networks is severely under-powered, and additional information (or assumptions) are required for accurate inference. Here, we present SPIEC-EASIterm·mth ( SP arse I nvers E C ovariance Estimation for E cological A ssociation I nference), a statistical method for the inference of microbial ecological networks from amplicon sequencing datasets that addresses both of these issues. SPIEC-EASIterm·mth combines data transformations developed for compositional dataterm·key analysis with a graphical modelterm·key inference framework that assumes the underlying ecological association network is sparse. To reconstruct the network, SPIEC-EASIterm·mth relies on algorithms for sparse neighborhood and inverse covarianceterm·key selection. To provide a synthetic benchmark in the absence of an experimentally validated gold-standard network, SPIEC-EASIterm·mth is accompanied by a set of computational tools to generate OTUterm·dom count data from a set of diverse underlying network topologies. SPIEC-EASIterm·mth outperforms state-of-the-art methods to recover edges and network properties on synthetic data under a variety of scenarios. SPIEC-EASIterm·mth also reproducibly predicts previously unknown microbial associations using data from the American Gut projectterm·dom.
Introduction Low-cost metagenomic and amplicon-based sequencing promises to make the resolution of complex interactions between microbial populations and their surrounding environment a routine component of observational ecology and experimental biology. Indeed, large-scale data collection efforts (such as Earth Microbiome Project [ 1 ], the Human Microbiome Project [ 2 ], and the American Gut Projectterm·dom [ 3 ]) bring an ever-increasing number of samples from soil, marine and animal-associated microbiota to the public domain. Recent research efforts in ecology, statistics, and computational biology have been aimed at reliably inferring novel biological insights and testable hypotheses from population abundances and phylogenies. Classic objectives in community ecology include, (i) the accurate estimation of the number of taxa (observed and unobserved) from microbial studies [ 4 ] and, related to that, (ii) the estimation of community diversity within and across different habitats from the modeled population counts [ 5 ]. Moreover, some microbial compositions appear to form distinct clusters, leading to the concept of enterotypes, or ecological steady states in the gut [ 6 ], but their existence has not been established with certainty [ 7 ]. Another aim of recent studies is the elucidation of connections between microbes and environmental or host covariates. Examples include a novel statistical regression framework for relating microbiome compositions and covariates in the context of nutrient intake [ 8 ], observations that microbiome compositions strongly correlate with disease status in new-onset Crohn’s disease [ 9 ], and the connections between helminth infection and the microbiome diversity [ 10 ].
One goal of microbiome studies is the accurate inference of microbial ecological interactions from population-level data [ 11 ]. ‘Interactions’ are inferred by detecting significant (typically non-directional) associations between sampled populations, e.g., by measuring frequency of co-occurrence [ 12 , 13 ]. Microbiota are measured by profiling variable regions of bacterial 16S rRNAterm·key gene sequences. These regions are amplified, sequenced, and the resulting reads are then grouped into common Operational Taxonomic Unitsterm·dom (OTUsterm·dom) and quantified, with OTUterm·dom counts serving as a proxy to the underlying microbial populations’ abundances. Knowledge of interaction networks (here, a measure of microbial association) provides a foundation to predictively model the interplay between environment and microbial populations. A recent example is the successful construction of a dynamic differential equation model to describe the primary succession of intestinal microbiota in mice [ 14 ]. A commonly used tool to infer a network is correlation analysisterm·mth; that is computing Pearson’s correlation coefficient among all pairs of OTUterm·dom samples, and an interaction between microbes is assumed when the absolute value of the correlation coefficient is sufficiently high [ 15 , 16 ].
However, applying traditional correlation analysisterm·mth to amplicon surveys of microbial population data is likely to yield spurious results [ 9 , 17 ]. To limit experimental biases due to sampling depth, OTUterm·dom count data is typically transformed by normalizing each OTUterm·dom count to the total sum of counts in the sample. Thus, communities of microbial relative abundances, termed compositions, are not independent, and classical correlation analysisterm·mth may fail [ 18 ]. Recent methods such as Sparse Correlations for Compositional dataterm·key (SparCCterm·mth) [ 17 ] and Compositionally Corrected by REnormalization and PErmutation (CCREPE) [ 9 , 11 , 19 ] are designed to account for these compositional biases and represent the state of the art in the field. Yet, it is not clear that correlation is the proper measure of association. For example, correlations can arise between OTUsterm·dom that are indirectly connected in an ecological network (we expand on this point below).
Dimensionality poses another challenge to statistical analysis of microbiome studies, as the number of measured OTUsterm·dom p is on the order of hundreds to thousands whereas the number of samples n generally ranges from tens to hundreds. This implies that any meaningful interaction inference scheme must operate in the underdetermined data regime ( p > n ), which is viable only if additional assumptions about the interaction network can be made. As technological developments lead to greater sequencing depths, new computational methods that address the ( p > n ) challenge will become increasingly important.
In the present work, we present a novel strategy to infer networks from (potentially high-dimensional) community composition data. We introduce SPIEC-EASIterm·mth ( SP arse I nvers E C ovariance Estimation for E cological AS sociation I nference, pronounced speakeasy ), a new statistical method for the inference of microbial ecological networks and generation of realistic synthetic data. SPIEC-EASIterm·mth inference comprises two steps: First, a transformation from the field of compositional dataterm·key analysis is applied to the OTUterm·dom data. Second, SPIEC-EASIterm·mth estimates the interaction graph from the transformed data using one of two methods: (i) neighborhood selectionterm·mth [ 20 , 21 ] and (ii) sparse inverse covarianceterm·key selection [ 22 , 23 ]. Unlike empirical correlation or covariance estimation, used in SparCCterm·mth and CCREPE, our pipeline seeks to infer an underlying graphical modelterm·key using the concept of conditional independence.
Informally, two nodes (e.g. OTUsterm·dom) are conditionally independent if, given the state (e.g. abundance) of all other nodes in the network, neither node provides additional information about the state of the other. A link between any two nodes in the graphical modelterm·key implies that the OTUterm·dom abundances are not conditionally independent and that there is a (linear) relationship between them that cannot be better explained by an alternate network wiring. In this way, our method avoids detection of correlated but indirectly connected OTUsterm·dom, thus ensuring parsimony of the resulting network model (for more detail, see Materials and Methods and Fig 1 ). This model is an undirected graph where links between nodes represent signed associations between OTUsterm·dom. The use of graphical modelsterm·key has gained considerable popularity in network biology [ 24 – 26 ] and, more recently, in structural biology [ 27 ], particularly to correct for transitive correlations in protein structure prediction [ 28 ].
Conditional independence vs correlation analysisterm·mth for a toy dataset. In an ecosystem, the abundance of any OTUterm·dom is potentially dependent on the abundances of other OTUsterm·dom in the ecological network. Here, we simulate abundances from a network where OTUterm·dom 3 directly influences (via some set of biological mechanisms) the abundances of OTUsterm·dom 1, 2 and 4 ( a ). The inference goal here is to recover the underlying network from the simulated data. b ) Absolute abundances of these four OTUsterm·dom were drawn from a negative-binomial distribution across 500 samples according to the true network (as described in the Methods section). c ) Computing all pairwise Pearson correlation yields a symmetric matrix showing patterns of association (positive correlations are green and negative are red). We thresholded entries of the correlation matrix to generate relevance networks. d ) A threshold at ρ ≥ ∣0.35∣ (represented by dashed and solid edges) results in a network in which OTUterm·dom 3 is connected to all other OTUsterm·dom with an additional connection between OTUterm·dom 2 and OTUterm·dom 4. A more stringent threshold at ρ ≥ ∣0.5∣, results in a sparser relevance network (notably missing the edge between OTUterm·dom 3 and OTUterm·dom 1), and is represented in d by solid edges only. Importantly, no single threshold recovers the true underlying hub topology. e ) The inverse sample covariance matrix yields a symmetric matrix where entries are approximately zero if the corresponding OTUterm·dom pairs are conditionally independent. The network ( f ) inferred from the non-zero entries (colored in blue in e ) identifies the correct hub network. Thus, it is possible to choose a threshold for the sample inverse covarianceterm·key that faithfully recovers the true network. Such a threshold is not guaranteed to exist for correlation or covariance (the metric used by SparCCterm·mth and CCREPE). Intuitively, this is because simultaneous direct connections can induce strong correlations between nodes that do not have direct relationships (e.g. OTUterm·dom 2-4). Conversely, weak correlations can arise between directly connected nodes (e.g. OTUterm·dom 1-3). Although correlation is a useful measure of association in many contexts, it is a pairwise metric and therefore limited in a multivariate setting. On the other hand, SPIEC-EASIterm·mth’s estimate of entries in the inverse covarianceterm·key matrix depend on the conditional states of all available nodes. This feature helps SPIEC-EASIterm·mth avoid detection of indirect network interactions.
To properly benchmark our inference scheme and compare its performance with other state-of-the-art schemes [ 9 , 17 ], SPIEC-EASIterm·mth is accompanied by a synthetic data generation routine, which generates realistic synthetic OTUterm·dom data from networks with diverse topologies. This is significant because, to date, (i) no experimentally verified set of “gold-standard” microbial interactions exists, (ii) previous synthetic benchmark data do not accurately reflect the actual properties of microbiome data [ 17 ], and (iii) theoretical and empirical work from high-dimensional statistics [ 29 – 31 ] suggests that network topologyterm·var can strongly impact network recovery and performance and thus must be considered in the design of synthetic datasets.
We show that SPIEC-EASIterm·mth is a scalable inference engine that (i) yields superior performance with respect to state-of-the-art methods in terms of interaction recovery and network features in a diverse set of realistic synthetic benchmark scenarios, (ii) provides the most stable and reproducible network when applied to real data, and (iii) reliably estimates an invertible covariance matrix which can be used for additional downstream statistical analysis. In agreement with statistical theory [ 29 ], inference on the synthetic datasets demonstrates that the degree distribution of the underlying network has the largest effect on performance, and this effect is observed across all methods tested. SPIEC-EASIterm·mth network inference applied to actual data from the American Gut Projectterm·dom (AGPterm·dom) shows (i) that clusters of strongly connected components are likely to contain OTUsterm·dom with common family membership and (ii) that actual gut microbial networksterm·key are likely composites of archetypical network topologies. In the Materials and Methods section, we present statistical and computational aspects of SPIEC-EASIterm·mth. We then benchmark SPIEC-EASIterm·mth, comparing it to current inference schemes using synthetic data. We then apply SPIEC-EASIterm·mth to measurements available from the AGPterm·dom database. The SPIEC-EASIterm·mth pipeline is implemented in the R package [SpiecEasiterm·mth] freely available at https://github.com/zdk123/SpiecEasiterm·mth . All presented numerical data is available at http://bonneaulab.bio.nyu.edu/ .
Materials and Methods SPIEC-EASIterm·mth comprises both an inference and a synthetic data generation module. Fig 2 summarizes the key components of the pipeline. In this section, we introduce all statistical and computational aspects of the inference scheme and then describe our approach for generating realistic synthetic datasets.
Workflow of the SPIEC-EASIterm·mth pipeline. The SPIEC-EASIterm·mth pipeline consists of two independent parts for a ) synthetic data generation and b ) network inference. a ) Synthetic data generation requires an OTUterm·dom count table and a user-selected network topologyterm·var. Internally, the parameters of a statistical distribution (the zero-inflated Negative binomial model is suggested) are fit to the OTUterm·dom marginals of the real data, and are combined with the randomly-generated network in the Normal to Anything (NORTA) approach to generate correlated count data. b ) Network inference proceeds in three stages on synthetic or real OTUterm·dom count data: First, data is pre-procssed and centered log-ratio (CLR) transformed to ensure compositional robustness. Next, the user selects one of two graphical modelterm·key inference procedures: 1) Neighborhood selectionterm·mth (the MB method) or 2) inverse covarianceterm·key selection (the glasso method). SPIEC-EASIterm·mth network inference assumes that the underlying network is sparse. We infer the correct model sparseness by the Stability Approach to Regularization Selection (StARS), which involves random subsampling of the dataset to find a network with low variability in the selected set of edges. SPIEC-EASIterm·mth outputs include an ecological network (from the non-zero entries of the inverse covarianceterm·key network) and an invertible covariance matrix. If the network was inferred from synthetic data, it can be compared with the input network to assess inference quality.
Data processing and transformation of standard OTUterm·dom count data For this discussion, a table of OTUterm·dom count data, typical output of 16S rRNAterm·key gene sequencing data curation pipelines (e.g., mothur [ 32 ], QIIME [ 33 ]) are given. The OTUterm·dom data are stored in a matrix W ∈ ℕ 0 n × p where w ( j ) = [ w 1 ( j ) , w 2 ( j ) , … , w p ( j ) ] denotes the p -dimensional row vector of OTUterm·dom counts from the j th sample, j = 1, …, n , with total cumulative count m ( j ) = ∑ i = 1 p w i ( j ) ; ℕ 0 denotes the set of natural numbers {0, 1, 2, …}. As described above, to account for sampling biases, microbiome data is typically transformed by normalizing the raw count data w ( j ) with respect to the total count m ( j ) of the sample [ 10 ]. We thus arrive at vectors of relative abundances or compositions x ( j ) = [ w 1 ( j ) m ( j ) , w 2 ( j ) m ( j ) , … , w p ( j ) m ( j ) ] for sample j . Due to this normalization OTUterm·dom abundances are no longer independent, and the sample space of this p-part composition x ( j ) is not the unconstrained Euclidean space but the p -dimensional unit simplex 𝕊 p ≐ { x ∣ x i > 0 , ∑ i = 1 p x i = 1 } . Thus, OTUterm·dom compositions from n samples are constrained to lie in the unit simplex, X ∈ 𝕊 n × p . This restriction of the data to the simplex prohibits the application of standard statistical analysis techniques, such as linear regression or empirical covariance estimation. Covariance matrices of compositional dataterm·key exhibit, for instance, a negative bias due to closure effects.
Major advances in the statistical analysis of compositional dataterm·key were achieved by Aitchison in the 1980’s [ 18 , 34 ]. Rather than considering compositions in the simplex, Aitchison proposed log-ratios, log [ x i x j ] , as a basis for studying compositional dataterm·key. The simple equivalence log [ x i x j ] = log [ w i / m w j / m ] = log [ w i w j ] implies that statistical inferences drawn from analysis of log-ratios of compositions are equivalent to those that could be drawn from the log-ratios of the unobserved absolute measurements, also termed the basis .
Aitchison also proposed several statistically equivalent log-ratio transformations to remove the unit-sum constraint of compositional dataterm·key [ 18 ]. Here we apply the centered log-ratio (clr) transform: z ≐ clr ( x ) = [ log ( x 1 / g ( x ) ) , … , log ( x p / g ( x ) ] = [ log ( w 1 / g ( w ) ) , … , log ( w p / g ( w ) ) ] (1) where g ( x ) = [ ∏ p i = 1 x i ] 1 / p is the geometric mean of the composition vector. The clr transform is symmetric and isometric with respect to the component parts. The resulting vector z is constrained to a zero sum. The clr transform maps the data from the unit simplex to a p − 1-dimensional Euclidean space, and the corresponding population covariance matrix Γ = Cov[clr( X )] ∈ ℝ p × p is also singular [ 18 ]. The covariance matrix Γ is related to the population covariance of the log-transformed absolute abundances Ω = Cov[log W ] via the relationship [ 34 ]: Γ = G Ω G (2) where G = I p − 1 p J , I p is the p -dimensional identity matrix, and J = [ j 1 , j 2 , …, j i , …, j p ], j i = [1, 1, …, 1] the p -dimensional all-ones vector. For high-dimensional data, p > > 0, the matrix G is close to the identity matrix, and thus we can assume that a finite sample estimator Γ ^ of Γ serves as a good approximation of Ω ^ . This approximation serves as the basis of our network inference scheme. Finally, because real-world OTUterm·dom data often contain samples with a zero count for low-abundance OTUsterm·dom, we add a unit pseudo count to the original count data to avoid numerical problems with the clr transform.
Inference of microbial associations from microbial abundance datasets Our key objective is to learn a network of pairwise taxon-taxon associations (putative interactions) from clr-transformed microbiome compositions Z ∈ ℝ n × p . We represent the network as an undirected, weighted graph 𝓖 = ( V , E ), where the vertex set V = { v 1 , …, v p } represents the p taxa (e.g., OTUsterm·dom) and the edge set E ⊂ V × V the possible associations among them. Our formal approach is to learn a probabilistic graphical modelterm·key [ 35 ] (i) that is consistent with the observed data and (ii) for which the (unknown) graph 𝓖 encodes the conditional dependence structure between the random variables (in our case, the observed taxa). Graphical modelsterm·key over undirected graphs (also known as Markov networks or Markov Random Fields) have a straightforward distributional interpretation when the data are drawn from a probability distribution π ( x ) that belongs to an exponential family [ 36 , 37 ]. For example, when the data are drawn from a multivariate normal distribution π ( x ) = 𝓝( x ∣ μ , Σ) with mean μ and covariance Σ, the non-zero elements of the off-diagonal entries of the inverse covarianceterm·key matrix Θ = Σ −1 , also termed the precision matrix, defines the adjacency matrix of the graph 𝓖 and thus describes the factorization of the normal distribution into conditionally dependent components [ 35 ]. Conversely, if and only if an entry in Θ: Θ i , j = 0, then the two variables are conditionally independent, and there is no edge between v i and v j in 𝓖. We seek to estimate the inverse covarianceterm·key matrix from the data, thereby inferring associations based on conditional independence. This is fundamentally distinct from SparCCterm·mth and CCREPE (see S1 Table ), which essentially estimate pairwise correlations (though other pairwise metrics could be considered for CCREPE). We highlight this key difference in Fig 1 . For an intuitive introduction to graphical modelsterm·key in the context of biological networks see Bühlmann et. al , 2014 [ 38 ].
Inferring the exact underlying graph structure in the presence of a finite amount of samples is, in general, intractable. However, two types of statistical inference procedures have been useful in high-dimensional statistics due to their provable performance guarantees under assumptions about the sample size n , dimensionality p , underlying graph properties, and the generating distribution [ 29 , 39 ]. The first approach, neighborhood selectionterm·mth [ 20 , 39 ], aims at reconstructing the graph on a node-by-node basis where, for each node, a penalized regression problem is solved. The second approach is the penalized maximum likelihood method [ 22 , 23 ], where the entire graph is reconstructed by solving a global optimization problem, the so-called covariance selection problem [ 40 ]. The key advantages of these approaches are that (i) their underlying inference procedures can be formulated as convex (and hence tractable) optimization problems, and (ii) they are applicable even in the underdetermined regime ( p > n ), provided that certain structural assumptions about the underlying graph hold. One assumption is that the true underlying graph is reasonably sparse, e.g., that the number of taxon-taxon associations scales linearly with the number of measured taxa.
Graphical modelterm·key inference . The SPIEC-EASIterm·mth pipeline comprises two types of inference schemes, neighborhood and covariance selection. The neighborhood selectionterm·mth framework, introduced by M einshausen and B ühlmann [ 20 ] and thus often referred as the MB method, tackles graph inference by solving p regularized linear regression problems, leading to local conditional independence structure predictions for each node. Let us denote the i th column of the data matrix Z by Z i ∈ ℝ n and the remaining columns by Z ¬ i ∈ ℝ n × p −1 . For each node v i , we solve the following convex problem: β ^ i , λ = arg min β ∈ ℝ p - 1 ( 1 n ∥ Z i - Z ¬ i β ∥ 2 + λ ∥ β ∥ 1 ) , (3) where ‖ a ‖ 1 = ∑ i = 1 p − 1 ∣ a i ∣ denotes the L1 norm, and λ ≥ 0 is a scalar tuning parameter. This so-called LASSO problem [ 41 ] aims at balancing the least-square fit and the number of necessary predictors (the non-zero components β j of β ) by tuning the λ parameter. We define the local neighborhood of a node v i as N i λ = { j ⊂ { 1 , … p } \ i : β ^ j i , λ ≠ 0 } . The final edge set E of 𝓖 can be defined via the intersection or the union operation of the local neighborhoods. An edge e i , j between node v i and v j exists if j ∈ N i λ ∩ i ∈ N j λ or j ∈ N i λ ∪ i ∈ N j λ . For edges in the set j ∈ N i λ ∩ i ∈ N j λ , the edge weights, e i , j and e j , i , are estimated using the average of the two corresponding β entries. From a theoretical point of view, both edge selection choices are asymptotically consistent under certain technical assumptions [ 20 ]. The choice of the λ parameter controls the sparsity of the local neighborhood, which requires tuning [ 42 ]. We present our parameter selection strategy at the end of this section.
The second inference approach, (inverse) covariance selection, relies on the following penalized maximum likelihood approach. In the standard Gaussian setting, the related convex optimization problem reads: Θ ^ = arg min Θ ∈ PD ( - log det ( Θ ) + tr ( Θ Σ ^ ) + λ ∥ Θ ∥ 1 ) , (4) where PD denotes the set of symmetric positive definite matrices { A : x T Ax > 0, ∀ x ∈ ℝ p }, Σ ^ the empirical covariance estimate, ‖⋅‖ 1 the element-wise L1 norm, and λ ≥ 0 a scalar tuning parameter. For λ = 0, the expression is identical to the maximum likelihood estimate of a normal distribution 𝓝( x ∣0, Σ). For non-zero λ , the objective function (also referred as the graphical Lasso [ 22 ]) encourages sparsity of the underlying precision matrix Θ. The non-zero, off-diagonal entries in Θ define the adjacency matrix of the interaction graph 𝓖 which, similar to MB, depends on the proper choice of the penalty parameter λ . Originally, this estimator was shown to have theoretical guarantees on consistency and recovery only under normality assumptions [ 43 ]. However, recent theoretical [ 29 , 44 ] work shows that distributional assumptions can be considerably relaxed, and the estimator is applicable to a larger class of problems, including inference on discrete (count) data. In addition, nonparametric approaches, such as sparse additive models, can be used to “gaussianize” the data prior to network inference [ 45 ]. We thus propose the following estimator for inferring microbial ecological associations. Given clr-transformed OTUterm·dom data Z ∈ ℝ n × p , we propose the modified optimization problem: Ω ^ - 1 = arg min Ω - 1 ∈ P D ( - log det ( Ω - 1 ) + tr ( Ω - 1 Γ ^ ) + λ ∥ Ω - 1 ∥ 1 ) , (5) where Γ ^ is the empirical covariance estimate of Z , and Ω −1 is the inverse covarianceterm·key (or precision matrix) of the underlying (unknown) basis. As stated above, Γ ^ will be a good approximation for the basis covariance matrix Ω ^ because p > > 0. The resulting solution is constrained to the set of PD matrices, ensuring that the penalized estimator has full rank p . The non-zero off-diagonal entries of the estimated matrix Ω −1 define the inferred network 𝓖, and their values are the signed edge weights of the graph. To reduce the variance of the estimate, the covariance matrix Γ ^ can also be replaced by the empirical correlation matrix R ^ = D Γ ^ D , where D is a diagonal matrix that contains the inverse of the estimated element-wise standard deviations.
The covariance selection approach has two advantages over the neighborhood selectionterm·mth framework. First, we obtain unique weights associated with each edge in the network. No averaging or subsequent edge selection is necessary. Second, the covariance selection framework provides invertible precision and covariance matrix estimates that can be used in further downstream microbiome analysis tasks, such as regression and discriminant analysis [ 10 ].
Model selection . For both neighborhood and covariance selection, the tuning parameter λ ∈ [0, λ max ] controls the sparsity of the final model. Rather than inferring a single graphical modelterm·key, both methods produce a λ -dependent solution path with the complete and the empty graph as extreme networks. A number of model selection criteria, such as Bayesian Information Criteria [ 46 ] and resampling schemes [ 47 ], have been used. Here we use a popular model selection scheme known as the St ability A pproach to R egularization S election (StARS) [ 48 ]. This method repeatedly takes random subsamples (80% in the standard setting) of the data and estimates the entire graph solution path based on this subsample. For each subsample, the λ -dependent incidence frequencies of individual edges are retained, and a measure of overall edge stability is calculated. StARS selects the λ value at which subsampled non-empty graphs are the least variable (most stable) in terms of edge incidences. For the selected graph, the observed edge frequencies indicate the reproducibility, and likely the predictive power, and are used to rank edges according to confidence.
Theoretical and computational aspects . Learning microbial graphical modelsterm·key with neighborhood or inverse covarianceterm·key selection schemes has important theoretical and practical advantages over current methods. A wealth of theoretical results are available that characterize conditions for asymptotic and finite sample guarantees for the estimated networks [ 20 , 29 , 39 , 43 , 46 ]. Under certain model assumptions, the number of samples n necessary to infer the true topology of the graph in the neighborhood selectionterm·mth framework is known to scale as n = O ( d 3 log( p )), where d is the maximum vertex (or node) degree of the underlying graph (i.e. the maximum size of any local neighborhood). Additional assumptions on the sample covariance matrices reduce the scaling to n = O ( d 2 log( p )) [ 39 ]. This implies that graph recovery and precision matrix estimation is indeed possible even in the p > > n regime, and that the underlying graph topology strongly impacts edge recovery. The latter observation means that, even if the number of interactions e is constant, graphs with large hub nodes, perhaps representing keystone species in microbial networksterm·key, or, more generally, scale-free graphs with, a few highly connected nodes, will be more difficult to recover than networks with evenly distributed neighborhoods. In addition to these theoretical results, a second advantage is that well-established, efficient, and scalable implementations are available to infer microbial ecological networks from OTUterm·dom data in practice. Thus, SPIEC-EASIterm·mth methods will efficiently scale as microbiome dataset dimensions grow (e.g., due to technological advances that increase the number of OTUsterm·dom detected per sample). The SPIEC-EASIterm·mth inference engine relies on the R package huge [ 49 ], which includes algorithms to solve neighborhood and covariance selection problems [ 20 , 22 ], as well as the StARS model selection.
Generation of synthetic microbial abundance datasets Estimating the absolute and comparative performance of network inference schemes from biological data remains a fundamental challenge in biology. In the context of gene regulatory network inference, recent community-wide efforts, such as the DREAM (Dialogue for Reverse Engineering Assessments and Methods) Challenges ( http://www.the-dream-project.org/ ), have considerably advanced our understanding about feasibility, accuracy, and applicability of a large number of developed methods. In the DREAM challenges, both real data from “gold standard” regulatory networks (e.g., networks where the true topology is known from independent experimental evidence) and realistic in-silico data (using, e.g., the GeneNetWeaver pipeline [ 50 ]) are included. In the context of microbiome data and microbial ecological networks, neither a gold standard nor a realistic synthetic data generator exist. SPIEC-EASIterm·mth is accompanied by a set of computational tools that allow the generation of realistic synthetic OTUterm·dom data. As outlined in Fig 2 , real taxa count data serve as input to SPIEC-EASIterm·mth’s synthetic data generation pipeline. The pipeline enables one to: (i) fit the marginal distributions of the count data to a parametric statistical model and (ii) specify the underlying graphical modelterm·key architecture (e.g., scale-free).
The NorTA approach . The parametric statistical model and network topologyterm·var are then combined in the ‘Normal To Anything’ (NorTA) [ 51 ] approach to generate synthetic OTUterm·dom data that resemble real measurements from microbial communities but with user-specified network topologies. NorTA [ 51 ] is an approximate technique to generate arbitrary continuous and discrete multivariate distributions, given (1) a target correlation structure R with entries ρ i , j and (2) a target univariate marginal distribution U i . To achieve this task, NorTA relies on normal-copula functions [ 51 – 53 ]. A n × p matrix of data U is sampled from a normal distribution with zero mean and a p × p correlation matrix R N . For each marginal U i , the Normal cumulative distribution function (CDF) is transformed to the target distribution via its inverse CDF. For any target distribution P with CDF Ξ, we can thus generate multivariate correlated data via U P i = Ξ - 1 ( Φ ( U N i ) ) , (6) where U N ∼ 𝓝(0, R N ) and Φ ( U ) = ∫ − ∞ U 1 2 σ 2 e − u 2 2 d u , the CDF of a univariate normal. In Fig 3a , we illustrate this process for bivariate Poisson and negative binomial data ( n = 1000 and correlation ρ ij = 0.7).
a)Bivariate illustration of the NorTA approach. First normal data, incorporating the target correlation structure, is generated. Uniform data are then generated for each margin via the normal density function. These is then converted to an arbitrary marginal distribution (Poisson and Zero-inflated Negative Binomial shown as examples) via its quantile function. To generate realistic synthetic data, parameters for these margins are fit to real data. b ) Examples of band-like, cluster, and scale-free network topologies In the original NorTA approach, an element-wise monotone transformation c U (⋅) with R N = c U ( R ) is applied to account for slight differences in correlation structure between normal and target distribution samples [ 51 ]. Here we neglect this transformation step because we observe that the log-transformed data from exponential count distributions, such as the Poisson and Negative binomial, are already close to R, provided that the mean is greater than one, particularly when the counts data are log-transformed ( S1 Fig ). In practice, SPIEC-EASIterm·mth relies on routines from base R and VGAM packages [ 54 , 55 ] to estimate the uniform quantiles of the normal data and to fit the desired CDF with estimated parameters.
Fitting marginal distribution to real OTUterm·dom data . Prior to fitting marginal distributions to real data, several commonly used pre-proccesing steps are applied. For any given OTUterm·dom abundance table of size n × K , we first select p non-zero columns. To account for experimental differences in sample sequencing, we then normalize samples to a median sequencing depth by multiplying all counts by the ratio of minimum desirable sampling depth to the total sum of counts in that sample and rounding to the nearest whole number, which is preferable to rarefaction [ 56 ]. These filtered and sequencing-depth-normalized data serve as the marginal counts, which are fit to a parametric distribution U i and used as input to the NorTA approach. The concrete target marginal distribution depends on the actual microbiome dataset. For gut microbiome data (e.g. from HMP or APG), the zero-inflated Negative Binomial (ziNB) distribution is a good choice, as it accounts for both overdispersion [ 56 , 57 ] and the preponderance of zero-count data points in microbial count datasets. The fitting procedure is done within a maximum likelihood framework. The corresponding optimization problem is solved with the Quasi-Newton methods with box-constraints, as implemented in the optim function in R [ 54 ]. In S1 Text , we use quantile-quantile plots to compare ziNB to several other candidate distributions (e.g., lognormal, Poisson, NB) and show that ziNB has superior fit.
Generation of network topologies and correlation matrices . Under normality assumption, the non-zero pattern of the precision matrix corresponds to the adjacency matrix of the underlying undirected graph. We use this property to generate target covariance (correlation) matrices originating from different graph topologies. The pipeline to generate a network structure for simulated data proceeds in three steps: (i) Generate an undirected graph, in the form of an adjacency matrix, with a desired topology and sparsity, (ii) convert the adjacency matrix to a positive-definite precision matrix by assigning positive and negative edge weights and appropriate diagonal entries, and (iii) invert Θ and convert the resulting covariance matrix Σ to a correlation matrix ( R = D Σ D , where, D is a diagonal matrix with diagonal entries 1 / σ i ).
Among many potential graph structures, we focus on three representative network structures: band-like, cluster, and scale-free graphs (see Fig 3b for graphical examples). Maximum network degree strongly impacts network recovery, and thus our choice of network topologies spans a range of maximum degrees (band < cluster < scale-free). In addition, cluster and scale-free lend themselves to hypothetical ecological scenarios. Cluster graphs may be seen as archetypal models for microbial communities that populate different disjoint niches (clusters) and have only few associations across niches. Scale-free graphs, ubiquitous in many other facets of network biology (such as gene regulatory, protein-protein and social networks), serve as a baseline model for a microbial community that comprises (1) a few “keystone” species (hub nodes with many partners) that are essential for coordinating/stabilizing the community and (2) many dependent species that are sparsely connected to each other. The sparsity of the networks is controlled by the number of edges, e < p ( p − 1)/2, in the graph. The topologies are generated according to the following algorithms, starting with an empty p × p adjacency matrix: Band: A band-type network consists of a chain of nodes that connect only their nearest neighbors. Let e = e used + e available , the number of edges already used and available, respectively. Fill the next available off-diagonal vector with edges if and only if e available ≥ number of elements in the off-diagonal. Cluster: A cluster network comprises h independent groups of randomly connected nodes. For given p and e we divide the set of nodes into h components of (approximately) identical size and set the number of edges in each component to e comp = e / h . For each component, we generate a random (Erdös-Renyi) graph for which we randomly assign an edge between two nodes in the cluster with probability p = e comp h ( h − 1 ) / 2 ⋅ Scale-free: The distribution of degrees, the number of edges per node, in a scale-free network is described by a power law, implying that the central node or nodes (potentially keystone species in an ecological network) have proportionally more connections. We use the standard preferential attachment scheme [ 58 ] until p − 1 edges are exhausted. After generation of these standard adjacency matrices, we randomly remove or add edges until the adjacency matrix has exactly e edges. All schemes generate symmetric adjacency matrices that describes a graph, with entries of 1 if an edge exists and 0 otherwise.
From the adjacency matrices, we generate precision matrices by uniformly sampling non-zero entries Θ i , j ∈ [−Θ max , −Θ min ]∪[Θ min , Θ max ], where Θ min , Θ max > 0 are model parameters and describe the strength of the conditional dependence among the nodes. To ensure that the precision matrix is positive definite with tunable condition number κ = cond(Θ), we scale the diagonal entries Θ i , i by a constant c using binary search. The precision matrix Θ is then converted to a correlation matrix R to be used as input to the NorTA approach.
Results Network inference on synthetic microbiome data Given that no large-scale experimentally validated microbial ecological network exists, we use SPIEC-EASIterm·mth’s data generator capabilities to synthesize data whose OTUterm·dom count distributions faithfully resemble microbiome count data. By varying parameters known to influence network recovery (network topologyterm·var, association strength, sample number) and quantifying performance on resulting networks, we rigorously assess SPIEC-EASIterm·mth inference relative to state-of-the-art inference methods, SparCCterm·mth [ 17 ] and CCREPE [ 9 ], as well as standard Pearson correlation.
Benchmark setup We modeled the synthetic datasets on American Gut Projectterm·dom data using SPIEC-EASIterm·mth’s data generation module. The count data, accessed February, 2014 at www.microbio.me/qiime and available at https://github.com/zdk123/SpiecEasiterm·mth/tree/master/inst/extdata , come from two sampling rounds and comprise several thousand OTUsterm·dom. Round 1 data contains n 1 = 304, and Round 2 data contains n 2 = 254 samples. As filtering steps, OTUsterm·dom were removed from the input data if present in fewer than 37% of the samples, while samples were removed if total sequencing depth fell below the 1st quartile (10,800 sequence reads). Thus, we arrived at a total of p = 205 distinct OTUsterm·dom. We also generated smaller-dimensional datasets ( p = 68) with fewer zero counts by requiring that OTUsterm·dom be present in > 60% of the samples. We used Round 1 data and fit the n 1 count histograms to a ziNB distribution (for justification of this, see S1 Text ). The empirical effective number n eff is 13.5 for p = 205 and 7.5 for p = 68 data. The resulting parametrized marginal distributions served as input to NorTA.
As described above, network topologyterm·var is expected to influence network recovery; thus, we consider the three previously described topologies (band-like, cluster, and scale-free) as representative microbial networksterm·key. We hypothesize that any method that successfully infers the sets of associations underlying these archetypal networks from synthetic datasets is likely to also perform well in the context of true microbiomes, whose underlying network architecture is unknown but expected to be a mixture of these network types. For all networks, we fix the total number of edges e to the respective number of OTUsterm·dom p , and we analyze a medium ( p = 68) and a high-dimensional scenario ( p = 205). Microbial association strength is controlled by the range of values in off-diagonal entries in the precision matrices Θ and the condition number κ = cond(Θ). We use Θ min = 2 and Θ max = 3 with either condition number κ = 10 or 100. In this setting, κ controls the spread of the absolute correlation values (and thus the strength of indirect associations) present in the synthetic data. The relationship between condition number and distribution of correlation is illustrated in S3 Fig . For each network type and size, we generate 20 distinct instances. For each instance, we then use the NorTA approach to generate a maximum of n = 1360 synthetic microbial count data samples. In S2 Fig , we highlight the fidelity between the target microbiome dataset and the synthetic datasets, especially in terms of dataset dimensions and OTUterm·dom count distributions. To assess the effect of sample size on network recovery, we test methods on a range of sample sizes: n = 34, 68, 102, 1360.
We compare SPIEC-EASIterm·mth’s covariance selection method (referred to as S-E(glasso)) and neighborhood selectionterm·mth method (referred to as S-E(MB)) to SparCCterm·mth and CCREPE, methods which were also designed to be robust to compositional artifacts. As a baseline reference, we also compared all methods to Pearson correlation, which is neither compositionally robust nor appropriate for estimating correlation in the under-determined regime. Both of these methods, however, infer interactions from correlations and do not consider the concept of conditional independence. We improved the runtime of the original SparCCterm·mth implementation (available at https://bitbucket.org/yonatanf/sparccterm·mth ) and include the updated code in our SPIEC-EASIterm·mth package. The original SparCCterm·mth package also includes a small benchmark test case available at https://bitbucket.org/yonatanf/sparccterm·mth/src/9a1142c179f7/example ). The recovery performance results for S-E(MB), SparCCterm·mth, and CCREPE for this test case can be found in S9 Fig . The CCREPE implementation is downloaded from http://www.bioconductor.org/packages/release/bioc/html/ccrepe.html .
Recovery of microbial networksterm·key To quantify each method’s ability to recover the true underlying association network, we evaluated performance in terms of precision-recall (P-R) curves and area under P-R curves (AUPR). For each method, we ranked edge predictions according to confidence. For SparCCterm·mth, CCREPE and Pearson correlation, edge predictions were ranked according to p-value. SPIEC-EASIterm·mth edge predictions were ranked according to edge stability, inferred by StARS model selection step at the most stable tuning parameter λ StARS . Fig 4 summarizes methods’ performance on 960 independent synthetic datasets for a total of 48 conditions (4 samples sizes × 2 conditions numbers × 3 network topologies × 2 dimensions).
Precision-recall performance on synthetic datasets. a ) Red = S-E(glasso), orange = S-E(MB), purple = SparCCterm·mth, blue = CCREPE, green = Pearson correlation, black = random. Area under precision-recall (AUPR) vs. number of samples n for different κ values are depicted. Bars represent average over 20 synthetic datasets, and error bars represent standard error. Asterisks denote conditions under which SPIEC-EASIterm·mth methods had significantly higher AUPR relative to all other control methods (P<0.05 for all one-sided T tests). b ) Representative precision-recall curves for p = 68, n = 102, κ = 100; solid and dashed lines denote SPIEC-EASIterm·mth and control methods, respectively.
We observe the following key trends. First, the performance of all methods improves with increasing sample size. Under certain scenarios, even near-perfect recovery (AUPR ≈ 1) is possible in the large sample limit ( n = 1360). Second, all methods show a clear dependence on the network topologyterm·var. Best performance is achieved for band graphs, followed by cluster and scale-free graphs. These results are consistent with theoretical results [ 29 ], which show that the maximum node degree d reduces the probability of correctly inferring network edges for fixed sample size (scale-free networks have highest maximum degree, followed by cluster and then band.) Third, for most scenarios, the SPIEC-EASIterm·mth methods, particularly S-E(MB), perform as well or significantly better than all control methods. Standard Pearson correlation is outperformed by all methods that take the compositional nature of the data into account. Forth, in the large sample limit ( n = 1360), S-E(MB) is the only method that recovers a significant portion of edges under all tested scenarios (particularly scale-free networks). Additionally, we observe ( S10 Fig ) that SPIEC-EASIterm·mth performs well on synthetic data generated by the SparCCterm·mth benchmark [ 17 , 59 ].
The present results suggest that complete network recovery is likely an unrealistic goal for microbiome studies, given that most studies have at most hundreds of samples. In addition, the P-R curves are based on ranking predicted edges. To generate a final network, confidence-based criteria must be applied to select a final set of edges for network inclusion, and, to date, no optimal selection process exists. Nonetheless, if we focus on the set of high-confidence interactions (i.e. the top-ranked entries in the edge list), we see that S-E methods, particularly S-E(MB), can achieve very high precision for all network types (see Fig 4 for a representative P-R curve).
Overall, these results suggest that S-E methods outperform current state-of-the-art methods in terms of network recovery under most tested scenarios, with S-E(MB) showing superior performance over S-E(glasso).
Recovery of global network properties Accurate recovery of global network properties (e.g., degree distribution, number of connected components, shortest path lengths) from taxa abundance data would help define the underlying topology of the ecological network (e.g., cluster versus scale-free) [ 15 , 58 ]. At this point, little is known about the underlying topology of microbial ecological networks, but, as elaborated in the Discussion, such information could be incorporated as a constraint into SPIEC-EASIterm·mth’s inference methods, thereby further improving prediction. Thus, we tested how well SPIEC-EASIterm·mth and other methods recover global network properties from the synthetic datasets and evaluate whether these methods might be able to provide insight into global network architecture, perhaps even in the underdetermined regime, where the prediction of individual edges is less accurate. To control for the disparate means by which individual methods ranked edge confidences (e.g., stability for the SPIEC-EASIterm·mth methods, estimation of p-values for SparCCterm·mth, Pearson and CCREPE), for each synthetic dataset and method, final networks were generated by selecting the top 205 predicted edges and comparing to the true synthetic network topologies for p = 205 OTUsterm·dom.
We first consider (node) degree distributions, where node degree is defined as the number of edges each node has. In Fig 5 , we show the empirical degree distribution and the underlying ground truth for all methods and networks types, n = 1360 and κ = 100. Scale-free networks are characterized by exponential degree distributions, in which few nodes (e.g., hubs and, in our context, potential keystone taxa) have very high degree (e.g., interact with other taxa), while most nodes/taxa have few interactions. In contrast, nodes in cluster networks have relatively even degree, which depends on cluster size. In the ecological context, cluster networks would be consistent with niche communities that share few interactions with microbiota outside of one’s niche community; this structure is also reflected in degree distributions. Using Kullback-Leibler (KL) divergence to measure the dissimilarity between methods’ predicted degree distributions and the true degree distribution we see that S-E(MB) outperforms all other methods in recovering degree distributions ( Fig 5 ). This performance improvement also holds for smaller samples sizes.
a) Predicted degree distributions (colored) are overlaid with the true degree distribution (white) for n = 1360 samples, p = 205 OTUsterm·dom, κ = 100. Lighter shades correspond to regions of overlap between predicted and true distributions. Dissimilarity between the distributions is measured by KL divergence, D KL . b) Bars represent the average D KL over three independent sets of synthetic datasets (7 datasets per set); error bars represent standard error. Divergences were compared between S-E and control methods using one-sided T-tests; ***, **, * correspond to P<0.001, 0.01, and 0.05.
Another common topological feature is betweenness centrality, which, similar to degree, betweenness centrality can be used to gauge the relative importance of a node (e.g., taxon) to the (ecological) network. Betweenness centrality, as the fraction of shortest paths between all other nodes in the network that contain the given node, highlights central nodes. The distribution of nodes’ betweenness centrality provides information about the network architecture ( S4 Fig ). Specifically, scale-free networks are expected to have a few nodes with very high betweenness centrality that connect most other nodes to each other; in scale-free networks, betweenness centrality can approach unity. For cluster networks, the maximum betweenness centrality is limited by the total number of independent clusters. In band networks, similar to scale-free, all nodes are connected; however, the degree is fixed and so the betweenness centrality distribution is roughly uniform from zero to one. For smaller sample sizes n < 1360, no method dominates. However, for the largest sample size, n = 1360, S-E(MB) is again significantly better than all other methods for five out of six conditions with the exception of scale-free networks κ = 10, where SparCCterm·mth recovery is best ( S5 Fig ).
We next consider distributions over graph geodesic distances. The geodesic distance is the length of the shortest path between two nodes. Given the existence of highly connected hubs in scale-free networks, geodesic distances for scale-free networks tend to be short, a feature that is described as the “small-world” property. Thus, the geodesic distributions in the scale-free network are a lot smaller than for the band and cluster networks ( S6 Fig ). In recovery of geodesic distance distributions, S-E(MB) performs equivalently or significantly better than all other methods for scale-free networks as well as band graphs across all conditions. For cluster networks, the other methods generally outperform SPIEC-EASIterm·mth methods for smaller sample sizes ( n < 1360). In the large sample limit n = 1360, S-E(MB) has significantly better recovery of geodesic distance distributions relative to all control methods, even for cluster graphs ( S7 Fig ).
Finally, we analyzed the number and size of connected components in the inferred graphs. While all synthetic band and scale-free synthetic networks form a single connected component containing all nodes, cluster networks have a variable number of connected components. In terms of cluster number recovery, all methods predicted too many connected components. Overall, S-E methods had lower error rates for band and scale-free networks over all sample sizes. For high sample number ( n = 1360), S-E(MB) had significantly better recover of cluster size across all network types ( S8 Fig ), with nearly perfect recovery for cluster graphs ( D KL = 0, S9 Fig ).
Inference of the American Gut network Thus far we have used the n 1 = 304 first-round AGPterm·dom samples as a means to construct realistic synthetic microbiome data sets with SPIEC-EASIterm·mth’s data generation module. In this section, we apply SPIEC-EASIterm·mth inference methods to construct ecological association networks from the AGPterm·dom data directly. To do this, we first filter out rare OTUsterm·dom by selecting only the top 205 OTUsterm·dom (to match the dimensionality of the synthetic data) in the combined AGPterm·dom dataset (by frequency of presence) before adding a pseudo-count and total-sum normalization. Although there is no independent means to assess the accuracy of these hypothetical networks, we can assess their reproducibility and consistency. For each method, we first infer a single representative network of taxon-taxon interactions from Round 1 AGPterm·dom abundance data. For SPIEC-EASIterm·mth, the StARS model selection approach is used to select the final model network. For SparCCterm·mth, we use a threshold ρ t = 0.35 to construct a relevance network from the SparCC-inferred correlation matrix; i.e. an edge between nodes v i , v j is present in the SparCCterm·mth network if ∣ ρ i , j ∣ > ρ t [ 17 ]. Similarly, we use a q-value cut-off of 10 −24 to create an interaction network from CCREPE-corrected significance scores of Pearson’s correlation coefficient [ 9 ]. For each method, we thus arrive at a reference network that can be considered the hypothetical gold standard. We then use the n 2 = 254 Round 2 AGPterm·dom samples as an independent test set and learn a new model network from these data alone. We measure consistency between the two network models by computing the Hamming distance between the reference and new network models, i.e., the difference between the upper triangular part of the two adjacency matrices. For the present data, the Hamming distance can vary between p ( p − 1)/2 = 20910 (no edges in common) and a minimum of 0 for identical networks. Confidence intervals for Hamming distances can be obtained by combining Round 1 and 2 samples into a unified dataset, repeatedly subsampling these data into two disjoint groups of size n 1 and n 2 , and repeating the entire inference procedure.
Fig 6a shows network reproducibility for SPIEC-EASIterm·mth methods, SparCCterm·mth, and CCREPE. The S-E(MB) has smallest the Hamming distance, followed by S-E(glasso), SparCCterm·mth, and CCREPE. In S-E(MB), the edge disagreement is roughly 50 with very small error bars. At the other extreme, CCREPE edge disagreement is 250 edges and highly variable.
a) Network reproducibility for inference methods (see main text for details). Bars represent mean Hamming distance, and errorbars are 95% confidence intervals. b) Visualization of edge overlap between networks inferred with SPIEC-EASIterm·mth, SparCCterm·mth, and CCREPE. c) Network visualizations with OTUterm·dom nodes colored by Family lineage (or Order, when the Family of the OTUterm·dom is unknown), edges are colored by sign (positive: green, negative: red), and the node diameter proportional to the geometric mean of that OTUterm·dom’s relative abundance.
These numerical experiments clearly demonstrate that SPIEC-EASIterm·mth networks are more reproducible than other current methods.
Finally, we use each inference method to construct a candidate American Gut microbiome association network from the unified dataset of size n 1 + n 2 = 558 ( Fig 6c ). We analyze the differences between the reconstructed networks by quantifying the number of unique and shared predicted edges ( Fig 6b ). All four methods agree on a core network that consists of 127 edges. These edges are mostly found within OTUsterm·dom of the same taxonomic group. This phenomenon, termed assortativity, has also been observed in other microbial networkterm·key studies [ 11 ]. Assortativity is one of the most salient features of the AGP-derived networks, and, for all networks, the assortativity coefficients for each network are close to unity (e.g., maximum assortativity, S11 Fig ). The SparCCterm·mth network comprises about twice as many edges as the SPIEC-EASIterm·mth networks. SparCCterm·mth infers 147 distinct edges; these additional edges correspond to negative associations between OTUsterm·dom of Ruminococcaceae (genus Faecalibacterium ) and Enterobacteriacae families (various genera) and a dense web of correlations within Enterobacteriacae OTUsterm·dom. Similarly, CCREPE identified 152 edges uniquely, with many negative edges between Enterobacteriaceae and Lachnospiraceae (genera: Blautia , Roseburia and unknown); additionally, CCREPE uniquely predicted positive edges between the Lachnospiraceae and Ruminococcaceae (genus: Faecalibacterium ). Both SPIEC-EASIterm·mth methods produce relatively sparse networks by comparison. S-E(glasso) infers a total of 271 total edges (with one unique edge), and S-E(MB) infers 206 edges with 25 unique edges. In scale with edge predictions, both CCREPE and SparCCterm·mth infer networks with large maximum degree (33 and 30, respectively), while the S-E(MB) and S-E(glasso) networks have a maximum degree of sixteen and eight, respectively ( S11 Fig ). However, even though CCREPE and SparCCterm·mth predict a similar number of total edges, the global network properties are distinct. CCREPE predicts a higher maximum betweenness centrality and a larger number of nodes in the largest connected component (100).
In summary, analysis of the AGPterm·dom networks suggests that the SPIEC-EASIterm·mth inference schemes construct more reproducible taxon-taxon interactions than SparCCterm·mth and CCREPE and infer considerably sparser model networks than the other two methods. These observations may be explained as follows: SparCCterm·mth and CCREPE aim to recover correlation networks, which contain both direct edges as well as indirect (e.g., spurious) edges (due to correlation alone). SparCCterm·mth and CCREPE may recover indirect edges less robustly than direct edges, an explanation that would be consistent with the Hamming distance reproducibility analysis. In addition, all methods’ resulting networks suggest that the topology of the American Gut association network cannot be attributed to a specific network class. Instead, these networks are a mixture of band, scale-free, and cluster network type, and they exhibit high phylogenetic assortativity within highly connected components.
Discussion Inferring interactions among different microbial species within a community and understanding their influence on the environment is of central importance in ecology and medicine [ 19 , 60 ]. An ever increasing number of recent amplicon-based sequencing studies have uncovered strong correlations between microbial community composition and environment in diverse and highly relevant domains of life [ 1 , 9 , 10 , 61 – 63 ]. These studies alone underscore the need to understand how the microbial communities adapt, develop, and interact with the environment [ 5 ]. Elucidation of species interactions in microbial communities across different environments remains, however, a formidable challenge. Foremost, available high-throughput experimental data are compositional in nature, overdispersed, and usually underdetermined with respect to statistical inference. In addition, for most microbes few to no ecological interactions are known, thus the ecological interaction network must be constructed de novo , in the absence of guiding assumptions and a set of “gold standard” interactions for validation.
To overcome both challenges, we present SPIEC-EASIterm·mth ( S parse I nvers E C ovariance Estimation for E cological A ssociation I nference), a computational framework that includes statistical methods for the inference of microbial ecological interactions from 16S rRNAterm·key gene sequencing datasets and a sophisticated synthetic microbiome data generator with controllable underlying species interaction topology. SPIEC-EASIterm·mth’s inference engine includes two well-known graphical modelterm·key estimators, neighborhood selectionterm·mth [ 20 ] and sparse inverse covarianceterm·key selection [ 22 , 23 , 46 ] that are extended by compositionally robust data transformations for application to the specific context of microbial abundance data.
The synthetic data pipeline was used to generate realistic-looking gut microbiome datasets for a controlled benchmark of SPIEC-EASIterm·mth’s inference performance relative to two state-of-the-art methods, SparCCterm·mth [ 17 ] and CCREPE [ 9 ]. We showed that neighborhood selectionterm·mth (S-E(MB)) outperforms SparCCterm·mth and CCREPE in terms of recovery of taxon-taxon interactions and global network topologyterm·var features under almost all tested benchmark scenarios, while covariance selection (S-E(glasso)) performs competitively with and sometimes better than SparCCterm·mth and CCREPE.
Through our simulation study, we demonstrate that several other factors, in addition to total number of samples, affect network recovery. Foremost and in agreement with theoretical results from high-dimensional statistics [ 29 , 30 , 39 ], network topologyterm·var has a significant impact, as network recovery performance is nearly doubled from scale-free to cluster to band ( Fig 4 ) for fixed sample size, number of taxa, and condition number. We also demonstrated dependence to strength of direct interactions (and thus strength of correlations) within a given network. Our simulation study provides the community with rough guidelines for requisite sample sizes, given state-of-the-art network inference and basic assumptions about the underlying network. This is of obvious importance to experimental design and the estimation of statistical power. Here, we used the synthetic data pipeline to generate datasets characteristic of the gut microbiome. However, the SPIEC-EASIterm·mth data generator is generic and therefore enables researchers to generate synthetic datasets that resemble microbiome samples in terms of taxa dispersion and marginal distributions from their field of research, such as soil or sea water ecosystems [ 1 ].
Our application study on real American Gut Projectterm·dom (AGPterm·dom) data revealed that inference with SPIEC-EASIterm·mth produced more consistent and sparser interaction networks than SparCCterm·mth and CCREPE. In addition, our AGPterm·dom network analysis revealed several biologically relevant observations. Specifically, we observed that OTUsterm·dom were more likely to interact with phylogenetically related OTUsterm·dom ( Fig 6c and S11 Fig ). In addition, our gut microbial interaction networks appear to be a composite of network types, as we find evidence for scale-free, band-like, and cluster subnetworks.
An important advantage of neighborhood and covariance selection as underlying inference frameworks is their ability to include prior knowledge about the underlying data or network structure from independent scientific studies in a principled manner. For example, in the neighborhood selectionterm·mth scheme, the standard LASSO approach can be augmented by a group penalty [ 64 ] that takes into account a priori known group structure. The assortativity observed in our gut microbial interaction networks suggests that such a grouping of OTUsterm·dom based on phylogenetic relationship might improve inference. Moreover, if verified species interactions are available for a certain microbial contexts, this knowledge can be included in covariance and neighborhood selectionterm·mth by relaxing the penalty term on these interactions. This strategy has already been fruitfully applied to inference of similarly high-dimensional transcriptional regulatory networks [ 65 ]. Finally, in agreement with theoretical and empirical work in high-dimensional statistics, our synthetic benchmark results confirmed that networks with scale-free structures elude accurate inference even if the underlying network is globally sparse. Recent modified neighborhood [ 30 ] and covariance selection [ 31 ] schemes improve recovery of scale-free networks and can be conveniently included into SPIEC-EASIterm·mth.
Finally, although the main focus of this work is inference of microbial interaction networks, estimation of the regularized inverse covarianceterm·key matrix with S-E(glasso) will be key to addressing several other important questions arising from microbiome studies. For example, statistical methods to infer which taxa are responsive to design factors in 16S gene amplicon studies is an active area of research. Most methods test each taxon independently one-at-a-time (see [ 56 ] and references therein) even though taxa are actually highly correlated and thought to ecologically interact. Inference of taxa responses from 16S rRNAterm·key gene sequencing datasets could be improved by modeling this correlation structure through incorporation of the inverse covarianceterm·key matrix into the statistical model [ 66 ].
Other, more complex questions are motivated by a desire to understand why and how ecosystems evolve with time. In the dynamic modeling setting, association networks have already been successfully used as an underlying structure to fit a differential-equation-based model of gut microbiome development in mice [ 14 ]. Thus, association networks provide the underlying topology for dynamic models, which can be used to develop hypotheses about how the ecosystems might respond to specific perturbations [ 5 ].
In conclusion, SPIEC-EASIterm·mth is an improvement over state-of-the-art methods for inference of microbial ecological networks from microbiome composition datasets. We demonstrate this through rigorous benchmarking with synthetic networks and also through application to a true biological dataset. In addition, the LASSO underpinnings of the SPIEC-EASIterm·mth inference methods provide a flexible and principled mathematical framework to incorporate additional information about microbial ecological association networks as it becomes available, thereby improving prediction. We anticipate that SPIEC-EASIterm·mth network inference will serve as a backbone for more sophisticated modeling endeavors, engendering new hypotheses and predictions of relevance to environmental ecology and medicine.
Supporting Information A discussion of the methods used to simulate biologically-plausible correlated count data, and some results comparing different generative distributions.
(PDF) Click here for additional data file.
Table to compare some of the features of SPIEC-EASIterm·mth, SparCCterm·mth, CCREPE and Pearson’s correlation coefficient.
(PDF) Click here for additional data file.
The recovery of empirical Pearson correlations generated from the NORTA process, using zero-inflated Negative Binomial as a model (x-axis) verses the input multivariate Normal empirical correlations (upper panels) or inverse correlations (lower panels) on untransformed counts ( a ) or log-transformed counts ( b ). Simulated data are with p = 205 OTUsterm·dom, n = 20,000 samples with 10 replicates on each plot.
(PDF) Click here for additional data file.
Visual comparison of American Gut Projectterm·dom data with synthetically generated datasets. Heatmaps show log10(counts). For all network types (band, graph, scale-free), synthetic datasets are consistent with real datasets in terms of number of OTUsterm·dom, number of samples, and OTUterm·dom count abundances across samples.
(PDF) Click here for additional data file.
The condition of a Precision matrix is the ratio of the largest to smallest eigenvalue/singular value. The relationship between condition number and correlation distribution for the synthetic networks; increasing condition number corresponds to increasing the strength of correlations in the network.
(PDF) Click here for additional data file.
Examples of betweenness centrality distributions for each network type (in white) overlayed with the distribution predicted by S-E(MB) (in orange) for κ = 100, n = 1360 samples, p = 205 OTUsterm·dom.
(PDF) Click here for additional data file.
Performance results for betweenness centrality (red = S-E(glasso) orange = S-E(MB), purple = SparCCterm·mth, blue = CCREPE, green = Pearson). Bars represent the average KL-divergence over three independent sets of synthetic datasets (7 datasets per set); error bars represent standard error. Asterisks indicate that an S-E method had siginificantly better recovery of the true betweenness centrality distributions ( p < 0.05 for one-sided T tests in comparison to each control method).
(PDF) Click here for additional data file.
Examples of geodesic distance distributions for each network type (in white) overlaid with the distribution predicted by S-E(MB) (in orange) for κ = 100, n = 1360 samples, p = 205 OTUsterm·dom (PDF) Click here for additional data file.
Performance results for geodesic distance distributions (red = S-E(glasso), orange = S-E(MB), purple = SparCCterm·mth, blue = CCREPE, green = Pearson). Bars represent the average KL-divergence over three independent sets of synthetic datasets (7 datasets per set); error bars represent standard error. Asterisks indicate that an S-E method had significantly better recovery of the true geodesic distance distributions ( p < 0.05 for one-sided T tests in comparison to each control method).
(PDF) Click here for additional data file.
Examples of cluster size distributions for each network type (in white) overlayed with the distribution predicted by S-E(MB) (in orange), for κ = 100, n = 1360 samples, p = 205 OTUsterm·dom.
(PDF) Click here for additional data file.
Performance results for cluster size distributions (red = S-E(glasso), orange = S-E(MB), purple = SparCCterm·mth, blue = CCREPE, green = Pearson). Bars represent the average KL-divergence over three independent sets of synthetic datasets (7 datasets per set); error bars represent standard error. Asterisks indicate that an S-E method had significantly better recovery of the true cluster size distributions ( P < 0.05 for one-sided T tests in comparison to each control method).
(PDF) Click here for additional data file.
Using the example data provided by the SparCCterm·mth package, we inferred networks from SparCCterm·mth (threshold correlation at ±.35), S-E(MB) and CCREPE (thresholding q-value at 5 * 10 −19 ). In this setting, SparCCterm·mth and SPIEC-EASIterm·mth correctly recover four true edges, including the association sign.
(PDF) Click here for additional data file.
Network assortativity coefficients at the Phyla and Family level for each of the four inference methods. Assortativity is a measure of the tendency for nodes to be connected with nodes of the same taxonomic class.
(PDF) Click here for additional data file.