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
datelifeQueryobject.- 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_queryuse_tnrsWhether 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_taxonWhether 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 aphyloobject, and the order ofget_spp_from_taxonwill matchphy$tip.label.reference_taxonomyA character vector specifying the reference taxonomy to use for TNRS. Options are "ott", "ncbi", "gbif" or "irmng". The function defaults to "ott".