getPhyloseqSlots | R Documentation |
Get Phyloseq slots from Tibbles
getOtuTableFromTibble(x, rownames = "FeatureID")
getTaxaTableFromTibble(x, rownames = "FeatureID")
getSampleTableFromTibble(x, rownames = NULL)
x |
|
rownames |
A column in tibble to use are rownames |
Convert different tibbles into phyloseq
slots.
getOtuTableFromTibble
Converts OTU tibble obtained using
biomeUtils::getAbundanceTibble
to phyloseq::otu_table
.
getTaxaTableFromTibble
Converts the taxa tibble obtained using
biomeUtils::getTaxaTibble
to phyloseq::tax_table
.
getSampleTableFromTibble
Converts the sample data tibble obtained using
biomeUtils::getSampleTibble
to phyloseq::sample_data
.
Either otu_table
or
tax_table
or
sample_data
Sudarshan A. Shetty
Shetty SA (2020). Utilities for microbiome analytics. https://github.com/RIVM-IIV-Microbiome/biomeUtils
library(biomeUtils)
data("FuentesIliGutData")
otu_tib <- getAbundanceTibble(FuentesIliGutData)
otu_table <- getOtuTableFromTibble(otu_tib, rownames="FeatureID")
class(otu_table)
tax_tib <- getTaxaTibble(FuentesIliGutData)
taxa_table <- getTaxaTableFromTibble(tax_tib, rownames="FeatureID")
class(tax_table)
meta_tib <- getSampleTibble(FuentesIliGutData)
sample_table <- getSampleTableFromTibble(meta_tib, rownames="SampleID")
class(sample_table)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.