X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=qualityscores.cpp;h=0b7bd0625b914d8a69b298a1b0e88187ddf6757c;hb=974f20de01dc6ae71bbb0a7baf8860059cd2f27f;hp=5b64b133a0c3df43cfb018c03d9867136661f100;hpb=19fcbbdba99658f5eca244803280f9ee7f9f6607;p=mothur.git diff --git a/qualityscores.cpp b/qualityscores.cpp index 5b64b13..0b7bd06 100644 --- a/qualityscores.cpp +++ b/qualityscores.cpp @@ -327,7 +327,7 @@ bool QualityScores::stripQualWindowAverage(Sequence& sequence, int stepSize, int return 1; } catch(exception& e) { - m->errorOut(e, "QualityScores", "flipQScores"); + m->errorOut(e, "QualityScores", "stripQualWindowAverage"); exit(1); } @@ -423,13 +423,13 @@ void QualityScores::updateReverseMap(vector >& reverseMap, int start try { int index = 0; - for(int i=stop-1;i>=start;i--){ + for(int i=stop-1;i>=start-1;i--){ reverseMap[index++][qScores[i]] += weight; } } catch(exception& e) { - m->errorOut(e, "QualityScores", "updateForwardMap"); + m->errorOut(e, "QualityScores", "updateReverseMap"); exit(1); } }