CoChat

The best practice for microbiome analysis using R

Open access
Wen, Tao, Niu, Guoqing, Chen, Tong, Shen, Qirong, Yuan, Jun, Liu, Yong-Xin · 2023 · Protein & Cell

The DOI matches its Crossref record; 64 of the 65 references it cites were found in a registry or an index.

Abstract

With the gradual maturity of sequencing technology, many microbiome studies have published, driving the emergence and advance of related analysis tools. R language is the widely used platform for microbiome data analysis for powerful functions. However, tens of thousands of R packages and numerous similar analysis tools have brought major challenges for many researchers to explore microbiome data. How to choose suitable, efficient, convenient, and easy-to-learn tools from the numerous R packages has become a problem for many microbiome researchers. We have organized 324 common R packages for microbiome analysis and classified them according to application categories (diversity, difference, biomarker, correlation and network, functional prediction, and others), which could help researchers quickly find relevant R packages for microbiome analysis. Furthermore, we systematically sorted the integrated R packages (phyloseq, microbiome, MicrobiomeAnalystR, Animalcules, microeco, and amplicon) for microbiome analysis, and summarized the advantages and limitations, which will help researchers choose the appropriate tools. Finally, we thoroughly reviewed the R packages for microbiome analysis, summarized most of the common analysis content in the microbiome, and formed the most suitable pipeline for microbiome analysis. This paper is accompanied by hundreds of examples with 10,000 lines codes in GitHub, which can help beginners to learn, also help analysts compare and test different tools. This paper systematically sorts the application of R in microbiome, providing an important theoretical basis and practical reference for the development of better microbiome tools in the future. All the code is available at GitHub github.com/taowenmicro/EasyMicrobiomeR.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1093/procel/pwad024

Cites

64 of 64 references verified0 citation errors · 0 not checkable

Statistics

Figures

Graphical Abstract
Graphical Abstract CC BY · PubMed Central
Figure 1. Microbial community data analysis workflow and related R packages. (A) Overview of microbial community data analysis workflow. Core files are feature table (OTU), Taxonomy, sample metadata (Metadata), phylogenetic tree (Tree), and representative sequences (Rep.fa). (B) Detail of microbial community analysis workflow. First, the raw data can be processed by using USEARCH/VSEARCH, QIIME 2, DADA2 packages. Then, the important files are saved and used for downstream analysis in R language and RStudio software. Many microbial analysis methods rely on numerous R packages developed with R language. The font size in the word cloud represents the number of citations of R packages. (C) Commonly used R packages for data-cleaning/manipulation and visualization. (D) Classification of R packages for six categories in microbial community analysis.
Figure 1. Microbial community data analysis workflow and related R packages. (A) Overview of microbial community data analysis workflow. Core files are feature table (OTU), Taxonomy, sample metadata (Metadata), phylogenetic tree (Tree), and representative sequences (Rep.fa). (B) Detail of microbial community analysis workflow. First, the raw data can be processed by using USEARCH/VSEARCH, QIIME 2, DADA2 packages. Then, the important files are saved and used for downstream analysis in R language and RStudio software. Many microbial analysis methods rely on numerous R packages developed with R language. The font size in the word cloud represents the number of citations of R packages. (C) Commonly used R packages for data-cleaning/manipulation and visualization. (D) Classification of R packages for six categories in microbial community analysis.CC BY · PubMed Central
Figure 2. Introduction to the functions of integrated microbial analysis R packages. Microbial community analysis can be divided into diversity analysis, difference analysis, biomarker identification, correlation and network analysis, functional prediction, and other microbial community analysis (community building/construction process, association analysis with other indicators).
Figure 2. Introduction to the functions of integrated microbial analysis R packages. Microbial community analysis can be divided into diversity analysis, difference analysis, biomarker identification, correlation and network analysis, functional prediction, and other microbial community analysis (community building/construction process, association analysis with other indicators).CC BY · PubMed Central
Figure 3. Typical results of integrated microbial community analysis R packages and comparison of similar results. Group the analysis results of multiple integrated R packages according to the major categories of microbial community analysis functions. Each main branch in the tree diagram represents a type of microbial community analysis, and there are a total of 10 main branches: feature diversity analysis including (i) alpha diversity analysis, (ii) beta diversity analysis, (iii) features (community taxonomic or functional) composition analysis, (iv) evolutionary or taxonomic tree analysis; (v) difference analysis; (vi) biomarker identification; (vii) correlation and network analysis; (viii) functional prediction; (ix) community building/construction process analysis; (x) other analysis, such as association analysis with other indicators. Each leaf (circle) represents a style of the result displayed in the analysis, and the circle number around the outside of leaf represents the package number of the integrated R package that the analysis result comes from.
Figure 3. Typical results of integrated microbial community analysis R packages and comparison of similar results. Group the analysis results of multiple integrated R packages according to the major categories of microbial community analysis functions. Each main branch in the tree diagram represents a type of microbial community analysis, and there are a total of 10 main branches: feature diversity analysis including (i) alpha diversity analysis, (ii) beta diversity analysis, (iii) features (community taxonomic or functional) composition analysis, (iv) evolutionary or taxonomic tree analysis; (v) difference analysis; (vi) biomarker identification; (vii) correlation and network analysis; (viii) functional prediction; (ix) community building/construction process analysis; (x) other analysis, such as association analysis with other indicators. Each leaf (circle) represents a style of the result displayed in the analysis, and the circle number around the outside of leaf represents the package number of the integrated R package that the analysis result comes from.CC BY · PubMed Central
Figure 4. Examples of the best practice results of microbial community analysis in R language. The selected results include rarefaction curve (A), principal coordinate analysis scatter plot (B), Venn network graph (C), evolutionary tree (D), LEfSe cladogram (E), difference analysis extended error bar plot in STAMP style (F), difference analysis Manhattan plot (G), difference analysis multi-group volcano plot (H), biomarker selection ring-column chart (I), network graph (J), correlation connection combination graph (K), source tracing analysis pie chart (L).
Figure 4. Examples of the best practice results of microbial community analysis in R language. The selected results include rarefaction curve (A), principal coordinate analysis scatter plot (B), Venn network graph (C), evolutionary tree (D), LEfSe cladogram (E), difference analysis extended error bar plot in STAMP style (F), difference analysis Manhattan plot (G), difference analysis multi-group volcano plot (H), biomarker selection ring-column chart (I), network graph (J), correlation connection combination graph (K), source tracing analysis pie chart (L).CC BY · PubMed Central

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 7

  1. Dimitriadou E, Hornik K, Leisch F et al. Misc functions of the Department of Statistics (e1071), TU Wien. R Package 2008; 1: 5– 24.
  2. Dray S, Blanchet G, Borcard D et al. Package ‘adespatial’. R Package 2018; 1: 3– 8.
  3. Harrell Jr FE, Harrell Jr MFE. Package ‘hmisc’. CRAN2018 2019; 2019: 235– 236.
  4. Oksanen J, Kindt R, Legendre P et al. The vegan package. Community Ecol Package 2007; 10: 719.
  5. Pages H, Aboyoun P, Gentleman R et al. Biostrings: string objects representing biological sequences, and matching algorithms. R Package Version 2016; 2: 10.18129.
  6. Revelle W, Revelle MW. Package ‘psych’. The Compr R Archive Netw 2015; 337: 338.
  7. Ripley B, Venables B, Bates DM et al. Package ‘mass’. Cran R 2013; 538: 113– 120.

Cited by

See all 147

Metadata

Authors
Wen, T., Niu, G., Chen, T., Shen, Q., Yuan, J., & Liu, Y.-X.
Affiliations
  • Nanjing Agricultural University (CN)
  • China Academy of Chinese Medical Sciences (CN)
  • Shenzhen Branch, Guangdong Laboratory of Lingnan Modern Agriculture, Genome Analysis Laboratory of the Ministry of Agriculture and Rural Affairs, Agricultural Genomics Institute at Shenzhen, Chinese Academy of Agricultural Sciences , Shenzhen 518120 , China
Corresponding author
Yuan, Jun
Venue
Protein & Cell
Published
2023-05-02
Volume
14
Issue
10
Pages
713-725
ISSN
  • 1674-800X (ISSN-L)
  • 1674-8018
OpenAlex
W4367669005
Cited by
139
References
65
Citations by year
2026: 37 · 2025: 52 · 2024: 43 · 2023: 7
FWCI
12.39
Type
journal article
Language
en
Open access
Locations
  • Protein & Cell (publishedVersion, cc-by)
  • PubMed Central (publishedVersion, cc-by)
  • PubMed (publishedVersion)
Funders
  • Agricultural Science and Technology Innovation Program (CAAS-ZDRW202308)
  • Natural Science Foundation of China (42277297, 42090060, U21A20182)
  • Jiangsu Funding Program for Excellent Postdoctoral Talent (2022ZB325)
  • Scientific and Technology Innovation Project
  • China Academy of Chinese Medical Sciences (C12021A04115)
  • Fundamental Research Funds
  • Central Public Welfare Research Institutes (ZZ13-YQ-095)
Topics
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Genomics and Phylogenetic Studies
  • Life Sciences › Biochemistry, Genetics and Molecular Biology › Molecular Biology › Gut microbiota and health
  • Physical Sciences › Environmental Science › Ecology › Microbial Community Ecology and Physiology
Keywords
microbiome analysis, R package, phyloseq, diversity analysis, biomarker discovery, microbial network analysis, functional prediction
MeSH terms
Language, Software, Sequence Analysis, DNA, Microbiota

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.