taxFromWorms | R Documentation |
Query a vector to taxa names against WORMS and retrives valid names and classification
taxFromWorms(x, ...)
x |
A vector of species names |
... |
additional arguments passed to worms::wormsmatchsp and worms::wormsmatchgen. |
The taxonomic assignment of the ASVs resulting from blasting against GenBank is not allways up to date. This fuction will query the names against Worl Register of Marine Species at https://www.marinespecies.org/ by using the package worms. The function returns a data.frame with the columns "kingdom", "phylum", "class", "order", "family", "genus", "AphiaID", "status", "scientificname", "valid_name" and"query_name".
The function assumes that the separator between genus name and species name is either a space or an underscore.
Pedro Martinez Arbizu
worms
data(deepMeio)
tax_deepMeio <- taxFromWorms(deepMeio$Species[1:51])
#example retrieve non only marine species
tax_deepMeio <- taxFromWorms(deepMeio$Species[1:51], marine_only=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.