}
//**********************************************************************************************************************
+template<class T>
+T fromString(const string& s){
+ istringstream stream (s);
+ T t;
+ stream >> t;
+ return t;
+}
+
+//**********************************************************************************************************************
+
#endif
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; }
*
*/
+#include "mothur.h"
+#include "mothurout.h"
#include "reportfile.h"
/**************************************************************************************************/
repFile >> templateName;
repFile >> templateLength;
repFile >> searchMethod;
- repFile >> searchScore;
+ repFile >> dummySearchScore;
repFile >> alignmentMethod;
repFile >> queryStart;
repFile >> queryEnd;
repFile >> longestInsert;
repFile >> simBtwnQueryAndTemplate;
+ if(dummySearchScore != "nan"){
+ istringstream stream(dummySearchScore);
+ stream >> searchScore;
+ }
+ else{
+ searchScore = 0;
+ }
+
m->gobble(repFile);
}
catch(exception& e) {
*/
-#include "mothur.h"
-#include "mothurout.h"
/**************************************************************************************************/
MothurOut* m;
- string queryName, templateName, searchMethod, alignmentMethod;
+ string queryName, templateName, searchMethod, alignmentMethod, dummySearchScore;
int queryLength, templateLength, queryStart, queryEnd, templateStart, templateEnd, pairwiseAlignmentLength, gapsInQuery, gapsInTemplate, longestInsert;
float searchScore, simBtwnQueryAndTemplate;
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; }
}
queryFile.close();