| Trees | Indices | Help |
|
|---|
|
|
PhyloXML reader/parser, writer, and associated functions. Instantiates tree elements from a parsed PhyloXML file, and constructs an XML file from a `Bio.Phylo.PhyloXML` object. About capitalization: - phyloXML means the file format specification - PhyloXML means the Biopython module `Bio.Phylo.PhyloXML` and its classes - Phyloxml means the top-level class used by `PhyloXMLIO.read` (but not `Bio.Phylo.read`!), containing a list of Phylogenies (objects derived from `BaseTree.Tree`)
|
|||
|
PhyloXMLError Exception raised when PhyloXML object construction cannot continue. |
|||
|
Parser Methods for parsing all phyloXML nodes from an XML stream. |
|||
|
Writer Methods for serializing a PhyloXML object to XML. |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
NAMESPACES =
|
|||
prefix =
|
|||
uri =
|
|||
|
|||
Parse a phyloXML file or stream and build a tree of Biopython objects. The children of the root node are phylogenies and possibly other arbitrary (non-phyloXML) objects. :returns: a single `Bio.Phylo.PhyloXML.Phyloxml` object. |
Iterate over the phylogenetic trees in a phyloXML file. This ignores any additional data stored at the top level, but may be more memory-efficient than the `read` function. :returns: a generator of `Bio.Phylo.PhyloXML.Phylogeny` objects. |
Write a phyloXML file.
:Parameters:
obj
an instance of `Phyloxml`, `Phylogeny` or `BaseTree.Tree`, or an
iterable of either of the latter two. The object will be converted
to a Phyloxml object before serialization.
file
either an open handle or a file name.
|
Find a child node by tag, and pass it through a constructor. Returns None if no matching child is found. |
Find a child node by tag; pass its text through a constructor. Returns None if no matching child is found. |
Find child nodes by tag; pass each through a constructor. Returns an empty list if no matching child is found. |
Find child nodes by tag; pass each node's text through a constructor. Returns an empty list if no matching child is found. |
Add line breaks and indentation to ElementTree in-place. Sources: - http://effbot.org/zone/element-lib.htm#prettyprint - http://infix.se/2007/02/06/gentlemen-indent-your-xml |
Replace all spans of whitespace with a single space character. Also remove leading and trailing whitespace. See "Collapse Whitespace Policy" in the phyloXML spec glossary: http://phyloxml.org/documentation/version_100/phyloxml.xsd.html#Glossary |
Replace tab, LF and CR characters with spaces, but don't collapse. See "Replace Whitespace Policy" in the phyloXML spec glossary: http://phyloxml.org/documentation/version_100/phyloxml.xsd.html#Glossary |
|
|||
NAMESPACES
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Feb 24 13:46:11 2012 | http://epydoc.sourceforge.net |