Skip to contents

This function will remove the silva prefix from a Phyloseq taxonomy table. You still need to assign that

Usage

remove_silva_prefix_from_taxtable(taxtable)

Arguments

taxtable

A taxonomy table from phyloseq (obtained using tax_table())

Value

A character vector with unique taxonomic labels.

Examples

taxtable <- structure(c("k__Bacteria", " p__Proteobacteria",
"c__Deltaproteobacteria", " o__Oligoflexales", " f__0319-6G20",
"g__", " s__"), dim = c(1L, 7L),
dimnames = list("sp1", c("Kingdom",
"Phylum", "Class", "Order", "Family", "Genus", "Species")))
remove_silva_prefix_from_taxtable(taxtable)
#>     Kingdom    Phylum           Class                 Order          
#> sp1 "Bacteria" "Proteobacteria" "Deltaproteobacteria" "Oligoflexales"
#>     Family      Genus Species
#> sp1 "0319-6G20" ""    ""