source: branches/stable/GDE/MUSCLE/src/msadistmafft.h

Last change on this file was 10390, checked in by aboeckma, 11 years ago

added muscle sourcles amd makefile

File size: 528 bytes
Line 
1#ifndef MSADistMAFFT_h
2#define MSADistMAFFT_h
3
4#include "msadist.h"
5#include <math.h>
6
7extern double PctIdToMAFFTDist(double dPctId);
8
9class MSADistMAFFT : public MSADist
10        {
11public:
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.