[ GAMB | Source | Keywords | Summary | Ancestors | All Members | Descendants ]
public: | |
class | ScoreMatrix ; |
float | score(int i,int j)const ; |
float | minValue()const ; |
float | maxValue()const ; |
void | normDiagonal() |
void | reverseValueDiagonal() |
class | Hydrophobic; |
class | PAM250; |
class | BLOSUM62; |
template< class TMolecule,class TMatch> float | calcScore( const TMolecule& pdbModel, const TMolecule& pdbTarget, const Match& match, const ScoreMatrix& m_scoreMtrx)const |
protected: |
Back to the top of AminoAcidScore
Back to the top of AminoAcidScore
copyright: SAMBA Group , Tel-Aviv Univ. Israel, 1997, 2003.
Back to the top of AminoAcidScore
Back to the top of AminoAcidScore
vector<Atom> vModel; vector<Atom> vTarget; //... //fill atom information into vectors vModel,vTarget //... vector<Match*> vMatches; //.. //find some matches //... AminoAcidScore::PAM250 pam250; //define score matrix AminoAcidScore seqScore; //calculate and output PAM250 score for each found match. for(int i=0;i < vMatches.size();i++){ float score=seqScore.calcScore(vModel, vTarget, *vMatches[i], pam250); score=score/vMatches[i].size(); //normolize the score cout<<score<<endl; }
Function calcScore is a template that is defined by 2 classes:
Class TMolecule should support the following:
Class TMatch should support the following:
If one wishes to create its own score matrix just see how PAM250 class
is defined.
Back to the top of AminoAcidScore
Back to the top of AminoAcidScore
Function is currently defined inline. Back to the top of AminoAcidScore
Function is currently defined inline. Back to the top of AminoAcidScore
Function is currently defined inline. Back to the top of AminoAcidScore
Back to the top of AminoAcidScore
Back to the top of AminoAcidScore
Function is currently defined inline. Back to the top of AminoAcidScore
Function is currently defined inline. Back to the top of AminoAcidScore
Function is currently defined inline. Back to the top of AminoAcidScore
Back to the top of AminoAcidScore Back to the top of AminoAcidScore
Back to the top of AminoAcidScore
Back to the top of AminoAcidScore
Molecule<Atom> pdbRec;
pdbRec[int index].residueType(); //this function returns one-letter abbreviation of amino acid residue.
Match match;
match[i].model; //returns index in pdbRec
match[i].scene; //returns index in pdbRec
class ScoreMatrix ;
ScoreMatrix class defines the score for each pair of amino acid residues
class ScoreMatrix{
protected:
float m_fScore[MAX_AA][MAX_AA];
float m_fMax;
float m_fMin;
float score(int i,int j)const ;
Returns the score
float score(int i,int j)const
;
float minValue()const ;
Returns min score value
float minValue()const ;
float maxValue()const ;
Return max score value
float maxValue()const ;
void normDiagonal()
sets all diagonal elements to sum(a_ii)/20
usefull for computing conservation score.
void normDiagonal()
void reverseValueDiagonal()
reverses the value of diagonal elements, i.e. the higest value becomes
the lowest value.
usefull for computing conservation score.
void reverseValueDiagonal()
class Hydrophobic;
Extends ScoreMatrix. The score is defined in the following way:
Hydrophobic matched with Hydrophobic receives 1.
Hydrophilic matched with Hydrophilic receives 1.
Otherwise -1.
class Hydrophobic:public ScoreMatrix{
public:
////Constructor. Complexity O(400).
Hydrophobic();
};
class PAM250;
Extends ScoreMatrix. The score is defined as in PAM250 matrix.
class PAM250:public ScoreMatrix{
public:
////Constructor. Complexity O(400).
PAM250();
};
class BLOSUM62;
Extends ScoreMatrix. The score is defined as in BLOSUM62 matrix.
class BLOSUM62:public ScoreMatrix{
public:
////Constructor. Complexity O(400).
BLOSUM62();
};
template< class TMolecule,class TMatch> float calcScore( const TMolecule& pdbModel, const TMolecule& pdbTarget, const Match& match, const ScoreMatrix& m_scoreMtrx)const
Returns the score of two matched sequences.Complexity O(match.size()).
template< class TMolecule,class TMatch>
float calcScore( const TMolecule& pdbModel,
const TMolecule& pdbTarget,
const Match& match,
const ScoreMatrix& m_scoreMtrx)const
All Members
public: class ScoreMatrix ; float score(int i,int j)const ; float minValue()const ; float maxValue()const ; void normDiagonal() void reverseValueDiagonal() class Hydrophobic; class PAM250; class BLOSUM62; template< class TMolecule,class TMatch> float calcScore( const TMolecule& pdbModel, const TMolecule& pdbTarget, const Match& match, const ScoreMatrix& m_scoreMtrx)const protected: Ancestors
Class does not inherit from any other class.Descendants
Class is not inherited by any others.
Generated from source by the Cocoon utilities on Sun Nov 15 13:35:25 2009
.