1 | // source code generated by dimer.py |
---|
2 | |
---|
3 | static SCORE GapScoreMM(const ProfPos &PPA, const ProfPos &PPB) |
---|
4 | { |
---|
5 | return |
---|
6 | g_scoreGapOpen*(PPA.m_LL*PPB.m_LG + PPA.m_LG*PPB.m_LL + PPA.m_LG*PPB.m_GL + PPA.m_GL*PPB.m_LG) + |
---|
7 | g_scoreGapExtend*(PPA.m_LL*PPB.m_GG + PPA.m_GG*PPB.m_LL) + |
---|
8 | g_scoreGapAmbig*(PPA.m_GL*PPB.m_GG + PPA.m_GG*PPB.m_GL); |
---|
9 | } |
---|
10 | |
---|
11 | static SCORE GapScoreMD(const ProfPos &PPA, const ProfPos &PPB) |
---|
12 | { |
---|
13 | return |
---|
14 | g_scoreGapOpen*(PPA.m_LL*PPB.m_LL + PPA.m_LL*PPB.m_GL + PPA.m_GL*PPB.m_LL + PPA.m_GL*PPB.m_GL) + |
---|
15 | g_scoreGapExtend*(PPA.m_LL*PPB.m_LG + PPA.m_LL*PPB.m_GG) + |
---|
16 | g_scoreGapAmbig*(PPA.m_GL*PPB.m_LG + PPA.m_GL*PPB.m_GG); |
---|
17 | } |
---|
18 | |
---|
19 | static SCORE GapScoreMI(const ProfPos &PPA, const ProfPos &PPB) |
---|
20 | { |
---|
21 | return |
---|
22 | g_scoreGapOpen*(PPA.m_LL*PPB.m_LL + PPA.m_LL*PPB.m_GL + PPA.m_GL*PPB.m_LL + PPA.m_GL*PPB.m_GL) + |
---|
23 | g_scoreGapExtend*(PPA.m_LG*PPB.m_LL + PPA.m_GG*PPB.m_LL) + |
---|
24 | g_scoreGapAmbig*(PPA.m_LG*PPB.m_GL + PPA.m_GG*PPB.m_GL); |
---|
25 | } |
---|
26 | |
---|
27 | static SCORE GapScoreDM(const ProfPos &PPA, const ProfPos &PPB) |
---|
28 | { |
---|
29 | return |
---|
30 | g_scoreGapOpen*(PPA.m_LG*PPB.m_LL + PPA.m_LG*PPB.m_GL) + |
---|
31 | g_scoreGapExtend*(PPA.m_LL*PPB.m_LG + PPA.m_LL*PPB.m_GG) + |
---|
32 | g_scoreGapAmbig*(PPA.m_GL*PPB.m_LG + PPA.m_GL*PPB.m_GG + PPA.m_GG*PPB.m_LL + PPA.m_GG*PPB.m_GL); |
---|
33 | } |
---|
34 | |
---|
35 | static SCORE GapScoreDD(const ProfPos &PPA, const ProfPos &PPB) |
---|
36 | { |
---|
37 | return |
---|
38 | g_scoreGapExtend*(PPA.m_LL*PPB.m_LL + PPA.m_LL*PPB.m_LG + PPA.m_LL*PPB.m_GL + PPA.m_LL*PPB.m_GG) + |
---|
39 | g_scoreGapAmbig*(PPA.m_GL*PPB.m_LL + PPA.m_GL*PPB.m_LG + PPA.m_GL*PPB.m_GL + PPA.m_GL*PPB.m_GG); |
---|
40 | } |
---|
41 | |
---|
42 | static SCORE GapScoreDI(const ProfPos &PPA, const ProfPos &PPB) |
---|
43 | { |
---|
44 | return |
---|
45 | g_scoreGapOpen*(PPA.m_LL*PPB.m_LL + PPA.m_LL*PPB.m_GL + PPA.m_GL*PPB.m_LL + PPA.m_GL*PPB.m_GL) + |
---|
46 | g_scoreGapAmbig*(PPA.m_LG*PPB.m_LL + PPA.m_LG*PPB.m_GL + PPA.m_GG*PPB.m_LL + PPA.m_GG*PPB.m_GL); |
---|
47 | } |
---|
48 | |
---|
49 | static SCORE GapScoreIM(const ProfPos &PPA, const ProfPos &PPB) |
---|
50 | { |
---|
51 | return |
---|
52 | g_scoreGapOpen*(PPA.m_LL*PPB.m_LG + PPA.m_GL*PPB.m_LG) + |
---|
53 | g_scoreGapExtend*(PPA.m_LG*PPB.m_LL + PPA.m_GG*PPB.m_LL) + |
---|
54 | g_scoreGapAmbig*(PPA.m_LL*PPB.m_GG + PPA.m_LG*PPB.m_GL + PPA.m_GL*PPB.m_GG + PPA.m_GG*PPB.m_GL); |
---|
55 | } |
---|
56 | |
---|
57 | static SCORE GapScoreID(const ProfPos &PPA, const ProfPos &PPB) |
---|
58 | { |
---|
59 | return |
---|
60 | g_scoreGapOpen*(PPA.m_LL*PPB.m_LL + PPA.m_LL*PPB.m_GL + PPA.m_GL*PPB.m_LL + PPA.m_GL*PPB.m_GL) + |
---|
61 | g_scoreGapAmbig*(PPA.m_LL*PPB.m_LG + PPA.m_LL*PPB.m_GG + PPA.m_GL*PPB.m_LG + PPA.m_GL*PPB.m_GG); |
---|
62 | } |
---|
63 | |
---|
64 | static SCORE GapScoreII(const ProfPos &PPA, const ProfPos &PPB) |
---|
65 | { |
---|
66 | return |
---|
67 | g_scoreGapExtend*(PPA.m_LL*PPB.m_LL + PPA.m_LG*PPB.m_LL + PPA.m_GL*PPB.m_LL + PPA.m_GG*PPB.m_LL) + |
---|
68 | g_scoreGapAmbig*(PPA.m_LL*PPB.m_GL + PPA.m_LG*PPB.m_GL + PPA.m_GL*PPB.m_GL + PPA.m_GG*PPB.m_GL); |
---|
69 | } |
---|