OpenStructure
|
#include <subst_weight_matrix.hh>
Public Types | |
enum | Preset { BLOSUM45 = 0 , BLOSUM62 = 1 , BLOSUM80 = 2 , BLOSUM100 = 3 , NUC44 = 4 } |
typedef short | WeightType |
Public Member Functions | |
SubstWeightMatrix () | |
void | AssignPreset (Preset p) |
WeightType | GetWeight (char aa_one, char aa_two) const |
WeightType | GetMinWeight () const |
WeightType | GetMaxWeight () const |
void | SetWeight (char aa_one, char aa_two, WeightType weight) |
void | SetName (const String &name) |
const String & | GetName () |
Static Public Attributes | |
static const int | ALPHABET_SIZE ='Z'-'A'+1 |
position-independet substitution weight matrix
Definition at line 39 of file subst_weight_matrix.hh.
typedef short WeightType |
Definition at line 42 of file subst_weight_matrix.hh.
enum Preset |
Enumerator | |
---|---|
BLOSUM45 | |
BLOSUM62 | |
BLOSUM80 | |
BLOSUM100 | |
NUC44 |
Definition at line 44 of file subst_weight_matrix.hh.
|
inline |
Initialize substitution matrix with zero.
In order to get a useful substitution weight matrix, use SetWeight(). Alternatively you may want to load the substitution from an info group.
Definition at line 53 of file subst_weight_matrix.hh.
void AssignPreset | ( | Preset | p | ) |
|
inline |
Get the maximal substitution weight of the matrix.
Definition at line 76 of file subst_weight_matrix.hh.
|
inline |
Get the minimal substitution weight of the matrix.
Definition at line 73 of file subst_weight_matrix.hh.
|
inline |
Definition at line 96 of file subst_weight_matrix.hh.
|
inline |
Get the substitution weight between two amino acids.
If the amino acid single letter code is unknown (e.g. '?') a weight of 0 is returned
Definition at line 63 of file subst_weight_matrix.hh.
|
inline |
Definition at line 94 of file subst_weight_matrix.hh.
|
inline |
Set the substitution weight between two amino acids.
The weight is only set if the amino acid single letter code is known (e.g. no weight is set for '?')
Definition at line 82 of file subst_weight_matrix.hh.
|
static |
Definition at line 43 of file subst_weight_matrix.hh.