Hello,
I am trying to mark branches of my tree for positive selection analysis. I was following the online tutorial and did the following:
tree = EvolTree("(((Latimeria_chalumnae,(Lepisosteus_oculatus,Danio_rerio)),(Callorhinchus_milii,(Scyliorhinus_torazame,(Chiloscyllium_punctatum,Rhincodon_typus),Carcharodon_carcharias))));")
marks = ['4', '5', '6', '7', '8']
tree.mark_tree (marks, ['#1', '#1', '#1', '#1', '#1'])
I would like the following output:
tree = EvolTree("(((Latimeria_chalumnae,(Lepisosteus_oculatus,Danio_rerio)),(Callorhinchus_milii #1,(Scyliorhinus_torazame #1,(Chiloscyllium_punctatum #1,Rhincodon_typus #1),Carcharodon_carcharias #1))));")
However, the marks are not put in that order and appear to be assigned randomly between runs. I know I have to get the node_id of the species to assign the marks but I cannot find the function to get the node_id for a set of species in the tree. Can someone help me? I have also tried manually marking the tree but I got an error as well.