View source: R/process_aggregate_taxa.R
aggregate_taxa | R Documentation |
Summarize phyloseq data into a higher phylogenetic level.
aggregate_taxa(x, level, verbose = FALSE)
x |
|
level |
Summarization level (from |
verbose |
verbose |
This provides a convenient way to aggregate phyloseq OTUs (or other taxa) when the phylogenetic tree is missing. Calculates the sum of OTU abundances over all OTUs that map to the same higher-level group. Removes ambiguous levels from the taxonomy table. Returns a phyloseq object with the summarized abundances.
Summarized phyloseq object
Contact: Leo Lahti microbiome-admin@googlegroups.com
See citation('microbiome')
data(caporaso)
caporaso_phylum <- aggregate_taxa(caporaso, "Phylum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.