X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=alnparams.cpp;h=d1b90364212dc4aa41bd275166e22cf37afc2038;hb=4f2c7f477a1ef2d60a1c0c84ab1ba8243af67f87;hp=41ee738027921b1a217544a67a449ff0dc5fb761;hpb=1e8d08e96f4fe99604a6b3502568de464bf60891;p=mothur.git diff --git a/alnparams.cpp b/alnparams.cpp index 41ee738..d1b9036 100644 --- a/alnparams.cpp +++ b/alnparams.cpp @@ -1,5 +1,3 @@ -//uchime by Robert C. Edgar http://drive5.com/uchime This code is donated to the public domain. - #include "myutils.h" #include // for FLT_MAX #include "mx.h" @@ -8,12 +6,12 @@ #define TEST 0 -void SetBLOSUM62(); +void SetBLOSUM62(); void SetNucSubstMx(double Match, double Mismatch); void ReadSubstMx(const string &FileName, Mx &Mxf); - -extern Mx g_SubstMxf; -extern float **g_SubstMx; + +extern Mx g_SubstMxf; +extern float **g_SubstMx; void AlnParams::Clear() { @@ -315,14 +313,14 @@ void AlnParams::SetPenalties(const string &OpenStr, const string &ExtStr) void AlnParams::SetMxFromCmdLine(bool IsNucleo) { if (IsNucleo) - SetNucSubstMx(opt_match, opt_mismatch); + SetNucSubstMx(opt_match, opt_mismatch); else { if (opt_matrix == "") { SubstMxName = "BLOSUM62"; - SetBLOSUM62(); - } + SetBLOSUM62(); + } else { ReadSubstMx(opt_matrix, g_SubstMxf); @@ -363,9 +361,9 @@ void AlnParams::InitFromCmdLine(bool IsNucleo) // Global if (IsNucleo) - Init4(g_SubstMx, -10.0, -1.0, -0.5, -0.5); + Init4(g_SubstMx, -10.0, -1.0, -0.5, -0.5); else - Init4(g_SubstMx, -17.0, -1.0, -0.5, -0.5); + Init4(g_SubstMx, -17.0, -1.0, -0.5, -0.5); SetPenalties(opt_gapopen, opt_gapext); }