Rename or list external nodes (leaves) in a newick tree
Jason Kwong (@kwongjc)
- Python 2.7.x
- ete2 -
pip install ete2
$ nw_leafnames.py -h
usage:
nw_leafnames.py [OPTIONS] TREE > new_names.tree
Rename or display external node names (leaves) in Newick tree file
If list of new names is not specified, output will use existing names
Output formats :
newick : newick format
tree : show tree topology
list : print list of leaf names
positional arguments:
TREE original tree file in Newick format
optional arguments:
-h, --help show this help message and exit
--tab TAB specify tab-separated file with [oldnames] [newnames]
--csv CSV specify CSV file with [oldnames],[newnames]
--output FORMAT newick (default) | tree | list
--version show program's version number and exit
Please submit via the GitHub issues page.