Package Bio :: Module pairwise2 :: Class dictionary_match
[hide private]
[frames] | no frames]

Class dictionary_match

source code

object --+
         |
        dictionary_match

dictionary_match(score_dict[, symmetric]) -> match_fn

Create a match function for use in an alignment. score_dict is a dictionary where the keys are tuples (residue 1, residue 2) and the values are the match scores between those residues. symmetric is a flag that indicates whether the scores are symmetric. If true, then if (res 1, res 2) doesn't exist, I will use the score at (res 2, res 1).

Instance Methods [hide private]
match_fn
__init__(score_dict, symmetric=...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__call__(self, charA, charB) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(score_dict, symmetric=...)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Returns: match_fn
Overrides: object.__init__
(inherited documentation)