make_utax_taxonomy: Prepare taxonomy annotations in SINTAX or UTAX style.

View source: R/make_utax_taxonomy.R

make_utax_taxonomyR Documentation

Prepare taxonomy annotations in SINTAX or UTAX style.

Description

This function takes taxonomy table and returns character string in USEARCH-style that can be used with SINTAX or UTAX taxonomy classificators.

Usage

make_utax_taxonomy(x)

Arguments

x

Data frame with one row (columns are ordered taxonomy levels)

Details

Missing values are allowed and should be coded as 'NA'.

Value

Character string.

See Also

http://drive5.com/usearch/manual/tax_annot.html

Examples

# Create dummy data (for one species)
datt <- data.frame(
  Kingdom = "Fungi", Phylum = "Basidiomycota", Class = "Agaricomycetes",
  Order = "Agaricales", Family = "Marasmiaceae", Genus = "Marasmius", Species = "Marasmius_alliaceus",
  stringsAsFactors = F)

make_utax_taxonomy(datt)


vmikk/metagMisc documentation built on June 20, 2024, 7:20 a.m.