Skip to content
Connor T. Skennerton edited this page Feb 24, 2017 · 3 revisions

--ladderize, -ld

Description

Will reorder the branches of the tree based on the number of child nodes for every given subtree.

Arguments

Sorting ( {ascending | descending } )

Optional. Choose the way to sort the subtrees

  • ascending = subtrees with a smaller number of child nodes will be ordered first
  • descending = subtrees with a larger number of child nodes will be ordered first

Examples

input file: test.tree

((A,(B,(C,(D,E)))),(F,(G,H)));

usage example 1

$: pb test.tree -ld

output

((F,(G,H)),(A,(B,(C,(D,E)))));

usage example 2

$: pb test.tree -ld descending

output

(((((D,E),C),B),A),((G,H),F));

Main Toolkit Pages





Further Reading

Clone this wiki locally