name_na_taxa | R Documentation |
This function fills in any NA annotation with the lowest known taxonomic annotation (<tax>
)
from a higher rank (<rank>
).
name_na_taxa(ps_obj, include_rank = T, na_label = "Unknown <tax> (<rank>)")
ps_obj |
A phyloseq object |
include_rank |
Whether to include the rank of the lowest known annotation |
na_label |
The label to assign to each filled in NA annotation. |
A phyloseq object
data(GlobalPatterns)
# Fill in names for NA taxa, including their rank
ps_tmp <- name_na_taxa(GlobalPatterns)
View(tax_table(ps_tmp))
# Leave the rank out and alter the label
ps_tmp <- name_na_taxa(GlobalPatterns, include_rank = F, na_label = "Unknown <tax>")
View(tax_table(ps_tmp))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.