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

Class Confidence

source code

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

A general purpose confidence element.

For example, this can be used to express the bootstrap support value of a clade (in which case the type attribute is 'bootstrap').

Instance Methods [hide private]
 
__init__(self, value, type='unknown')
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__hash__(self)
Return the hash value of the object.
source code
 
__eq__(self, other) source code
 
__ne__(self, other) source code
 
__lt__(self, other) source code
 
__le__(self, other) source code
 
__gt__(self, other) source code
 
__ge__(self, other) source code
 
__add__(self, other) source code
 
__radd__(self, other) source code
 
__sub__(self, other) source code
 
__rsub__(self, other) source code
 
__mul__(self, other) source code
 
__rmul__(self, other) source code
 
__div__(self, other) source code
 
__rdiv__(self, other) source code
 
__truediv__(self, other)
Rational-style division in Py3.0+.
source code
 
__rtruediv__(self, other) source code
 
__floordiv__(self, other)
C-style and old-style division in Py3.0+.
source code
 
__rfloordiv__(self, other) source code
 
__mod__(self, other) source code
 
__rmod__(self, other) source code
 
__divmod__(self, other) source code
 
__rdivmod__(self, other) source code
 
__pow__(self, other, modulo=None) source code
 
__rpow__(self, other) source code
 
__neg__(self) source code
 
__pos__(self) source code
 
__abs__(self) source code
 
__float__(self) source code
 
__int__(self) source code
 
__long__(self) source code

Inherited from BaseTree.TreeElement: __repr__, __str__

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, value, type='unknown')
(Constructor)

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

Parameters:
  • value (float) - confidence value
  • type (string) - label for the type of confidence, e.g. 'bootstrap'
Overrides: object.__init__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 

Return the hash value of the object.

Hash values are integers. They are used to quickly compare dictionary keys during a dictionary lookup. Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0).

Overrides: object.__hash__

__truediv__(self, other)

source code 

Rational-style division in Py3.0+.

Also active in Py2.5+ with __future__.division import.

__floordiv__(self, other)

source code 

C-style and old-style division in Py3.0+.

Also active in Py2.5+ with __future__.division import.