Line | |
---|
1 | #include "muscle.h" |
---|
2 | #include "msa.h" |
---|
3 | #include "profile.h" |
---|
4 | #include "pwpath.h" |
---|
5 | |
---|
6 | SCORE GlobalAlign4(ProfPos *PA, unsigned uLengthA, ProfPos *PB, |
---|
7 | unsigned uLengthB, PWPath &Path); |
---|
8 | |
---|
9 | SCORE AlignTwoProfs( |
---|
10 | const ProfPos *PA, unsigned uLengthA, WEIGHT wA, |
---|
11 | const ProfPos *PB, unsigned uLengthB, WEIGHT wB, |
---|
12 | PWPath &Path, ProfPos **ptrPout, unsigned *ptruLengthOut) |
---|
13 | { |
---|
14 | assert(uLengthA < 100000); |
---|
15 | assert(uLengthB < 100000); |
---|
16 | |
---|
17 | float r = (float) uLengthA/ (float) (uLengthB + 1); // +1 to prevent div 0 |
---|
18 | if (r < 1) |
---|
19 | r = 1/r; |
---|
20 | |
---|
21 | SCORE Score = GlobalAlign(PA, uLengthA, PB, uLengthB, Path); |
---|
22 | |
---|
23 | AlignTwoProfsGivenPath(Path, PA, uLengthB, wA/(wA + wB), PB, uLengthB, wB/(wA + wB), |
---|
24 | ptrPout, ptruLengthOut); |
---|
25 | |
---|
26 | #if HYDRO |
---|
27 | if (ALPHA_Amino == g_Alpha) |
---|
28 | Hydro(*ptrPout, *ptruLengthOut); |
---|
29 | #endif |
---|
30 | return Score; |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.