TibbleUtilites | R Documentation |
phyloseq-class
Slots to TibblesUtility to convert phyloseq slots to tibbles.
otu_tibble(x, column.id = "FeatureID")
tax_tibble(x, column.id = "FeatureID")
sample_tibble(x, column.id = "SampleID")
combine_otu_tax(x, column.id = "FeatureID")
x |
|
column.id |
Provide name for the column which will hold the rownames. of slot. |
Convert different phyloseq
slots into tibbles.
otu_tibble
gets the otu_table in tibble format.
tax_tibble
gets the taxa_table in tibble format.
combine_otu_tax
combines otu_table and taxa_table into one tibble.
A tibble
Contact: Sudarshan A. Shetty sudarshanshetty9@gmail.com
library(microbiome)
data("dietswap")
otu_tib <- otu_tibble(dietswap,column.id="FeatureID")
tax_tib <- tax_tibble(dietswap,column.id="FeatureID")
sample_tib <- sample_tibble(dietswap,column.id="SampleID")
otu_tax <- combine_otu_tax(dietswap,column.id = "FeatureID")
head(otu_tax)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.