ponnhide/pyCircos

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

rotheconrad opened this issue · 1 comments

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

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?