iimog / MiscMetabar

R package MiscMetabar: Miscellaneous functions for metabarcoding analysis

Home Page:https://adrientaudiere.github.io/MiscMetabar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R DOI codecov Contributor Covenant License: GPL v3

MiscMetabar

See the pkdown site here.

Biological studies, especially in ecology, health sciences and taxonomy, need to describe the biological composition of samples. During the last twenty years, (i) the development of DNA sequencing, (ii) reference databases, (iii) high-throughput sequencing (HTS), and (iv) bioinformatics resources have allowed the description of biological communities through metabarcoding. Metabarcoding involves the sequencing of millions (meta-) of short regions of specific DNA (-barcoding, Valentini, Pompanon, and Taberlet (2009)) often from environmental samples (eDNA, Taberlet et al. (2012)) such as human stomach contents, lake water, soil and air.

MiscMetabar aims to facilitate the description, transformation, exploration and reproducibility of metabarcoding analysis using R. The development of MiscMetabar relies heavily on the R packages dada2, phyloseq and targets.

Installation

There is no CRAN version of MiscMetabar for now (work in progress). As MiscMetabar heavily relies on two bioconductor packages (dada and phyloseq), we need to first install those 2 packages using BiocManager.

You can install the stable version from GitHub with:

if (!require("BiocManager", quietly = TRUE)){
  install.packages("BiocManager")
}
BiocManager::install("dada2")
BiocManager::install("phyloseq")

if (!require("devtools", quietly = TRUE)){
  install.packages("devtools")
}
devtools::install_github("adrientaudiere/MiscMetabar")

You can install the developement version from GitHub with:

if (!require("BiocManager", quietly = TRUE)) {
  install.packages("BiocManager")
}
BiocManager::install("dada2")
BiocManager::install("phyloseq")

if (!require("devtools", quietly = TRUE)){
  install.packages("devtools")
}
devtools::install_github("adrientaudiere/MiscMetabar", ref = "dev")

Some use of MiscMetabar

See vignettes in the MiscMetabar website for more examples.

Summarize a physeq object

library("MiscMetabar")
library("phyloseq")
library("magrittr")
data("data_fungi")
summary_plot_pq(data_fungi)

Alpha-diversity analysis

p <- MiscMetabar::hill_pq(data_fungi, variable = "Height")
#> Taxa are now in rows.
#> Cleaning suppress 0 taxa and 0 samples.
p$plot_Hill_0
Hill number 1

Hill number 1

p$plot_tuckey
Result of the Tuckey post-hoc test

Result of the Tuckey post-hoc test

Beta-diversity analysis

if (!require("ggVennDiagram", quietly = TRUE)){
  install.packages("ggVennDiagram")
}
ggvenn_pq(data_fungi, fact = "Height") +
  ggplot2::scale_fill_distiller(palette = "BuPu", direction = 1) +
  labs(title = "Share number of ASV among Height in tree")

Installation of other softwares for debian Linux distributions

blastn

sudo apt-get install ncbi-blast+

vsearch

sudo apt-get install vsearch

Taberlet, Pierre, Eric Coissac, Mehrdad Hajibabaei, and Loren H Rieseberg. 2012. “Environmental Dna.” Molecular Ecology. Wiley Online Library. https://doi.org/10.1002/(issn)2637-4943.

Valentini, Alice, François Pompanon, and Pierre Taberlet. 2009. “DNA Barcoding for Ecologists.” Trends in Ecology & Evolution 24 (2): 110–17. https://doi.org/10.1016/j.tree.2008.09.011.

About

R package MiscMetabar: Miscellaneous functions for metabarcoding analysis

https://adrientaudiere.github.io/MiscMetabar/

License:Other


Languages

Language:R 87.7%Language:TeX 11.6%Language:Nix 0.6%Language:CSS 0.1%