I have a species tree to which I am trying to add species, which includes a tip "Geissospermum laeve". When I run:
with_polytomes = phytools::add.species.to.genus(tree, "Geissospermum polytome1", where='root')
, the original tree is returned with the error message: 'could not match your species to a genus check spelling, including case'.
Reproducible example:
test_tree = ape::rtree(5)
test_tree$tip.label = c("t3 sp1", "t4 sp1", "t5 sp1", "t2 sp1", "t1 sp1")
with_polytomes = phytools::add.species.to.genus(test_tree, "t1 polytome1", where='root')
I don't understand why this is happening, if anyone could shed some light on what's causing this error that would be great