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 is prime. pick your flavor 🌈
  • -e, --exhaustive β€” Do all possible rootings. go absolutely feral, do every single one πŸ’€
  • -o, --output-file-prefix file-prefix β€” The stem for filenames. this is the lil name-prefix everything gets built on ✨
  • -n, --node-index INT β€” Reroot tree at edge leading to node. you point, it roots 🎯
  • -g, --outgroup STRING β€” 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.