Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

newick string python

>>> from newick import loads
>>> trees = loads('(A,B,(C,D)E)F;')
>>> trees[0].name
'F'
>>> [n.name for n in trees[0].descendants]
['A', 'B', 'E']
Source by pypi.org #
 
PREVIOUS NEXT
Tagged: #newick #string #python
ADD COMMENT
Topic
Name
5+4 =