| Trees | Indices | Help |
|
|---|
|
|
object --+
|
TreeElement --+
|
object --+ |
| |
TreeMixin --+
|
Tree
A phylogenetic tree, containing global info for the phylogeny.
The structure and node-specific data is accessible through the 'root'
clade attached to the Tree instance.
:Parameters:
root : Clade
The starting node of the tree. If the tree is rooted, this will
usually be the root node.
rooted : bool
Whether or not the tree is rooted. By default, a tree is assumed to
be rooted.
id : str
The identifier of the tree, if there is one.
name : str
The name of the tree, in essence a label.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
|
|||
|
|||
|
|||
|
clade The first clade in this tree (not itself). |
|||
|
Inherited from |
|||
|
|||
Serialize the tree as a string in the specified file format.
This method supports the ``format`` built-in function added in Python
2.6/3.0.
:param format_spec: a lower-case string supported by `Bio.Phylo.write`
as an output file format.
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
String representation of the entire tree. Serializes each sub-clade recursively using ``repr`` to create a summary of the object structure.
|
Convert this tree to a PhyloXML-compatible Phylogeny. This lets you use the additional annotation types PhyloXML defines, and save this information when you write this tree as 'phyloxml'. |
Serialize the tree as a string in the specified file format. This duplicates the __format__ magic method for pre-2.6 Pythons. |
Create a new Tree object given a clade. Keyword arguments are the usual `Tree` constructor parameters. |
Create a randomized bifurcating tree given a list of taxa.
:param taxa: Either an integer specifying the number of taxa to create
(automatically named taxon#), or an iterable of taxon names, as
strings.
:returns: a tree of the same type as this class.
|
Reroot this tree with the outgroup clade containing outgroup_targets. Operates in-place. Edge cases: - If ``outgroup == self.root``, no change - If outgroup is terminal, create new bifurcating root node with a 0-length branch to the outgroup - If outgroup is internal, use the given outgroup node as the new trifurcating root, keeping branches the same - If the original root was bifurcating, drop it from the tree, preserving total branch lengths |
|
|||
cladeThe first clade in this tree (not itself).
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Feb 24 13:46:17 2012 | http://epydoc.sourceforge.net |