]> git.donarmstrong.com Git - mothur.git/blobdiff - qualityscores.cpp
Changes to seq.error so that an alignment is not necessary
[mothur.git] / qualityscores.cpp
index 566b44c6bad55402fae1374aab0212547befe7cc..0b7bd0625b914d8a69b298a1b0e88187ddf6757c 100644 (file)
@@ -423,13 +423,13 @@ void QualityScores::updateReverseMap(vector<vector<int> >& 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);
        }
 }