Package Bio :: Package Phylo :: Module PhyloXML :: Class Phyloxml
[hide private]
[frames] | no frames]

Class Phyloxml

source code

          object --+        
                   |        
BaseTree.TreeElement --+    
                       |    
            PhyloElement --+
                           |
                          Phyloxml

Root node of the PhyloXML document.

Contains an arbitrary number of Phylogeny elements, possibly followed by elements from other namespaces.

Instance Methods [hide private]
 
__init__(self, attributes, phylogenies=None, other=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, index)
Get a phylogeny by index or name.
source code
 
__iter__(self)
Iterate through the phylogenetic trees in this object.
source code
 
__len__(self)
Number of phylogenetic trees in this object.
source code
 
__str__(self)
Show this object's constructor with its primitive arguments.
source code

Inherited from BaseTree.TreeElement: __repr__

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, attributes, phylogenies=None, other=None)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • attributes (dict) - (XML namespace definitions)
  • phylogenies (list) - The phylogenetic trees
  • other (list) - Arbitrary non-phyloXML elements, if any
Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 
Show this object's constructor with its primitive arguments.
Overrides: object.__str__
(inherited documentation)