DOKK / manpages / debian 12 / prime-phylo / reroot.1.en
reroot(1) General Commands Manual reroot(1)

reroot - Compute a (new) root for the tree.

reroot [OPTIONS] tree-file

This program reroots the trees in <treefile> on an selected edge.

The default is to output a random rerooting, but you can also choose to give the edge to put the root on, or an outgroup, or even all possible rootings.

Output is written to stdout unless the exhaustive rooting is chosen. Then -o is giving the prefix for filenames to use and the results are written to <prefix>_<n>.tree, where <n> is the node number of the head of the edge.

Warning! In the current implementation all time/length info is lost.

Display help
Print version and exit
read tree from STDIN (no <tree-file>)
The input format. Default is prime
Do all possible rootings
The stem for filenames
Reroot tree at edge leading to node
Root tree at smallest subtree containing the leaves listed in a commaseparated arguments

0
Successful program execution.
1
Some error occurred

primeDTLSR(1), primeDLRS(1), primeGEM(1), chainsaw(1), reconcile(1), showtree(1), tree2leafnames(1), treesize(1)

13 Mar, 2012 prime-phylo 1.0.11