1. Introduction

MicrobiotaProcess is an R package for analysis, visualization and biomarker discovery of microbial datasets. It supports the import of microbiome census data, calculating alpha index and provides functions to visualize rarefaction curves. Moreover, it also supports visualizing the abundance of taxonomy of samples. And It also provides functions to perform the PCA, PCoA and hierarchical cluster analysis. In addition, MicrobiotaProcess also provides a method for the biomarker discovery of metagenome or other datasets.

2. MicrobiotaProcess profiling

2.1 import function

MicrobiotaProcess has an feature to import phylogenetic sequencing data from dada2(Callahan et al. 2016) and qiime2(Bolyen et al. 2019) taxonomic clustering pipelines. The resulting object after import is phyloseq object(McMurdie and Holmes 2013)

## phyloseq-class experiment-level object
## otu_table()   OTU Table:         [ 232 taxa and 19 samples ]
## sample_data() Sample Data:       [ 19 samples by 2 sample variables ]
## tax_table()   Taxonomy Table:    [ 232 taxa by 7 taxonomic ranks ]
## refseq()      DNAStringSet:      [ 232 reference sequences ]
## phyloseq-class experiment-level object
## otu_table()   OTU Table:         [ 138 taxa and 87 samples ]
## sample_data() Sample Data:       [ 87 samples by 23 sample variables ]
## tax_table()   Taxonomy Table:    [ 138 taxa by 8 taxonomic ranks ]
## refseq()      DNAStringSet:      [ 138 reference sequences ]

2.2 Rarefaction visualization

Rarefaction, based on sampling technique, was used to compensate for the effect of sample size on the number of units observed in a sample(Siegel 2004). MicrobiotaProcess provided ggrarecurve to plot the curves, based on rrarefy of vegan(Oksanen et al. 2019).

2.3 calculate alpha index and visualization

MicrobiotaProcess provides get_alphaindex to calculate alpha index and the ggbox to visualize the result

##        Observe     Chao1       ACE  Shannon   Simpson         J sample  time
## F3D0       102 102.10000 102.57080 3.822501 0.9633082 0.8264916   F3D0 Early
## F3D1        99  99.14286  99.48498 3.991029 0.9709703 0.8685363   F3D1 Early
## F3D141      74  74.00000  74.00000 3.463816 0.9517886 0.8047779 F3D141  Late
## F3D142      48  48.00000  48.00000 3.116764 0.9386549 0.8051155 F3D142  Late
## F3D143      56  56.00000  56.00000 3.292717 0.9464422 0.8179949 F3D143  Late
## F3D144      47  47.00000  47.00000 2.989304 0.9306528 0.7764129 F3D144  Late

2.4 The visualization of taxonomy abundance

MicrobiotaProcess presents the ggbartax for the visualization of composition of microbial communities.

If you want to get the abundance of specific levels of class, You can use get_taxadf then use ggbartax to visualize.

Moreover, the abundance (count) of taxonomy also can be visualized by setting count to TRUE, and the facet of plot can be showed by setting the facetNames.

2.5 PCA and PCoA analysis

PCA (Principal component analysis) and PCoA (Principal Coordinate Analysis) are general statistical procedures to compare groups of samples. And PCoA can based on the phylogenetic or count-based distance metrics, such as Bray-Curtis, Jaccard, Unweighted-UniFrac and weighted-UniFrac. MicrobiotaProcess presents the get_pca, get_pcoa and ggordpoint for the analysis.

3. Need helps?

If you have questions/issues, please visit github issue tracker.

4. Session information

Here is the output of sessionInfo() on the system on which this document was compiled:

## R version 4.0.2 (2020-06-22)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 18.04.4 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.11-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.11-bioc/R/lib/libRlapack.so
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=C              
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
##  [1] MicrobiotaProcess_1.0.5 tidytree_0.3.3          treeio_1.12.0          
##  [4] ggtree_2.2.4            phyloseq_1.32.0         forcats_0.5.0          
##  [7] stringr_1.4.0           dplyr_1.0.1             purrr_0.3.4            
## [10] readr_1.3.1             tidyr_1.1.1             tibble_3.0.3           
## [13] tidyverse_1.3.0         DT_0.15                 ggplot2_3.3.2          
## 
## loaded via a namespace (and not attached):
##   [1] TH.data_1.0-10      colorspace_1.4-1    ggsignif_0.6.0     
##   [4] modeltools_0.2-23   ellipsis_0.3.1      XVector_0.28.0     
##   [7] fs_1.5.0            aplot_0.0.5         rstudioapi_0.11    
##  [10] farver_2.0.3        ggrepel_0.8.2       bit64_4.0.2        
##  [13] mvtnorm_1.1-1       fansi_0.4.1         lubridate_1.7.9    
##  [16] coin_1.3-1          xml2_1.3.2          codetools_0.2-16   
##  [19] splines_4.0.2       libcoin_1.0-5       knitr_1.29         
##  [22] ade4_1.7-15         jsonlite_1.7.0      broom_0.7.0        
##  [25] cluster_2.1.0       dbplyr_1.4.4        rentrez_1.2.2      
##  [28] BiocManager_1.30.10 compiler_4.0.2      httr_1.4.2         
##  [31] rvcheck_0.1.8       backports_1.1.8     assertthat_0.2.1   
##  [34] Matrix_1.2-18       lazyeval_0.2.2      cli_2.0.2          
##  [37] htmltools_0.5.0     tools_4.0.2         igraph_1.2.5       
##  [40] gtable_0.3.0        glue_1.4.1          reshape2_1.4.4     
##  [43] fastmatch_1.1-0     Rcpp_1.0.5          Biobase_2.48.0     
##  [46] cellranger_1.1.0    vctrs_0.3.2         Biostrings_2.56.0  
##  [49] multtest_2.44.0     ape_5.4             nlme_3.1-148       
##  [52] DECIPHER_2.16.1     iterators_1.0.12    xfun_0.16          
##  [55] Rmisc_1.5           rvest_0.3.6         lifecycle_0.2.0    
##  [58] phangorn_2.5.5      gtools_3.8.2        XML_3.99-0.5       
##  [61] zoo_1.8-8           zlibbioc_1.34.0     MASS_7.3-51.6      
##  [64] scales_1.1.1        hms_0.5.3           sandwich_2.5-1     
##  [67] parallel_4.0.2      biomformat_1.16.0   rhdf5_2.32.2       
##  [70] yaml_2.2.1          memoise_1.1.0       reshape_0.8.8      
##  [73] stringi_1.4.6       RSQLite_2.2.0       S4Vectors_0.26.1   
##  [76] randomForest_4.6-14 foreach_1.5.0       permute_0.9-5      
##  [79] BiocGenerics_0.34.0 matrixStats_0.56.0  rlang_0.4.7        
##  [82] pkgconfig_2.0.3     evaluate_0.14       lattice_0.20-41    
##  [85] Rhdf5lib_1.10.1     labeling_0.3        patchwork_1.0.1    
##  [88] htmlwidgets_1.5.1   bit_4.0.4           tidyselect_1.1.0   
##  [91] plyr_1.8.6          magrittr_1.5        R6_2.4.1           
##  [94] IRanges_2.22.2      generics_0.0.2      multcomp_1.4-13    
##  [97] DBI_1.1.0           pillar_1.4.6        haven_2.3.1        
## [100] withr_2.2.0         mgcv_1.8-31         prettydoc_0.3.1    
## [103] survival_3.2-3      modelr_0.1.8        crayon_1.3.4       
## [106] rmarkdown_2.3       grid_4.0.2          readxl_1.3.1       
## [109] data.table_1.13.0   blob_1.2.1          vegan_2.5-6        
## [112] reprex_0.3.0        digest_0.6.25       stats4_4.0.2       
## [115] munsell_0.5.0       quadprog_1.5-8

5. References

Bolyen, Evan, Jai Ram Rideout, Matthew R Dillon, Nicholas A Bokulich, Christian C Abnet, Gabriel A Al-Ghalith, Harriet Alexander, et al. 2019. “Reproducible, Interactive, Scalable and Extensible Microbiome Data Science Using Qiime 2.” Nature Biotechnology 37 (8). Nature Publishing Group:852–57. https://doi.org/10.1038/s41587-019-0209-9.

Callahan, Benjamin J, Paul J McMurdie, Michael J Rosen, Andrew W Han, Amy Jo A Johnson, and Susan P Holmes. 2016. “DADA2: High-Resolution Sample Inference from Illumina Amplicon Data.” Nature Methods 13 (7). Nature Publishing Group:581. https://doi.org/10.1038/nmeth.3869.

McMurdie, Paul J., and Susan Holmes. 2013. “Phyloseq: An R Package for Reproducible Interactive Analysis and Graphics of Microbiome Census Data.” PLoS ONE 8 (4):e61217. https://doi.org/10.1371/journal.pone.0061217.

Oksanen, Jari, F. Guillaume Blanchet, Michael Friendly, Roeland Kindt, Pierre Legendre, Dan McGlinn, Peter R. Minchin, et al. 2019. “Vegan: Community Ecology Package.” https://CRAN.R-project.org/package=vegan.

Siegel, Andrew F. 2004. “Rarefaction Curves.” Encyclopedia of Statistical Sciences 10. Wiley Online Library. https://doi.org/10.1002/0471667196.ess2195.pub2.

Yu, Guangchuang, David Smith, Huachen Zhu, Yi Guan, and Tommy Tsan-Yuk Lam. 2017. “Ggtree: An R Package for Visualization and Annotation of Phylogenetic Trees with Their Covariates and Other Associated Data.” Methods in Ecology and Evolution 8 (1). Wiley Online Library:28–36. https://doi.org/10.1111/2041-210X.12628.