Skip to contents

This function will extract the available deepest taxonomic label from a phyloseq taxonomyTable. You still need to assign that (see example below).

Usage

make_physeq_tax_label_unique(taxtable)

Arguments

taxtable

A phyloseq-class instance

Value

A character vector with unique taxonomic labels.

Examples

taxtable <- structure(
  c("Bacteria", "Proteobacteria", "Deltaproteobacteria","", "", "", ""),
  dim = c(1L, 7L),
  dimnames = list(
  "sp1", c("Kingdom", "Phylum", "Class","Order",
   "Family", "Genus", "Species")
   ))
make_physeq_tax_label_unique(taxtable)
#> [1] "Deltaproteobacteria"