if(rollingSum / (double)(i+1) < qThreshold){
end = i;
-// cout << i+1 << '\t' << seqName << '\t' << rollingSum / (double)(i+1) << endl;
break;
}
}
int seqLength = errorSeq.size();
int qIndex = start - 1;
- cout << start << '\t' << stop << '\t' << seqLength << endl;
+
for(int i=0;i<seqLength;i++){
if(errorSeq[i] == 'm') { qualErrorMap['m'][qScores[qIndex]] += weight; }
if (m->control_pressed) { errorSummaryFile.close(); errorSeqFile.close(); for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } return 0; }
Sequence query(queryFile);
- cout << "gotQuery" << endl;
int numParentSeqs = chimeraTest.analyzeQuery(query.getName(), query.getAligned());
int closestRefIndex = chimeraTest.getClosestRefIndex();
if(qualFileName != "" && reportFileName != ""){
report = ReportFile(reportFile);
- cout << "gotReport" << endl;
// int origLength = report.getQueryLength();
int startBase = report.getQueryStart();
int endBase = report.getQueryEnd();
quality = QualityScores(qualFile);
- cout << "gotQuality" << endl;
if(!ignoreSeq){
- cout << "not ignoring" << endl;
quality.updateQScoreErrorMap(qScoreErrorMap, minCompare.sequence, startBase, endBase, minCompare.weight);
- cout << "updateQScoreErrorMap" << endl;
quality.updateForwardMap(qualForwardMap, startBase, endBase, minCompare.weight);
- cout << "updateForwardMap" << endl;
quality.updateReverseMap(qualReverseMap, startBase, endBase, minCompare.weight);
- cout << "updateReverseMap" << endl;
}
}
}
index++;
- cout << "end of loop:\t" << index << endl;
- if(index % 1000 == 0){ cout << index << endl; }
+ if(index % 1000 == 0){ m->mothurOut(toString(index) + '\n'); }
}
queryFile.close();
errorSummaryFile.close();