View source: R/phyloseq_extended_graphical_methods.R
fast_tax_glom | R Documentation |
Fast alternative to [tax_glom()] from phyloseq.extended package.
fast_tax_glom( physeq, taxrank = rank_names(physeq)[1], bad_empty = c("", " ", "\t") )
physeq |
Required. |
taxrank |
A character string specifying the taxonomic level that you want to agglomerate over. Should be among the results of |
bad_empty |
(Optional). Character vector. Default to empty white spaces and tabs. Defines the bad/empty values that should be replaced by "Unknown". |
fast_tax_glom differs from [tax_glom()] in three important ways:
* It is based on dplyr function and thus much faster
* It does not preserve the phy_tree slot
* It only preserves taxonomic ranks up to taxrank
and discard all other ones.
The "archetype" (OTU name) and sequence for each group are chosen as those from the most abundant taxa
within that group (for compatibility with [tax_glom()])
A taxonomically-agglomerated phyloseq-class
object.
[tax_glom()], [merge_taxa()]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.