You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create the function Create function map_frequency_to_subtree() that has the following behavior:
Takes a set of trees with multiple sequences per taxon. Tips have name format taxon_1@1234 where taxon_1 is the taxon and 1234 is the sequence ID. Each taxon can have one or more sequences, which are differentiated by their ids. Creates a table of split frequencies seen in the tree.
Takes a focal tree with one tip per taxon, and tip name taxon. e.g. taxon_1
For each edge in focal tree (including terminal edges) identify the corresponding edge in the split frequency table. Map the frequency of that edge to the edge label in the focal tree. If the split was not found in the set then the edge label has value 0.
Return the focal tree with edge labels.
The text was updated successfully, but these errors were encountered:
Create the function Create function
map_frequency_to_subtree()
that has the following behavior:Takes a set of trees with multiple sequences per taxon. Tips have name format
taxon_1@1234
wheretaxon_1
is the taxon and1234
is the sequence ID. Each taxon can have one or more sequences, which are differentiated by their ids. Creates a table of split frequencies seen in the tree.Takes a focal tree with one tip per taxon, and tip name taxon. e.g.
taxon_1
For each edge in focal tree (including terminal edges) identify the corresponding edge in the split frequency table. Map the frequency of that edge to the edge label in the focal tree. If the split was not found in the set then the edge label has value 0.
Return the focal tree with edge labels.
The text was updated successfully, but these errors were encountered: