phy_tax_glom | R Documentation |
Function that wraps speedyseq's tax_glom function and renames taxa based on more readable names as seen in the taxonomy table
phy_tax_glom(physeq, level, prefix = NULL, make.unique = TRUE)
physeq |
A |
level |
The taxonomic rank to aggregate to. Make sure it matches exactly the column name in the taxonomy table (see |
make.unique |
whether you should make unique the names. Default is |
An aggregated phyloseq
object
library(gautils2) data("GlobalPatterns") gp_Family <- phy_tax_glom(GlobalPatterns, "Family", make.unique = FALSE) # this code shoots a "duplicated names" error. But you can make these names unique artificially: gp_Family <- phy_tax_glom(GlobalPatterns, "Family", make.unique = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.