X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=needlemanoverlap.cpp;fp=needlemanoverlap.cpp;h=1239beb1a2a9f61d3f8c2cec178161fb36a7b865;hb=f09bacac01a842a74c1c1b69070852cc969ff506;hp=d13925e3cff9f54c61df9435b7f9cb36f9468e34;hpb=83c530c577250f2bc4c3443b33d97449abf40f36;p=mothur.git diff --git a/needlemanoverlap.cpp b/needlemanoverlap.cpp index d13925e..1239beb 100644 --- a/needlemanoverlap.cpp +++ b/needlemanoverlap.cpp @@ -51,18 +51,21 @@ NeedlemanOverlap::~NeedlemanOverlap(){ /* do nothing */ } void NeedlemanOverlap::align(string A, string B){ try { + 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) { 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;i