Abstract
The human microbiome plays important roles in human health and disease. Previous microbiome studies focused mainly on single pure species function and overlooked the interactions in the complex communities on system-level. A metagenomic approach introduced recently integrates metagenomic data with community-level metabolic network modeling, but no comprehensive tool was available for such kind of approaches. To facilitate these kinds of studies, we developed an R package, mmnet, to implement community-level metabolic network reconstruction. The package also implements a set of functions for automatic analysis pipeline construction including functional annotation of metagenomic reads, abundance estimation of enzymatic genes, community-level metabolic network reconstruction, and integrated network analysis. The result can be represented in an intuitive way and sent to Cytoscape for further exploration. The package has substantial potentials in metagenomic studies that focus on identifying system-level variations of human microbiome associated with disease.
1. Introduction
The human microbiome has been proved to play a key role in human health and disease. Various microorganisms species along with wide range of interactions among them structure the microbial communities as inherently complex ecosystems across different human body sites, such as gut, oral cavity, and skin [1, 2]. The microbes in our bodies are crucial for human life, having profound influence on human physiology and health [3–5]. Most of these microbes are still unculturable and uncharacterized [6]. Furthermore, dynamic shifts in microbial community structure will change the immunity and metabolic function and cause various diseases, including obesity, inflammatory bowel disease (IBD), and Crohn's disease [7–9].
Traditional culture-dependent methods are restricted by the small number of cultured species and often fail to describe the less abundant species [10]. To address this challenge, metagenomics (defined as environmental and community genomics), a culture-independent technology, has been developed and widely used for microbial community analysis [11]. Specifically, unlike the initial capillary sequence-based or PCR-based metagenomic approaches, high-throughput metagenomic approaches based on next generation sequencing (NGS) make metagenomic analysis more sensitive, broader, and cheaper, providing critical insights into microbe-host interaction in large scale [12, 13].
A key challenge of applying metagenomics to microbial community is metabolic network reconstruction from metagenomic data. Previous studies focused mainly on the “parts list” of the microbiome and overlooked the interactions in the complex communities on system-level [14, 15]. However, an integrated approach to reconstruct the metabolic network by integrating metagenomic data with genome-scale metabolic modeling was introduced recently [7]. This metagenomic system biology method serves the entire microbiome as a single superorganism and utilizes the computational systems biology and complex network theory, providing comprehensive systems-level understanding of the microbiome by integrating metagenomic data with genome-scale metabolic modeling. However, there is no comprehensive tool available for such kind of approaches. Here, we present an open source R package named mmnet to implement community-level metabolic network reconstruction. Moreover, mmnet implements a set of functions to construct an automatic pipeline from functional annotation of metagenomic reads to integrated network analysis. The result can be represented in an intuitive way and sent to Cytoscape for further exploration. The source code is published under GNU GPLv2 license and is freely available on the Bioconductor project (http://www.bioconductor.org/packages/devel/bioc/html/mmnet.html).
2. Methods and Implementation
2.1. Methods
Metagenomic Sequence Reads Annotation. To assess the functional capacity of microbial community, metagenomic sequence reads need alignment to a database of known genes and can be achieved with several well-characterized functional databases including KEGG orthology (KO) [16] and COGs [17]. The MG-RAST [18], a stable, extensible, online metagenomics analysis platform, is well maintained and provides a RESTful web API (Application Programming Interface) http://api.metagenomics.anl.gov/api.html. In this package, we annotate metagenomic reads by calling the RESTful web API of MG-RAST with R package Rcurl. If the metagenomic sequences have been annotated on MG-RAST, it will return the corresponding metagenome ID that already exists in MG-RAST without duplicated annotation.
Enzymatic Gene Abundances Estimation. M5NR [19], MG-RAST uses to annotate sequences, is an integration of many sequence databases into one single comprehensive, searchable database including most common functional databases like KO, EBI, and SEED. Once metagenomic sequences were annotated, KO information was filtered and extracted in the annotation profile from MG-RAST for subsequent metabolic network reconstruction. Enzymatic genes abundances can be estimated according to the following guidelines. (1) The count for the sequence matched a single reference sequence that had been annotated with more than one KO split evenly between all the KO annotations. (2) The count for the sequence matched more than one KO-annotated reference sequence with the same e-value split evenly between KOs of all matched reference sequences. Relative abundances of enzymatic genes in each sample can be finally computed by normalizing the counts of the reads for each KO with the total number of reads of enzymatic genes accounting for the different sample depths.
System-Level Metabolic Network Construction. A system-level metabolic network was constructed from the entire enzymatic genes (KO) in any sample. Reference metabolic data used to construct metabolic network, which consists of KO id and metabolic reactions, was obtained by phasing KEGG metabolic pathway dataset using KEGG REST API. Each enzyme may be associated with multiple reactions, and each reaction may be associated with multiple enzymes. In this metabolic network, enzymes are connected with directed edges, and a directed edge from enzyme A to enzyme B indicates that a product metabolite of a reaction catalyzed by enzyme A is a substrate metabolite of a reaction catalyzed by enzyme B.
To examine whether enzymes that are associated with a specific host state exhibit some topological features in the SSN, we calculated most common topological properties (Table 1) of each node in the network.
Table 1.
Topological features | Description |
---|---|
Betweenness centrality | The fraction of shortest paths between node pairs that pass through the node |
| |
Clustering coefficient | The number of triangles (3 loops) that pass through this node |
| |
PageRank | The number and PageRank metric of all nodes that link to the node |
| |
Degree | The number of edges connected to the node |
Metabolic Network Analysis. Comparing the abundances of enzymatic genes in different samples (e.g., disease and healthy samples) can reveal enzymes associated with specific host state. The package mmnet implements three methods to measure the differential abundance between different samples, including odds ratio (OR), RANK, and Jensen-Shannon Diverge (JSD). First, OR was calculated according to
(1) |
where A sk represents the abundance of enzyme k in sample s and state1 and state2 represent two types of samples with different state. The differential abundance score was defined as the absolute value of the fold change in OR, abs[log2(OR)]. Once method RANK was selected, the enzyme abundances were ranked within each sample from most abundant to least abundant first. The difference abundance score was then measured with the difference between the mean ranks of samples in different state. Finally, users can examine the divergence using the Jensen-Shannon divergence algorithm to quantify the differential abundance score between samples in different state.
2.2. Implementation
A typical analysis pipeline for metagenomic systems biology supported by this package (Figure 1) starts with functional annotation and abundance estimation, then state specific network (SSN) construction, and finally topological and differential network analysis. mmnet is released as an R package including seven main functions (Figure 1): constructSSN, submitMgrastJob, estimateAbundance, updateKEGGPathway, constructMetabolicNetwork, topologicalAnalyzeNet, and differentialAnalyzeNet. All of these functions will be introduced as follows.
2.2.1. Metagenomic Sequence Reads Annotation
submitMgrastJob is used for metagenomic sequence reads annotation on MG-RAST. Before sequence annotation, users should log in into MG-RAST first. Acceptable sequence data can be in FASTA, FASTQ, or SFF format. A MG-RAST ID represents that the annotation data is returned by this function. Then annotation profile will be obtained using function getMgrastAnnotation which takes the MG-RAT ID as input. The output is a data-frame in which one row corresponds to one KO annotation information.
2.2.2. Estimating the Abundance of Enzymatic Genes
estimateAbundance is to estimate the abundances of enzymatic genes in the annotation profile mentioned above. As a result, a Biological Observation Matrix (BIOM) [20] file format, which is designed to be a general-use format for representing biological sample by observation contingency tables, is returned to encode enzymatic gene abundance profiles.
2.2.3. Building a Local KEGG Dataset
updateKEGGPathway is used to build or update a local KEGG metabolic dataset for improving the efficiency of analysis and avoiding frequently repeated data downloads. This function is provided in mmnet package for users to build and update a local version of KEGG metabolic pathway dataset. The local metabolic data named RefDbcache is saved in the “∖.mmnet” subdirectory under user-specified folder, default under the user's home directory.
2.2.4. Making the Reference Metabolic Network
constructMetabolicNetwork is used for construction of the reference metabolic network based on the metabolic reaction relationships in KEGG metabolic pathway dataset. A prebuilt reference metabolic network of class igraph has been integrated in mmnet package, so that the rebuilding of the network is unnecessary unless there are updates on the KEGG metabolic pathways.
2.2.5. Construction of STATE Specific Networks
constructSSN is designed to construct a SSN by calling function constructMetabolicNetwork. Its input is an abundance profile of a sample and the output is subnetworks of the reference network composed of only the enzymatic genes identified from samples in a given biological state. This network is also of class igraph. In addition, the abundances of enzymatic genes are taken as node attributes in the SSN. The resulting SSNs can be seamlessly analyzed in R environment by built-in functions or in Cytoscape [21] by utilizing RCytoscape package [22].
2.2.6. Topological Analysis of SSN
topologicalAnalyzeNet is to compute and illustrate the correlations between the topological properties of enzymatic genes and their abundances (Figure 1(a)). The input of the function is a single SSN. The output is also an igraph, in which all the calculated topological properties of nodes in SSN are stored as node's attributes and can be exported for further analysis.
2.2.7. Differential Analysis of SSN
Differential AnalyzeNet is to calculate the differential abundance score of metabolic networks with different states. The function takes a list of SSNs as input and outputs a community-level metabolic network in which the significantly enriched or depleted enzymes are marked by colors (Figure 1(b)).
More detailed description of these functions and the package instructions is referred to in reference manual http://www.bioconductor.org/packages/devel/bioc/vignettes/mmnet/inst/doc/mmnet.pdf.
3. Results
To illustrate the analysis pipeline made by this package, we use a part of the public dataset containing 18 microbiomes from 6 obese and lean monozygotic twin pairs and their mothers [8]. 454 FLX pyrosequencer was used to carry out deep metagenomic shotgun sequencing of total fecal community DNA of 18 obese or lean samples. These metagenomic sequences have been annotated on MG-RAST, and the annotated data is available in MG-RAST. Thus, we downloaded the annotation profiles of these samples using getMgrastAnnotation directly without submitting a MG-RAST job. Apparently, users can annotate the sequenced metagenomic reads using function submitMgrastJob manually. For example, one of twin pairs (mgm4440616.3 and mgm4440824.3) and the function annotations can be accessed as follows:
-
source(" http://bioconductor.org/biocLite.R ")
-
biocLite("mmnet")
-
library(mmnet)
-
pid <- c("4440616.3","4440824.3")
-
names(pid) <- c("obese", "lean")
-
annot <- lapply(pid,
-
getMgrastAnnotation)
The relative abundances of enzymatic genes in the two samples were estimated from the functional annotations, and then the corresponding SSNs were built. For these two samples, 1345 KOs were identified in total. The correlation coefficient tested with Pearson's method is 0.92, which indicated that the relative enzymatic gene abundance across these two samples was highly concordant:
-
abund <- estimateAbundance(annot)
-
ssn <- constructSSN(abund)
Based on the SSNs, we intuitively explored the correlations between the topological features of enzyme in the SSN and their abundance (Figure 1(a)) and performed differential network analysis to identify potential enzymes associated with obese (Figure 1(b)). After differential metabolic network analysis, enzymatic genes that are associated with specific state appear as colored nodes (red = enriched and green = depleted):
-
lapply(ssn, topologicalAnalyzeNet)
-
differentialAnalyzeNet(ssn, sample.
-
state = names(pid))
Notably, only two samples were taken for testing mmnet accounting for saving computing resources and time; the results will be more meaningful when more samples were tooken for analysis.
4. Conclusions
The metagenomic approach on metabolic network provides a system-level understanding of the microbiome and gains insight into variation in metabolic capacity. It is very useful for studying the metabolic activity and specifically complex inherent interactions by serving the microbial community as a single supraorganism. In this paper, we present the mmnet package to support metagenomic network reconstruction as an integrated way in R environment and to build automatic pipelines running from metagenomic sequencing reads to community-level metabolic network. This package has substantial potentials for community metabolism analysis.
Acknowledgments
National Major Science and Technology Special Projects for New Drugs (2013ZX09304101), National Major Science and Technology Special Projects for Infectious Diseases (2013ZX10004216), National Key Technologies R&D Program for New Drugs (2012ZX09301-003), National Science & Technology Pillar Program of China (2012BAI29B07), and National Nature Science Foundation of China (81102419). The authors thank Dr. Folker Meyer for kind response about the usages of MG-RAST API.
Availability and Requirements
-
project name: mmnet;
-
project home page: http://www.bioconductor.org/packages/devel/bioc/html/mmnet.html;
-
operating system(s): platform independent;
-
programming language: R;
-
other requirements: R 3.1.0 or higher;
-
license: GNU GPLv2;
-
any restrictions to use by nonacademics: none.
Conflict of Interests
The authors declare that they have no conflict of interests.
Authors' Contribution
Yang Cao implemented the package and wrote the user manual. Fei Li designed the structure and interface of the software and drafted the paper. Xiaofei Zheng, Xiaochen Bo participated in the design of the package and helped to draft the paper. All authors read and approved the final paper.
References
- 1.The Human Microbiome Project Consortium. A framework for human microbiome research. Nature. 2012;486(7402):215–221. doi: 10.1038/nature11209. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Consortium T. H. M. P. Structure, function and diversity of the healthy human microbiome. Nature. 2012;486(7402):207–214. doi: 10.1038/nature11234. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Soen Y. Environmental disruption of host-microbe co-adaptation as a potential driving force in evolution. Frontiers in Genetics. 2014;5, article 168 doi: 10.3389/fgene.2014.00168. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 4.Clemente J. C., Ursell L. K., Parfrey L. W., Knight R. The impact of the gut microbiota on human health: an integrative view. Cell. 2012;148(6):1258–1270. doi: 10.1016/j.cell.2012.01.035. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Bäckhed F., Ley R. E., Sonnenburg J. L., Peterson D. A., Gordon J. I. Host-bacterial mutualism in the human intestine. Science. 2005;307(5717):1915–1920. doi: 10.1126/science.1104816. [DOI] [PubMed] [Google Scholar]
- 6.Amann R. I., Ludwig W., Schleifer K.-H. Phylogenetic identification and in situ detection of individual microbial cells without cultivation. Microbiological Reviews. 1995;59(1):143–169. doi: 10.1128/mr.59.1.143-169.1995. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Greenblum S., Turnbaugh P. J., Borenstein E. Metagenomic systems biology of the human gut microbiome reveals topological shifts associated with obesity and inflammatory bowel disease. Proceedings of the National Academy of Sciences of the United States of America. 2012;109(2):594–599. doi: 10.1073/pnas.1116053109. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Turnbaugh P. J., Ley R. E., Mahowald M. A., Magrini V., Mardis E. R., Gordon J. I. An obesity-associated gut microbiome with increased capacity for energy harvest. Nature. 2006;444(7122):1027–1031. doi: 10.1038/nature05414. [DOI] [PubMed] [Google Scholar]
- 9.Manichanh C., Rigottier-Gois L., Bonnaud E., et al. Reduced diversity of faecal microbiota in Crohn's disease revealed by a metagenomic approach. Gut. 2006;55(2):205–211. doi: 10.1136/gut.2005.073817. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Lacerda I. C. A., Gomes F. C. O., Borelli B. M., et al. Identification of the bacterial community responsible for traditional fermentation during sour cassava starch, cachaça and minas cheese production using cultureindependent 16s rrna gene sequence analysis. Brazilian Journal of Microbiology. 2011;42(2):650–657. doi: 10.1590/s1517-83822011000200029. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 11.Handelsman J., Rondon M. R., Brady S. F., Clardy J., Goodman R. M. Molecular biological access to the chemistry of unknown soil microbes: a new frontier for natural products. Chemistry & Biology. 1998;5(10):R245–R249. doi: 10.1016/s1074-5521(98)90108-9. [DOI] [PubMed] [Google Scholar]
- 12.Cho I., Blaser M. J. The human microbiome: at the interface of health and disease. Nature Reviews Genetics. 2012;13(4):260–270. doi: 10.1038/nrg3182. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 13.Handelsman J. Metagenomics: application of genomics to uncultured microorganisms. Microbiology and Molecular Biology Reviews. 2004;68(4):669–685. doi: 10.1128/mmbr.68.4.669-685.2004. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Borenstein E. Computational systems biology and in silico modeling of the human microbiome. Briefings in Bioinformatics. 2012;13(6):769–780. doi: 10.1093/bib/bbs022. [DOI] [PubMed] [Google Scholar]
- 15.Levy R., Borenstein E. Metabolic modeling of species interaction in the human microbiome elucidates community-level assembly rules. Proceedings of the National Academy of Sciences of the United States of America. 2013;110(31):12804–12809. doi: 10.1073/pnas.1300926110. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Kanehisa M., Goto S. KEGG: kyoto encyclopedia of genes and genomes. Nucleic Acids Research. 2000;28(1):27–30. doi: 10.1093/nar/28.1.27. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Tatusov R. L., Koonin E. V., Lipman D. J. A genomic perspective on protein families. Science. 1997;278(5338):631–637. doi: 10.1126/science.278.5338.631. [DOI] [PubMed] [Google Scholar]
- 18.Meyer F., Paarmann D., D'Souza M., et al. The metagenomics RAST server—a public resource for the automatic phylogenetic and functional analysis of metagenomes. BMC Bioinformatics. 2008;9, article 386 doi: 10.1186/1471-2105-9-386. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Wilke A., Harrison T., Wilkening J., et al. The M5nr: a novel non-redundant database containing protein sequences and annotations from multiple sources and associated tools. BMC Bioinformatics. 2012;13(1, article 141) doi: 10.1186/1471-2105-13-141. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.McDonald D., Clemente J. C., Kuczynski J., et al. The Biological Observation Matrix (BIOM) format or: how I learned to stop worrying and love the ome-ome. GigaScience. 2012;1(1):p. 7. doi: 10.1186/2047-217x-1-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Shannon P., Markiel A., Ozier O., et al. Cytoscape: a software environment for integrated models of biomolecular interaction networks. Genome Research. 2003;13(11):2498–2504. doi: 10.1101/gr.1239303. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Shannon P. T., Grimes M., Kutlu B., Bot J. J., Galas D. J. RCytoscape: rools for exploratory network analysis. BMC Bioinformatics. 2013;14(1, article 217) doi: 10.1186/1471-2105-14-217. [DOI] [PMC free article] [PubMed] [Google Scholar]