reroot(1)
π reroot(1) π
okay bestie, so this one lives in the General Commands Manual section, and it's called reroot β and yeah, it does exactly what it says on the tin. π
β¨ NAME β¨
reroot β compute a (new) root for the tree. like, it goes and finds your tree a whole new root. glow-up for your phylogeny fr fr π³π
π¦ SYNOPSIS π¦
reroot [OPTIONS] tree-file
πΈ DESCRIPTION πΈ
So here's the vibe: this program reroots the trees in <treefile> on a selected edge. That's it. That's the whole personality. π
The default is to output a random rerooting β chaos, but make it scientific π²β¨ β but you can also choose to give it the edge to put the root on, or an outgroup, or even all possible rootings (iconic, unhinged, love that for us).
Output gets written to stdout unless the exhaustive rooting is chosen. In that case -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. π like it's gone. bye. not coming back. so don't come crying to me when your branch lengths ghost you π»
π OPTIONS π
--helpβ Display help. your lil "what do I do now" button π«Ά-V,--versionβ Print version and exit. short and sweet, no notes π-S,--read-tree-from-stdinβ read tree from STDIN (no<tree-file>). pipe it in bestie, no file needed π-f,--input-format prime|inputxmlβ The input format. Default isprime. pick your flavor π-e,--exhaustiveβ Do all possible rootings. go absolutely feral, do every single one π-o,--output-file-prefixfile-prefix β The stem for filenames. this is the lil name-prefix everything gets built on β¨-n,--node-indexINT β Reroot tree at edge leading to node. you point, it roots π―-g,--outgroupSTRING β Root tree at smallest subtree containing the leaves listed in a commaseparated arguments. yes, comma-separated, no spaces required, just vibe it out π±
π EXIT STATUS π
0β Successful program execution. we ate. π1β Some error occurred. it's giving oops π
π URL π
The prime-phylo home page: http://prime.sbc.su.se β go be nosy, it's fine π»β¨
π§ SEE ALSO π§
primeDTLSR(1), primeDLRS(1), primeGEM(1), chainsaw(1), reconcile(1), showtree(1), tree2leafnames(1), treesize(1) β the whole friend group, go say hi π«Ά
and that's the page babes!! this one came from prime-phylo 1.0.11, dated 13 Mar, 2012 β vintage, lowkey, still slaying ππΈ periodt.
π¦ where this page comes from
- debian bookworm: prime-phylo 1.0.11-10 Β· GPL-3.0-only
- debian trixie: prime-phylo 1.0.11-13+b1 Β· GPL-3.0-only
- ubuntu jammy: prime-phylo 1.0.11-10 Β· GPL-3.0-only
- ubuntu noble: prime-phylo 1.0.11-10ubuntu1 Β· GPL-3.0-only
- ubuntu questing: prime-phylo 1.0.11-14
- ubuntu resolute: prime-phylo 1.0.11-14build1 Β· GPL-3.0-only
- ubuntu stonking: prime-phylo 1.0.11-14build1 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms