Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.pairwise2.identity_match Class Reference

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes


Detailed Description

identity_match([match][, mismatch]) -> match_fn

Create a match function for use in an alignment.  match and
mismatch are the scores to give when two residues are equal or
unequal.  By default, match is 1 and mismatch is 0.

Definition at line 757 of file

Constructor & Destructor Documentation

def Bio.pairwise2.identity_match.__init__ (   self,
  match = 1,
  mismatch = 0 

Definition at line 765 of file

00766     def __init__(self, match=1, mismatch=0):
00767         self.match = match
        self.mismatch = mismatch

Member Function Documentation

def Bio.pairwise2.identity_match.__call__ (   self,

Definition at line 768 of file

00769     def __call__(self, charA, charB):
00770         if charA == charB:
00771             return self.match
00772         return self.mismatch

Member Data Documentation

Definition at line 766 of file

Definition at line 767 of file

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