Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.Phylo.PhyloXML.Confidence Class Reference
Inheritance diagram for Bio.Phylo.PhyloXML.Confidence:
Inheritance graph
[legend]
Collaboration diagram for Bio.Phylo.PhyloXML.Confidence:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __hash__
def __eq__
def __ne__
def __lt__
def __le__
def __gt__
def __ge__
def __add__
def __radd__
def __sub__
def __rsub__
def __mul__
def __rmul__
def __div__
def __rdiv__
def __truediv__
def __rtruediv__
def __floordiv__
def __rfloordiv__
def __mod__
def __rmod__
def __divmod__
def __rdivmod__
def __pow__
def __rpow__
def __neg__
def __pos__
def __abs__
def __float__
def __int__
def __long__
def __repr__

Public Attributes

 value
 type

Detailed Description

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').

:Parameters:
    value : float
        confidence value
    type : string
        label for the type of confidence, e.g. 'bootstrap'

Definition at line 533 of file PhyloXML.py.


Constructor & Destructor Documentation

def Bio.Phylo.PhyloXML.Confidence.__init__ (   self,
  value,
  type = 'unknown' 
)

Definition at line 545 of file PhyloXML.py.

00545 
00546     def __init__(self, value, type='unknown'):
00547         self.value = value
00548         self.type = type


Member Function Documentation

Definition at line 661 of file PhyloXML.py.

00661 
00662     def __abs__(self):
00663         return abs(self.value)

def Bio.Phylo.PhyloXML.Confidence.__add__ (   self,
  other 
)

Definition at line 589 of file PhyloXML.py.

00589 
00590     def __add__(self, other):
00591         return self.value + other

def Bio.Phylo.PhyloXML.Confidence.__div__ (   self,
  other 
)

Definition at line 607 of file PhyloXML.py.

00607 
00608     def __div__(self, other):
00609         return self.value.__div__(other)

def Bio.Phylo.PhyloXML.Confidence.__divmod__ (   self,
  other 
)

Definition at line 639 of file PhyloXML.py.

00639 
00640     def __divmod__(self, other):
00641         return divmod(self.value, other)

def Bio.Phylo.PhyloXML.Confidence.__eq__ (   self,
  other 
)

Definition at line 561 of file PhyloXML.py.

00561 
00562     def __eq__(self, other):
00563         if isinstance(other, Confidence):
00564             return self.value == other.value
00565         return self.value == other

Definition at line 666 of file PhyloXML.py.

00666 
00667     def __float__(self):
00668         return float(self.value)

def Bio.Phylo.PhyloXML.Confidence.__floordiv__ (   self,
  other 
)
C-style and old-style division in Py3.0+.

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

Definition at line 623 of file PhyloXML.py.

00623 
00624     def __floordiv__(self, other):
00625         """C-style and old-style division in Py3.0+.
00626 
00627         Also active in Py2.5+ with __future__.division import.
00628         """
00629         return self.value.__floordiv__(other)

def Bio.Phylo.PhyloXML.Confidence.__ge__ (   self,
  other 
)

Definition at line 584 of file PhyloXML.py.

00584 
00585     def __ge__(self, other):
00586         return not (self.value < other)

def Bio.Phylo.PhyloXML.Confidence.__gt__ (   self,
  other 
)

Definition at line 581 of file PhyloXML.py.

00581 
00582     def __gt__(self, other):
00583         return not (self <= other)

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).

Definition at line 551 of file PhyloXML.py.

00551 
00552     def __hash__(self):
00553         """Return the hash value of the object.
00554 
00555         Hash values are integers. They are used to quickly compare dictionary
00556         keys during a dictionary lookup. Numeric values that compare equal have
00557         the same hash value (even if they are of different types, as is the
00558         case for 1 and 1.0).
00559         """
00560         return id(self)

Definition at line 669 of file PhyloXML.py.

00669 
00670     def __int__(self):
00671         return int(self.value)

def Bio.Phylo.PhyloXML.Confidence.__le__ (   self,
  other 
)

Definition at line 578 of file PhyloXML.py.

00578 
00579     def __le__(self, other):
00580         return self < other or self == other

Definition at line 672 of file PhyloXML.py.

00672 
00673     def __long__(self):
00674         return long(self.value)
00675 

def Bio.Phylo.PhyloXML.Confidence.__lt__ (   self,
  other 
)

Definition at line 573 of file PhyloXML.py.

00573 
00574     def __lt__(self, other):
00575         if isinstance(other, Confidence):
00576             return self.value < other.value
00577         return self.value < other

def Bio.Phylo.PhyloXML.Confidence.__mod__ (   self,
  other 
)

Definition at line 633 of file PhyloXML.py.

00633 
00634     def __mod__(self, other):
00635         return self.value % other

def Bio.Phylo.PhyloXML.Confidence.__mul__ (   self,
  other 
)

Definition at line 601 of file PhyloXML.py.

00601 
00602     def __mul__(self, other):
00603         return self.value * other

def Bio.Phylo.PhyloXML.Confidence.__ne__ (   self,
  other 
)

Definition at line 566 of file PhyloXML.py.

00566 
00567     def __ne__(self, other):
00568         if isinstance(other, Confidence):
00569             return self.value != other.value
00570         return self.value != other

Definition at line 655 of file PhyloXML.py.

00655 
00656     def __neg__(self):
00657         return -self.value

Definition at line 658 of file PhyloXML.py.

00658 
00659     def __pos__(self):
00660         return self.value

def Bio.Phylo.PhyloXML.Confidence.__pow__ (   self,
  other,
  modulo = None 
)

Definition at line 645 of file PhyloXML.py.

00645 
00646     def __pow__(self, other, modulo=None):
00647         if modulo is not None:
00648             return pow(self.value, other, modulo)
00649         return pow(self.value, other)

def Bio.Phylo.PhyloXML.Confidence.__radd__ (   self,
  other 
)

Definition at line 592 of file PhyloXML.py.

00592 
00593     def __radd__(self, other):
00594         return other + self.value

def Bio.Phylo.PhyloXML.Confidence.__rdiv__ (   self,
  other 
)

Definition at line 610 of file PhyloXML.py.

00610 
00611     def __rdiv__(self, other):
00612         return other.__div__(self.value)

def Bio.Phylo.PhyloXML.Confidence.__rdivmod__ (   self,
  other 
)

Definition at line 642 of file PhyloXML.py.

00642 
00643     def __rdivmod__(self, other):
00644         return divmod(other, self.value)

def Bio.Phylo.BaseTree.TreeElement.__repr__ (   self) [inherited]
Show this object's constructor with its primitive arguments.

Definition at line 216 of file BaseTree.py.

00216 
00217     def __repr__(self):
00218         """Show this object's constructor with its primitive arguments."""
00219         def pair_as_kwarg_string(key, val):
00220             if isinstance(val, basestring):
00221                 return "%s='%s'" % (key, _sugar.trim_str(unicode(val)))
00222             return "%s=%s" % (key, val)
00223         return u'%s(%s)' % (self.__class__.__name__,
00224                             ', '.join(pair_as_kwarg_string(key, val)
00225                                   for key, val in self.__dict__.iteritems()
00226                                   if val is not None and
00227                                   type(val) in (str, int, float, bool, unicode)
00228                                   ))

def Bio.Phylo.PhyloXML.Confidence.__rfloordiv__ (   self,
  other 
)

Definition at line 630 of file PhyloXML.py.

00630 
00631     def __rfloordiv__(self, other):
00632         return other.__floordiv__(self.value)

def Bio.Phylo.PhyloXML.Confidence.__rmod__ (   self,
  other 
)

Definition at line 636 of file PhyloXML.py.

00636 
00637     def __rmod__(self, other):
00638         return other % self.value

def Bio.Phylo.PhyloXML.Confidence.__rmul__ (   self,
  other 
)

Definition at line 604 of file PhyloXML.py.

00604 
00605     def __rmul__(self, other):
00606         return other * self.value

def Bio.Phylo.PhyloXML.Confidence.__rpow__ (   self,
  other 
)

Definition at line 650 of file PhyloXML.py.

00650 
00651     def __rpow__(self, other):
00652         return pow(other, self.value)

def Bio.Phylo.PhyloXML.Confidence.__rsub__ (   self,
  other 
)

Definition at line 598 of file PhyloXML.py.

00598 
00599     def __rsub__(self, other):
00600         return other - self.value

def Bio.Phylo.PhyloXML.Confidence.__rtruediv__ (   self,
  other 
)

Definition at line 620 of file PhyloXML.py.

00620 
00621     def __rtruediv__(self, other):
00622         return other / self.value

def Bio.Phylo.PhyloXML.Confidence.__sub__ (   self,
  other 
)

Definition at line 595 of file PhyloXML.py.

00595 
00596     def __sub__(self, other):
00597         return self.value - other

def Bio.Phylo.PhyloXML.Confidence.__truediv__ (   self,
  other 
)
Rational-style division in Py3.0+.

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

Definition at line 613 of file PhyloXML.py.

00613 
00614     def __truediv__(self, other):
00615         """Rational-style division in Py3.0+.
00616 
00617         Also active in Py2.5+ with __future__.division import.
00618         """
00619         return self.value / other


Member Data Documentation

Definition at line 547 of file PhyloXML.py.

Definition at line 546 of file PhyloXML.py.


The documentation for this class was generated from the following file: