taxa_prune | R Documentation |
Prunes taxa from phyloseq objects based on taxanomic names.
taxa_prune(phyloseq_obj, taxa_to_remove,
classification=NULL, na_rm=FALSE)
phyloseq_obj |
A |
taxa_to_remove |
A vector of the classification names of the taxon to be removed. If you are using ASVs and want to remove specific sequences, this should be set OTU or NULL. By default, it will search for the names in all taxanomic ranks |
classification |
Column name as a |
na_rm |
if TRUE, and classification is specified, will remove taxon at the classificaiton level that have NA values. |
phyloseq-object
tax_glom()
taxa_prune(soil_column, "Firmicutes", "Phylum")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.