Two things to try,
- setting
genus=NULL
, The logic being it doesn't know which genus to add it to. Just as a precaution setting all blank space within a taxa id in the tree to_
...
add.species.to.genus(test_tree, "t1_polytome1", genus=NULL, where=c("root"))
Maybe replace root
with random
to get it working.
- alternative using
tree
instead
genus.to.species.tree(test_tree, "t1_polytome1")