View source: R/opentree_taxonomy_general.R
tnrs_match | R Documentation |
Taxon name resolution service (tnrs) applied to a vector of names by batches
tnrs_match(input, reference_taxonomy, tip, ...)
## Default S3 method:
tnrs_match(input, reference_taxonomy = "ott", ...)
## S3 method for class 'phylo'
tnrs_match(input, reference_taxonomy = "ott", tip = NULL, ...)
input |
A character vector of taxon names, or a phylo object with tip names, to be matched to taxonomy. |
reference_taxonomy |
A character vector specifying the reference taxonomy to use for TNRS. Options are "ott", "ncbi", "gbif" or "irmng". The function defaults to "ott". |
tip |
A vector of mode numeric or character specifying the tips to match. If left empty all tips will be matched. |
... |
Arguments passed on to
|
There is no limit to the number of names that can be queried and matched.
The output will preserve all elements from original input phylo object and will add
A character vector indicating the state of mapping of phy$tip.labels:
Tnrs matching was not attempted. Original labeling is preserved.
Matching was manually made by a curator in Open Tree of Life.
Tnrs matching was attempted and successful with no approximate matching. Original label is replaced by the matched name.
Tnrs matching was attempted and successful but with approximate matching. Original labeling is preserved.
Tnrs matching was attempted and unsuccessful. Original labeling is preserved.
A character vector preserving all original labels.
A numeric vector with ott id numbers of matched tips. Unmatched and original tips will be NaN.
if tips are duplicated, tnrs will only be run once (avoiding increases in function running time) but the result will be applied to all duplicated tip labels
An object of class data frame or phylo, with the added class match_names.
NULL
NULL
tnrs_match(input = c("Mus"))
tnrs_match(input = c("Mus", "Mus musculus"))
tnrs_match(input = c("Mus", "Echinus", "Hommo", "Mus"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.