View source: R/phyloseq_to_df.R
phyloseq_to_df | R Documentation |
Convert phyloseq object to data frame (for exporting).
phyloseq_to_df(
physeq,
addtax = T,
addtot = F,
addmaxrank = F,
sorting = "abundance"
)
physeq |
A phyloseq-class object |
addtax |
Logical; add taxonomy to the result table (default, TRUE) |
addtot |
Logical; add total OTU abundance to the resulting table (default, FALSE) |
addmaxrank |
Logical; add the OTU classification at the lowest annotated taxonomic rank to the resulting table (default, FALSE) |
sorting |
Reorder OTUs according to their total abundance ("abundance", default) or taxonomy (sorting = "taxonomy"); if reordering is not required use 'sorting = NULL' |
Data frame with OTU taxonomy and abundance
phyloseq-class
data(GlobalPatterns)
GlobalPatternsDF <- phyloseq_to_df(GlobalPatterns)
str(GlobalPatternsDF)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.