it = trim[query].begin();
int length = it->second - it->first;
-
+
//default is wanted = 10% of total length
if (windowSizes[query] > length) {
mothurOut("You have slected a window larger than your sequence length after all filters, masks and trims have been done. I will use the default 10% of sequence length.");
windowSizes[query] = length / 10;
}else if (windowSizes[query] == 0) { windowSizes[query] = length / 10; }
- else if (windowSizes[query] > (length / 20)) {
+ else if (windowSizes[query] > (length * 0.20)) {
mothurOut("You have selected a window that is larger than 20% of your sequence length. This is not recommended, but I will continue anyway."); mothurOutEndLine();
- }else if (windowSizes[query] < (length / 5)) {
+ }else if (windowSizes[query] < (length * 0.05)) {
mothurOut("You have selected a window that is smaller than 5% of your sequence length. This is not recommended, but I will continue anyway."); mothurOutEndLine();
}
out << IS[i][k].score << '\t';
//if (IS[i][k].score > chimeraCutoff) { isChimeric[i] = true; lastChimericWindowFound = k; }
}
-
+ out << endl;
//if (isChimeric[i]) {
//mothurOut(querySeqs[i]->getName() + "\tIS: " + toString(IS[i][lastChimericWindowFound].score) + "\tbreakpoint: " + toString(IS[i][lastChimericWindowFound].midpoint) + "\tleft parent: " + IS[i][lastChimericWindowFound].leftParent + "\tright parent: " + IS[i][lastChimericWindowFound].rightParent); mothurOutEndLine();
//out << endl << "chimera: YES" << endl;
}
}
+ mothurOut("This method does not determine if a sequence is chimeric, but allows you to make that determination based on the IS values."); mothurOutEndLine();
}
catch(exception& e) {
errorOut(e, "ChimeraCheckRDP", "print");
out << querySeqs[i]->getName() << "\tyes" << endl;
}else {
out << querySeqs[i]->getName() << "\tno" << endl;
- mothurOut(querySeqs[i]->getName() + "\tno"); mothurOutEndLine();
+ //mothurOut(querySeqs[i]->getName() + "\tno"); mothurOutEndLine();
}
printBlock(chimeraResults[i][0], out, i);
out << endl;
}else{
out << querySeqs[i]->getName() << "\tno" << endl;
- mothurOut(querySeqs[i]->getName() + "\tno"); mothurOutEndLine();
+ //mothurOut(querySeqs[i]->getName() + "\tno"); mothurOutEndLine();
}
}
if (seqMask != "") {
delete decalc;
}
-
-
}
catch(exception& e) {
errorOut(e, "ChimeraSlayer", "getChimeras");