Line | |
---|
1 | #ifndef MSADistMAFFT_h |
---|
2 | #define MSADistMAFFT_h |
---|
3 | |
---|
4 | #include "msadist.h" |
---|
5 | #include <math.h> |
---|
6 | |
---|
7 | extern double PctIdToMAFFTDist(double dPctId); |
---|
8 | |
---|
9 | class MSADistMAFFT : public MSADist |
---|
10 | { |
---|
11 | public: |
---|
12 | virtual double ComputeDist(const MSA &msa, unsigned uSeqIndex1, |
---|
13 | unsigned uSeqIndex2) |
---|
14 | { |
---|
15 | double dPctId = msa.GetPctIdentityPair(uSeqIndex1, uSeqIndex2); |
---|
16 | //if (dPctId < 0.05) |
---|
17 | // dPctId = 0.05; |
---|
18 | //double dDist = -log(dPctId); |
---|
19 | //return dDist; |
---|
20 | return PctIdToMAFFTDist(dPctId); |
---|
21 | } |
---|
22 | }; |
---|
23 | |
---|
24 | #endif // MSADistMAFFT_h |
---|
Note: See
TracBrowser
for help on using the repository browser.