Back to index

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

List of all members.

Public Member Functions

def __init__
def __len__
def __getattr__

Public Attributes

 name
 seq
 location
 length
 identical
 positives
 gaps

Detailed Description

Definition at line 96 of file Search.py.


Constructor & Destructor Documentation

def Bio.Search.HSPSeq.__init__ (   self,
  name,
  seq,
  location,
  identical,
  positives,
  gaps 
)

Definition at line 97 of file Search.py.

00097 
00098     def __init__(self, name, seq, location, identical, positives, gaps):
00099         _SeqLength.__init__(self, len(seq), identical, positives, gaps)
00100         self.name = name
00101         self.seq = seq
00102         self.location = location
00103         


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 101 of file Search.py.

Definition at line 99 of file Search.py.

Definition at line 79 of file Search.py.

Definition at line 100 of file Search.py.


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