View source: R/construct_otu_table.R
construct_otu_table | R Documentation |
construct_otu_table can construct a OTU table with a phyloseq object.
construct_otu_table( phyloseq, level = "all", relative_abundance = FALSE, hundred_percent = FALSE )
phyloseq |
A phyloseq object contain otu table, taxonomy table, sample metadata and phylogenetic tree. |
level |
The coloumn name of the level wanted to select. Default is "all". If "all" then retain all taxonomy level, else ONLY retain the given taxonomy level, drop everything else. Level name should be one of "all", "Kingdom", "Phylum", "Class", "Order", "Family", "Genus", "Species". |
relative_abundance |
Turn OTU table into relative abundance or not. Default is FALSE. If TRUE, the raw count value will be converted to relative abundance and total sum is 1. |
hundred_percent |
Default is FALSE, if TRUE, turn relative abundance to 100 percent, total sum is 100. |
construct_otu_table(demo_phyloseq_object, level = "Genus") %>% .[,1:5]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.