| Trees | Indices | Help |
|---|
|
|
I/O function wrappers for phylogenetic tree formats.
This API follows the same semantics as Biopython's SeqIO and AlignIO.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
supported_formats =
|
|||
__package__ =
|
|||
|
|||
Iteratively parse a file and return each of the trees it contains. If a file only contains one tree, this still returns an iterable object that contains one element. Example:
>>> trees = parse('../../Tests/PhyloXML/apaf.xml', 'phyloxml')
>>> for tree in trees:
... print tree.rooted
True
|
Parse a file in the given format and return a single tree. Raises a ValueError if there are zero or multiple trees -- if this occurs, use parse() instead to get the complete sequence of trees. |
|
|||
supported_formats
|
| Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Fri Nov 26 16:18:40 2010 | http://epydoc.sourceforge.net |