|
NCBI C++ ToolKit
|
#include <util/tables/tables_export.h>
Include dependency graph for raw_scoremat.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | SNCBIPackedScoreMatrix |
| struct | SNCBIFullScoreMatrix |
Defines | |
| #define | NCBI_FSM_DIM 128 |
| Recommended approach: unpack and index directly. | |
Typedefs | |
| typedef signed char | TNCBIScore |
| data types | |
| typedef struct SNCBIPackedScoreMatrix | SNCBIPackedScoreMatrix |
| typedef struct SNCBIFullScoreMatrix | SNCBIFullScoreMatrix |
Functions | |
| int | NCBISM_GetIndex (const SNCBIPackedScoreMatrix *sm, int aa) |
| Map a standard residue code into an index suitable for a particular packed score matrix. | |
| TNCBIScore | NCBISM_GetScore (const SNCBIPackedScoreMatrix *sm, int aa1, int aa2) |
| Look up an entry in a packed score matrix. | |
| void | NCBISM_Unpack (const SNCBIPackedScoreMatrix *psm, SNCBIFullScoreMatrix *fsm) |
| Expand a packed score matrix into an unpacked one, which callers can proceed to index directly by standard residue values (NCBIstdaa or case-insensitive NCBIeaa, which are conveniently disjoint) modulo gaps in coverage, for which the unpacked matrix will hold the packed one's default score. | |
| const SNCBIPackedScoreMatrix * | NCBISM_GetStandardMatrix (const char *name) |
Variables | |
| const SNCBIPackedScoreMatrix | NCBISM_Blosum45 |
| The standard matrices. | |
| const SNCBIPackedScoreMatrix | NCBISM_Blosum50 |
| const SNCBIPackedScoreMatrix | NCBISM_Blosum62 |
| const SNCBIPackedScoreMatrix | NCBISM_Blosum80 |
| const SNCBIPackedScoreMatrix | NCBISM_Blosum90 |
| const SNCBIPackedScoreMatrix | NCBISM_Pam30 |
| const SNCBIPackedScoreMatrix | NCBISM_Pam70 |
| const SNCBIPackedScoreMatrix | NCBISM_Pam250 |
| #define NCBI_FSM_DIM 128 |
Recommended approach: unpack and index directly.
Definition at line 85 of file raw_scoremat.h.
Referenced by CAlnVec::CalculateScore(), CQualityScoringMethod::CalculateScores(), NCBISM_Unpack(), CSplicedAligner16::ScoreFromTranscript(), CSplicedAligner32::ScoreFromTranscript(), CPSSMAligner::ScoreFromTranscript(), CNWAligner::ScoreFromTranscript(), CSplicedAligner16::x_Align(), CSplicedAligner32::x_Align(), CBandAligner::x_Align(), CNWAligner::x_Align(), CMMAligner::x_RunBtm(), CMMAligner::x_RunTerm(), and CMMAligner::x_RunTop().
| typedef struct SNCBIFullScoreMatrix SNCBIFullScoreMatrix |
| typedef struct SNCBIPackedScoreMatrix SNCBIPackedScoreMatrix |
| typedef signed char TNCBIScore |
data types
Definition at line 45 of file raw_scoremat.h.
| int NCBISM_GetIndex | ( | const SNCBIPackedScoreMatrix * | sm, |
| int | aa | ||
| ) |
Map a standard residue code into an index suitable for a particular packed score matrix.
Calling this function is not as fast as working with unpacked matrices, but avoids the overhead of producing them.
| sm | Packed score matrix of interest. |
| aa | Standard amino acid code; may be either NCBIstdaa or case-insensitive NCBIeaa (which are conveniently disjoint), modulo gaps in coverage. (The standard built-in matrices don't cover O or U.) |
Definition at line 50 of file raw_scoremat.c.
References kNCBIstdaa, and SNCBIPackedScoreMatrix::symbols.
Referenced by NCBISM_GetScore().
| TNCBIScore NCBISM_GetScore | ( | const SNCBIPackedScoreMatrix * | sm, |
| int | aa1, | ||
| int | aa2 | ||
| ) |
Look up an entry in a packed score matrix.
Calling this function is not as fast as working with unpacked matrices, but avoids the overhead of producing them.
| sm | Packed score matrix of interest. |
| aa1,aa2 | Standard amino acid code; may be either NCBIstdaa or case-insensitive NCBIeaa (which are conveniently disjoint), modulo gaps in coverage. (The standard built-in matrices don't cover O or U.) |
Definition at line 66 of file raw_scoremat.c.
References SNCBIPackedScoreMatrix::defscore, NCBISM_GetIndex(), SNCBIPackedScoreMatrix::scores, and SNCBIPackedScoreMatrix::symbols.
Referenced by BlastScoreBlkProteinMatrixLoad(), BOOST_AUTO_TEST_CASE(), and CPssmInputTestData::FindNonIdenticalHighScoringResidue().
| const SNCBIPackedScoreMatrix* NCBISM_GetStandardMatrix | ( | const char * | name | ) |
Definition at line 125 of file raw_scoremat.c.
References NCBISM_Blosum45, NCBISM_Blosum50, NCBISM_Blosum62, NCBISM_Blosum80, NCBISM_Blosum90, NCBISM_Pam250, NCBISM_Pam30, NCBISM_Pam70, s_NCBISM_StartsWith(), and util::strcmp().
Referenced by BlastScoreBlkProteinMatrixLoad(), CProteinAlignText::CProteinAlignText(), CScore_TblastnScore::Get(), and CAlignFormatUtil::GetAsciiProteinMatrix().
| void NCBISM_Unpack | ( | const SNCBIPackedScoreMatrix * | psm, |
| SNCBIFullScoreMatrix * | fsm | ||
| ) |
Expand a packed score matrix into an unpacked one, which callers can proceed to index directly by standard residue values (NCBIstdaa or case-insensitive NCBIeaa, which are conveniently disjoint) modulo gaps in coverage, for which the unpacked matrix will hold the packed one's default score.
(The standard built-in matrices don't cover O or U.)
| sm | Packed score matrix to expand. |
| fsm | Storage for the resulting full score matrix. |
Definition at line 80 of file raw_scoremat.c.
References SNCBIPackedScoreMatrix::defscore, kNCBIstdaa, NCBI_FSM_DIM, SNCBIFullScoreMatrix::s, SNCBIPackedScoreMatrix::scores, and SNCBIPackedScoreMatrix::symbols.
Referenced by CAlnVec::CalculateScore(), CGeneralScoreMatrix::CGeneralScoreMatrix(), CProteinAlignText::CProteinAlignText(), CSubstMatrix::CSubstMatrix(), CScore_TblastnScore::Get(), CAlignFormatUtil::GetAsciiProteinMatrix(), GetBLOSUM62Score(), ScoreMatrix::initialize(), CNWAligner::SetScoreMatrix(), CQualityScoringMethodAA::SetSubstitutionMatrix(), and CCmdLineBlastXMLReportData::x_FillScoreMatrix().
The standard matrices.
Definition at line 92 of file sm_blosum45.c.
Referenced by CGeneralScoreMatrix::CGeneralScoreMatrix(), ScoreMatrix::initialize(), CMatrixScoringMethod::Load(), NCBISM_GetStandardMatrix(), s_BuiltInSM(), CCmdLineBlastXMLReportData::x_FillScoreMatrix(), and CMultiAligner::x_SetScoreMatrix().
Definition at line 92 of file sm_blosum50.c.
Referenced by NCBISM_GetStandardMatrix(), and CCmdLineBlastXMLReportData::x_FillScoreMatrix().
Definition at line 92 of file sm_blosum62.c.
Referenced by BOOST_AUTO_TEST_CASE(), CAlnVec::CalculateScore(), CGeneralScoreMatrix::CGeneralScoreMatrix(), CQualityScoringMethodAA::CQualityScoringMethodAA(), CSubstMatrix::CSubstMatrix(), GetBLOSUM62Score(), ScoreMatrix::initialize(), CMatrixScoringMethod::Load(), NCBISM_GetStandardMatrix(), s_BuiltInSM(), CPssmInputTestData::SetupMsaHasUnalignedRegion(), CCreateNeedlemanWunschJob::x_CreateProjectItems(), CCmdLineBlastXMLReportData::x_FillScoreMatrix(), CAppNWA::x_RunOnPair(), and CMultiAligner::x_SetScoreMatrix().
Definition at line 92 of file sm_blosum80.c.
Referenced by CGeneralScoreMatrix::CGeneralScoreMatrix(), ScoreMatrix::initialize(), CMatrixScoringMethod::Load(), NCBISM_GetStandardMatrix(), s_BuiltInSM(), CCmdLineBlastXMLReportData::x_FillScoreMatrix(), and CMultiAligner::x_SetScoreMatrix().
Definition at line 92 of file sm_blosum90.c.
Referenced by NCBISM_GetStandardMatrix(), and CCmdLineBlastXMLReportData::x_FillScoreMatrix().
Definition at line 92 of file sm_pam250.c.
Referenced by CGeneralScoreMatrix::CGeneralScoreMatrix(), ScoreMatrix::initialize(), CMatrixScoringMethod::Load(), NCBISM_GetStandardMatrix(), s_BuiltInSM(), CCmdLineBlastXMLReportData::x_FillScoreMatrix(), and CMultiAligner::x_SetScoreMatrix().
Definition at line 92 of file sm_pam30.c.
Referenced by CGeneralScoreMatrix::CGeneralScoreMatrix(), ScoreMatrix::initialize(), CMatrixScoringMethod::Load(), NCBISM_GetStandardMatrix(), s_BuiltInSM(), CCmdLineBlastXMLReportData::x_FillScoreMatrix(), and CMultiAligner::x_SetScoreMatrix().
Definition at line 92 of file sm_pam70.c.
Referenced by CGeneralScoreMatrix::CGeneralScoreMatrix(), ScoreMatrix::initialize(), CMatrixScoringMethod::Load(), NCBISM_GetStandardMatrix(), s_BuiltInSM(), CCmdLineBlastXMLReportData::x_FillScoreMatrix(), and CMultiAligner::x_SetScoreMatrix().
1.7.5.1
Modified on Wed May 23 13:24:46 2012 by modify_doxy.py rev. 337098