Modify tree topology by optionally removing branch lengths, comments, or labels.
Input:
- A Newick tree file.
Notes:
- By default, branch lengths and comments are removed.
- Use
--blto keep branch lengths. - Use
--comment/-cto keep comments. - Use
-Ito remove internal labels. - Use
-Lto remove leaf labels.
Examples:
-
Topology only (remove lengths and comments)
necom nwk topo tree.nwk -
Keep branch lengths but remove comments
necom nwk topo tree.nwk --bl -
Remove internal node labels
necom nwk topo tree.nwk -I