Methods for parsing all phyloXML nodes from an XML stream.
To minimize memory use, the tree of ElementTree parsing events is
cleared after completing each phylogeny, clade, and top-level 'other'
element. Elements below the clade level are kept in memory until parsing
of the current clade is finished -- this shouldn't be a problem because
clade is the only recursive element, and non-clade nodes below this level
are of bounded size.
|
__init__(self,
file)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
read(self)
Parse the phyloXML file and create a single Phyloxml object. |
source code
|
|
|
parse(self)
Parse the phyloXML file incrementally and return each phylogeny. |
source code
|
|
|
|
|
_parse_clade(self,
parent)
Parse a Clade node and its children, recursively. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|