Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.Search._SeqLength Class Reference
Inheritance diagram for Bio.Search._SeqLength:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def __len__
def __getattr__

Public Attributes

 length
 identical
 positives
 gaps

Detailed Description

Definition at line 75 of file Search.py.


Constructor & Destructor Documentation

def Bio.Search._SeqLength.__init__ (   self,
  length,
  identical,
  positives,
  gaps 
)

Reimplemented in Bio.Search.HomologySeq.

Definition at line 76 of file Search.py.

00076 
00077     def __init__(self, length, identical, positives, gaps):
00078         self.length = length
00079         self.identical = identical
00080         self.positives = positives
        self.gaps = gaps

Member Function Documentation

def Bio.Search._SeqLength.__getattr__ (   self,
  name 
)

Definition at line 83 of file Search.py.

00083 
00084     def __getattr__(self, name):
00085         if name == "frac_identical":
00086             return float(self.identical) / self.length
00087         elif name == "frac_positives":
00088             return float(self.positives) / self.length
00089         raise AttributeError(name)
00090 

Definition at line 81 of file Search.py.

00081 
00082     def __len__(self):
        return self.length

Member Data Documentation

Definition at line 80 of file Search.py.

Definition at line 78 of file Search.py.

Definition at line 77 of file Search.py.

Definition at line 79 of file Search.py.


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