Clean up some issues with Open Tree of Life chronograms For now it 1) checks unmapped taxa and maps them with tnrs_match.phylo, 2) roots the chronogram if unrooted
Source:R/opentree_chronograms.R
clean_ott_chronogram.Rd
Clean up some issues with Open Tree of Life chronograms For now it 1) checks unmapped taxa and maps them with tnrs_match.phylo, 2) roots the chronogram if unrooted
Details
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
- phy$mapped
A character vector indicating the state of mapping of phy$tip.labels:
- phy$original.tip.label
A character vector preserving all original labels.
- phy$ott_ids
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