ladderize trees

51 views
Skip to first unread message

kat

unread,
Apr 18, 2012, 3:25:32 AM4/18/12
to eteto...@googlegroups.com
Hi there,
Just wondering if there is a way to control the display of the tree in terms of the order at which bipartitions are displayed... e.g. a common option in most tree-rendering programs is a ladderized view, where the display order of bipartitions/nodes is determined by their distance from the root, so that the tree 'grows' from the root.
Thanks

Jaime Huerta Cepas

unread,
Apr 18, 2012, 3:51:32 AM4/18/12
to eteto...@googlegroups.com
Hi Kat,

yes, you can ladderize (tree.ladderize()) and sort by leaf name ( tree.sort_descendants() )

J

kat

unread,
Apr 19, 2012, 4:33:53 AM4/19/12
to eteto...@googlegroups.com
Hi Jaime,
Thanks, that's helfpful. But I can't see how to apply this to a ClusterTree object... what I want to do is display a ladderized tree next to a heatmap, and I can't see how to apply the ladderize function to the tree that is passed to ClusterTree, as this accepts a newick file but not a Tree object (which I could ladderize using the function you suggest)... is there a way to do this?
Thanks,
Kat
Reply all
Reply to author
Forward
0 new messages