[ 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:
Molecule<Atom> pdbRec; pdbRec[int index].residueType(); //this function returns one-letter abbreviation of amino acid residue.
Class TMatch should support the following:
Match match; match[i].model; //returns index in pdbRec match[i].scene; //returns index in pdbRec
If one wishes to create its own score matrix just see how PAM250 class is defined.
Back to the top of AminoAcidScore
class ScoreMatrix{ protected: float m_fScore[MAX_AA][MAX_AA]; float m_fMax; float m_fMin;
Back to the top of AminoAcidScore
float score(int i,int j)const ;
Function is currently defined inline.
Back to the top of AminoAcidScore
float minValue()const ;
Function is currently defined inline.
Back to the top of AminoAcidScore
float maxValue()const ;
Function is currently defined inline.
Back to the top of AminoAcidScore
void normDiagonal()
Back to the top of AminoAcidScore
void reverseValueDiagonal()
Back to the top of AminoAcidScore
class Hydrophobic:public ScoreMatrix{ public: ////Constructor. Complexity O(400). Hydrophobic(); };
Function is currently defined inline.
Back to the top of AminoAcidScore
class PAM250:public ScoreMatrix{ public: ////Constructor. Complexity O(400). PAM250(); };
Function is currently defined inline.
Back to the top of AminoAcidScore
class BLOSUM62:public ScoreMatrix{ public: ////Constructor. Complexity O(400). BLOSUM62(); };
Function is currently defined inline.
Back to the top of AminoAcidScore
template< class TMolecule,class TMatch> float calcScore( const TMolecule& pdbModel, const TMolecule& pdbTarget, const Match& match, const ScoreMatrix& m_scoreMtrx)const
Back to the top of AminoAcidScore
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
Back to the top of AminoAcidScore
Report problems to jkotula@unimax.com