View source: R/reannotate_tax.R
reannotate_tax | R Documentation |
Reannotate taxonomy
Reannotates taxonomy table so that "unclassfied" assignments include higher level classifications. This helps preserve the biological meaning of an unclassfied genus (as it could be classfied at the Family level).
reannotate_tax(taxonomy)
taxonomy |
taxonomy table. Must have |
updated taxonomy table with "unclassified" prepended with higher level classifications
data(asv_example)
# adding Kingdom column; removing sequence column because don't need asv IDs in this example
old_tax <- tax_example
colnames(old_tax)[1] <- 'Kingdom'
old_tax$Kingdom <- 'Bacteria'
knitr::kable(head(old_tax))
new_tax <- reannotate_tax(old_tax)
knitr::kable(head(new_tax))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.