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

How are the ID's linked to the Phyla for the phylogenetic tree example? #25

Open
rotheconrad opened this issue Oct 12, 2022 · 1 comment

Comments

@rotheconrad
Copy link

Hey, this looks like a very useful code set. Thanks for your effort here.

I would like to customize this for my use, but from the example (without any comments) I am unclear how the highlight_dict for tree-2.pdf links to the previous tree. It looks like for tree-1.pdf the ID column is the same as the branch label of the nwk file, but I don't follow where the phyla names are retained.

Could you explain how the dictionaries are linked between the different tree examples?

Thank you,
Roth

@rotheconrad
Copy link
Author

Oh I see now that your nwk file has taxa IDs included. So the tcircle.plot_highlight(tarc.arc_id, highlight_dict) function looks for those labels. What if my nwk file only has leaf node labels? Is there a way I can group leaf node labels into the the highlight function?

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

No branches or pull requests

1 participant