View source: R/helper_functions.R
lowest_classified | R Documentation |
Get the lowest classified ranks for the OTUs
lowest_classified(x, sep = "__", return = "rank", rownames = TRUE)
x |
A matrix, data frame or phyloseq object |
sep |
The seperator between the rank, and the name i.e. G__Drosophila would be the default for an OTU that could only be assigned to the genus Drosophila |
return |
The type of values to return. Options include 'rank' which returns a character vector listing the lowest taxonomic each otu was classified to, i.e. Species, Genus etc 'taxon' returns a character vector listing the lowest taxonomic name each otu was classified to i.e. Drosophila_suzukii, Diptera etc 'both' returns a data frame containing both of the above |
rownames |
Whether rownames should be returned, or instead an OTU column |
na_to_unclassified unclassified_to_na
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.