Closed isgilman closed 2 months ago
Hi Ian,
Thanks for message. Toytree v3+ has re-organized some old functions, and introduced many new ones. The drop_tips
method is now located with several other functions for modifying trees in the mod
module. This can be accessed in either of the following two ways:
# example tree
tree = toytree.rtree.unittree(10)
# drop tips r0 and r1 from module-level method
new = toytree.mod.drop_tips(tree, 'r0', 'r1')
# or, drop tips r0 and r1 from tree-level method
new = tree.mod.drop_tips('r0', 'r1')
I jumped the gun a little bit on pushing this update while the docs are still being updated. The new documentation is at https://eaton-lab.org/toytree. The mod
section is still in development. I am also still working on updating the old docs to provide a re-direct to the new one.
Thanks for your patience.
Best, Deren
That worked, thank you!
Hello Eaton Lab,
I recently made a new conda environment and downloaded the latest version of toytree and ran into an issue: I can't find the
drop_tips
method for my tree objects. I checked the latest docs and it doesn't appear the syntax has changed.Here is the conda package info:
Any suggestions would be greatly appreciated, thank you!
Ian