Ladderizing a tree in a tree sequence #3160
hyanwong
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes we will want to draw a tree in a ladderised style, placing the clades with more tips either first or last. This isn't easy to do at the moment. However, if we reorder the leaf nodes in the right way, the standard minlex ordering will do it for us. Here's an implementation:
Demo, reordering the (default) right-ladderised comb tree:
Note that the ordering should stay the same in the case of ties (hence 8 and 9 below are in the same order)
Beta Was this translation helpful? Give feedback.
All reactions