OpenStructure
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
mat.py
Go to the documentation of this file.
1 from ost.seq.alg import SubstWeightMatrix
2 
3 def _InitMatrix(preset_enum):
4  mat = SubstWeightMatrix()
5  mat.AssignPreset(preset_enum)
6  return mat
7 
8 BLOSUM45 = _InitMatrix(SubstWeightMatrix.Preset.BLOSUM45)
9 BLOSUM62 = _InitMatrix(SubstWeightMatrix.Preset.BLOSUM62)
10 BLOSUM80 = _InitMatrix(SubstWeightMatrix.Preset.BLOSUM80)
11 BLOSUM100 = _InitMatrix(SubstWeightMatrix.Preset.BLOSUM100)
12 IDENTITY = _InitMatrix(SubstWeightMatrix.Preset.IDENTITY)
13 MATCH = _InitMatrix(SubstWeightMatrix.Preset.MATCH)
14 NUC44 = _InitMatrix(SubstWeightMatrix.Preset.NUC44)
15 
16 __all__=['BLOSUM45','BLOSUM62','BLOSUM80','BLOSUM100', 'IDENTITY', 'MATCH',
17  'NUC44']
position-independet substitution weight matrix