Package Bio :: Package Phylo :: Module CDAO :: Class Tree
[hide private]
[frames] | no frames]

Class Tree

source code

          object --+        
                   |        
BaseTree.TreeElement --+    
                       |    
          object --+   |    
                   |   |    
  BaseTree.TreeMixin --+    
                       |    
           BaseTree.Tree --+
                           |
                          Tree

CDAO Tree object.
Instance Methods [hide private]
 
__init__(self, root=None, rooted=False, id=None, name=None, weight=1.0)
x.__init__(...) initializes x; see help(type(x)) for signature
source code

Inherited from BaseTree.Tree: __format__, __str__, as_phyloxml, format, is_terminal, root_at_midpoint, root_with_outgroup

Inherited from BaseTree.TreeElement: __repr__

Inherited from BaseTree.TreeMixin: collapse, collapse_all, common_ancestor, count_terminals, depths, distance, find_any, find_clades, find_elements, get_nonterminals, get_path, get_terminals, is_bifurcating, is_monophyletic, is_parent_of, is_preterminal, ladderize, prune, split, total_branch_length, trace

Inherited from BaseTree.TreeMixin (private): _filter_search

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from BaseTree.Tree: from_clade, randomized

Properties [hide private]

Inherited from BaseTree.Tree: clade

Inherited from object: __class__

Method Details [hide private]

__init__(self, root=None, rooted=False, id=None, name=None, weight=1.0)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • root - The starting node of the tree. If the tree is rooted, this will usually be the root node.
  • rooted - Whether or not the tree is rooted. By default, a tree is assumed to be rooted.
  • id - The identifier of the tree, if there is one.
  • name - The name of the tree, in essence a label.
Overrides: object.__init__
(inherited documentation)