aggregate_top_taxa {microbiome} | R Documentation |
Summarize phyloseq data by combining the most abundant taxa.
aggregate_top_taxa(x, top, level)
x |
|
top |
Keep the top-n taxa, and merge the rest under the category 'Other'. Instead of top-n numeric this can also be a character vector listing the groups to combine. |
level |
Summarization level (from |
phyloseq-class
object
Contact: Leo Lahti microbiome-admin@googlegroups.com
See citation('microbiome')
data(dietswap) s <- aggregate_top_taxa(dietswap, top = 3, 'Phylum')