Table of Contents Author Guidelines Submit a Manuscript
BioMed Research International
Volume 2015 (2015), Article ID 167249, 5 pages
http://dx.doi.org/10.1155/2015/167249
Research Article

mmnet: An R Package for Metagenomics Systems Biology Analysis

1Department of Biotechnology, Beijing Institute of Radiation Medicine, 27 Taiping Road, Haidian District, Beijing 100850, China
2Department of Biochemistry and Molecular Biology, Beijing Institute of Radical Medicine, 27 Taiping Road, Haidian District, Beijing 100850, China

Received 8 October 2014; Revised 8 March 2015; Accepted 17 April 2015

Academic Editor: Yunlong Liu

Copyright © 2015 Yang Cao et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

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 [35]. 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 [79].

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 -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: The topological properties calculated in the SSN.

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 where represents the abundance of enzyme in sample 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, . 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.

Figure 1: A typical analysis pipeline supported by the mmnet package.
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.

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.

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.

References

  1. The Human Microbiome Project Consortium, “A framework for human microbiome research,” Nature, vol. 486, no. 7402, pp. 215–221, 2012. View at Publisher · View at Google Scholar
  2. T. H. M. P. Consortium, “Structure, function and diversity of the healthy human microbiome,” Nature, vol. 486, no. 7402, pp. 207–214, 2012. View at Google Scholar
  3. Y. Soen, “Environmental disruption of host-microbe co-adaptation as a potential driving force in evolution,” Frontiers in Genetics, vol. 5, article 168, 2014. View at Publisher · View at Google Scholar · View at Scopus
  4. J. C. Clemente, L. K. Ursell, L. W. Parfrey, and R. Knight, “The impact of the gut microbiota on human health: an integrative view,” Cell, vol. 148, no. 6, pp. 1258–1270, 2012. View at Publisher · View at Google Scholar · View at Scopus
  5. F. Bäckhed, R. E. Ley, J. L. Sonnenburg, D. A. Peterson, and J. I. Gordon, “Host-bacterial mutualism in the human intestine,” Science, vol. 307, no. 5717, pp. 1915–1920, 2005. View at Publisher · View at Google Scholar · View at Scopus
  6. R. I. Amann, W. Ludwig, and K.-H. Schleifer, “Phylogenetic identification and in situ detection of individual microbial cells without cultivation,” Microbiological Reviews, vol. 59, no. 1, pp. 143–169, 1995. View at Google Scholar · View at Scopus
  7. S. Greenblum, P. J. Turnbaugh, and E. Borenstein, “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, vol. 109, no. 2, pp. 594–599, 2012. View at Publisher · View at Google Scholar · View at Scopus
  8. P. J. Turnbaugh, R. E. Ley, M. A. Mahowald, V. Magrini, E. R. Mardis, and J. I. Gordon, “An obesity-associated gut microbiome with increased capacity for energy harvest,” Nature, vol. 444, no. 7122, pp. 1027–1031, 2006. View at Publisher · View at Google Scholar · View at Scopus
  9. C. Manichanh, L. Rigottier-Gois, E. Bonnaud et al., “Reduced diversity of faecal microbiota in Crohn's disease revealed by a metagenomic approach,” Gut, vol. 55, no. 2, pp. 205–211, 2006. View at Publisher · View at Google Scholar · View at Scopus
  10. I. C. A. Lacerda, F. C. O. Gomes, B. M. Borelli 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, vol. 42, no. 2, pp. 650–657, 2011. View at Publisher · View at Google Scholar · View at Scopus
  11. J. Handelsman, M. R. Rondon, S. F. Brady, J. Clardy, and R. M. Goodman, “Molecular biological access to the chemistry of unknown soil microbes: a new frontier for natural products,” Chemistry & Biology, vol. 5, no. 10, pp. R245–R249, 1998. View at Publisher · View at Google Scholar · View at Scopus
  12. I. Cho and M. J. Blaser, “The human microbiome: at the interface of health and disease,” Nature Reviews Genetics, vol. 13, no. 4, pp. 260–270, 2012. View at Publisher · View at Google Scholar · View at Scopus
  13. J. Handelsman, “Metagenomics: application of genomics to uncultured microorganisms,” Microbiology and Molecular Biology Reviews, vol. 68, no. 4, pp. 669–685, 2004. View at Publisher · View at Google Scholar · View at Scopus
  14. E. Borenstein, “Computational systems biology and in silico modeling of the human microbiome,” Briefings in Bioinformatics, vol. 13, no. 6, pp. 769–780, 2012. View at Publisher · View at Google Scholar · View at Scopus
  15. R. Levy and E. Borenstein, “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, vol. 110, no. 31, pp. 12804–12809, 2013. View at Publisher · View at Google Scholar · View at Scopus
  16. M. Kanehisa and S. Goto, “KEGG: kyoto encyclopedia of genes and genomes,” Nucleic Acids Research, vol. 28, no. 1, pp. 27–30, 2000. View at Publisher · View at Google Scholar · View at Scopus
  17. R. L. Tatusov, E. V. Koonin, and D. J. Lipman, “A genomic perspective on protein families,” Science, vol. 278, no. 5338, pp. 631–637, 1997. View at Publisher · View at Google Scholar · View at Scopus
  18. F. Meyer, D. Paarmann, M. D'Souza et al., “The metagenomics RAST server—a public resource for the automatic phylogenetic and functional analysis of metagenomes,” BMC Bioinformatics, vol. 9, article 386, 2008. View at Publisher · View at Google Scholar · View at Scopus
  19. A. Wilke, T. Harrison, J. Wilkening et al., “The M5nr: a novel non-redundant database containing protein sequences and annotations from multiple sources and associated tools,” BMC Bioinformatics, vol. 13, no. 1, article 141, 2012. View at Publisher · View at Google Scholar · View at Scopus
  20. D. McDonald, J. C. Clemente, J. Kuczynski et al., “The Biological Observation Matrix (BIOM) format or: how I learned to stop worrying and love the ome-ome,” GigaScience, vol. 1, no. 1, p. 7, 2012. View at Publisher · View at Google Scholar
  21. P. Shannon, A. Markiel, O. Ozier et al., “Cytoscape: a software environment for integrated models of biomolecular interaction networks,” Genome Research, vol. 13, no. 11, pp. 2498–2504, 2003. View at Publisher · View at Google Scholar · View at Scopus
  22. P. T. Shannon, M. Grimes, B. Kutlu, J. J. Bot, and D. J. Galas, “RCytoscape: rools for exploratory network analysis,” BMC Bioinformatics, vol. 14, no. 1, article 217, 2013. View at Publisher · View at Google Scholar · View at Scopus