check_ott_input is currently used in functions
get_ott_clade()
,
get_ott_children()
, and get_otol_synthetic_tree()
.
Arguments
- input
Optional. A character vector of names or a
datelifeQuery
object.- ott_ids
If not NULL, it takes this argument and ignores input. A numeric vector of ott ids obtained with
rotl::taxonomy_taxon_info()
orrotl::tnrs_match_names()
ortnrs_match()
.- ...
Arguments passed on to
make_datelife_query
use_tnrs
Whether to use Open Tree of Life's Taxonomic Name Resolution Service (TNRS) to process input taxon names. Default to
TRUE
, it corrects misspellings and taxonomic name variations withtnrs_match()
, a wrapper ofrotl::tnrs_match_names()
.get_spp_from_taxon
Whether to search ages for all species belonging to a given taxon or not. Default to
FALSE
. IfTRUE
, it must have same length as input. If input is a newick string with some clades it will be converted to aphylo
object, and the order ofget_spp_from_taxon
will matchphy$tip.label
.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".