Back to index

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

List of all members.

Public Member Functions

def __init__
def __len__
def __getattr__

Public Attributes

 seq
 length
 identical
 positives
 gaps

Detailed Description

Definition at line 91 of file Search.py.


Constructor & Destructor Documentation

def Bio.Search.HomologySeq.__init__ (   self,
  seq,
  identical,
  positives,
  gaps 
)

Reimplemented from Bio.Search._SeqLength.

Definition at line 92 of file Search.py.

00092 
00093     def __init__(self, seq, identical, positives, gaps):
00094         _SeqLength.__init__(self, len(seq), identical, positives, gaps)
00095         self.seq = seq


Member Function Documentation

def Bio.Search._SeqLength.__getattr__ (   self,
  name 
) [inherited]

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 

def Bio.Search._SeqLength.__len__ (   self) [inherited]

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.

Definition at line 94 of file Search.py.


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