View source: R/make_utax_taxonomy.R
make_utax_taxonomy_batch | R Documentation |
Prepare taxonomy annotations in SINTAX or UTAX style for multiple species.
make_utax_taxonomy_batch(x, as_vector = T, ...)
x |
Data frame (columns are ordered taxonomy levels, rows are species or OTUs) |
as_vector |
Logical, if TRUE (default) result will be returned as vector. Otherwise, result is a data frame |
... |
Additional arguments may be passed to |
Vector or a data frame with taxonomy strings in USEARCH format.
http://drive5.com/usearch/manual/tax_annot.html
# Create dummy data (each row = species)
datt <- data.frame(
Kingdom = rep(LETTERS[1:3], each = 12),
Phylum = rep(LETTERS[6:11], each = 6),
Class = rep(letters[1:12], each = 3),
Order = do.call(paste0, expand.grid(letters, letters, stringsAsFactors = F))[1:36],
stringsAsFactors = F
)
head(datt) # Taxonomy table
head(make_utax_taxonomy_batch(datt)) # Taxonomy strings for USEARCH classifiers
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.