]> git.donarmstrong.com Git - mothur.git/blobdiff - qualityscores.cpp
added topdown parameter to pre.cluster. added more debugging output to bayesian...
[mothur.git] / qualityscores.cpp
index 5b64b133a0c3df43cfb018c03d9867136661f100..0b7bd0625b914d8a69b298a1b0e88187ddf6757c 100644 (file)
@@ -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<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);
        }
 }