Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get node labels for node numbers in nodiv results #3

Open
nick-youngblut opened this issue Aug 5, 2018 · 1 comment
Open

get node labels for node numbers in nodiv results #3

nick-youngblut opened this issue Aug 5, 2018 · 1 comment

Comments

@nick-youngblut
Copy link

Node_analysis() returns information for numbered node IDs, but not the original node labels in the tree. For custom tree plotting purposes, I need the node labels, no just numbered node IDs. tree$node.label will provide the node labels, but how do I match that to the node IDs returned by Node_analysis()? The node IDs are not simply the index of the node.label vector. Are the node IDs the index of c(tree$tip.label, tree$node.label), or will the node IDs not match the ordering of the tip/node labels?

@mkborregaard
Copy link
Owner

mkborregaard commented Aug 6, 2018

Sorry, I've been away from the computer - you're right, they're simply the index of c(tree$tip.label, tree$node.label). But actually it makes sense to retain the original node label information in the return object from Node_analysis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants