X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=needlemanoverlap.cpp;fp=needlemanoverlap.cpp;h=d13925e3cff9f54c61df9435b7f9cb36f9468e34;hb=74844a60d80c6dd06e3fb02ee9b928424f9019b0;hp=80ba4ca0aec06ea796a5a9bd7fbe7522f362157a;hpb=a218321731df14d231bbc08e79906f757cf1540d;p=mothur.git diff --git a/needlemanoverlap.cpp b/needlemanoverlap.cpp index 80ba4ca..d13925e 100644 --- a/needlemanoverlap.cpp +++ b/needlemanoverlap.cpp @@ -24,8 +24,8 @@ /**************************************************************************************************/ -NeedlemanOverlap::NeedlemanOverlap(float gO, float m, float mm, int r) :// note that we don't have a gap extend -gap(gO), match(m), mismatch(mm), Alignment(r) { // the gap openning penalty is assessed for +NeedlemanOverlap::NeedlemanOverlap(float gO, float f, float mm, int r) :// note that we don't have a gap extend +gap(gO), match(f), mismatch(mm), Alignment(r) { // the gap openning penalty is assessed for try { // every gapped position for(int i=1;ierrorOut(e, "NeedlemanOverlap", "NeedlemanOverlap"); exit(1); } } @@ -54,7 +54,7 @@ void NeedlemanOverlap::align(string A, string B){ seqA = ' ' + A; lA = seqA.length(); // algorithm requires a dummy space at the beginning of each string seqB = ' ' + B; lB = seqB.length(); // algorithm requires a dummy space at the beginning of each string - if (lA > nRows) { mothurOut("One of your candidate sequences is longer than you longest template sequence. Your longest template sequence is " + toString(nRows) + ". Your candidate is " + toString(lA) + "."); mothurOutEndLine(); } + if (lA > nRows) { m->mothurOut("One of your candidate sequences is longer than you longest template sequence. Your longest template sequence is " + toString(nRows) + ". Your candidate is " + toString(lA) + "."); m->mothurOutEndLine(); } for(int i=1;ierrorOut(e, "NeedlemanOverlap", "align"); exit(1); }