/***********************************************************************/
Slayer::Slayer(int win, int increment, int parentThreshold, float div, int i, int snp) :
- windowSize(win), windowStep(increment), parentFragmentThreshold(parentThreshold), divRThreshold(div), iters(i), percentSNPSample(snp){}
+ windowSize(win), windowStep(increment), parentFragmentThreshold(parentThreshold), divRThreshold(div), iters(i), percentSNPSample(snp){ m = MothurOut::getInstance(); }
/***********************************************************************/
string Slayer::getResults(Sequence* query, vector<Sequence*> refSeqs) {
try {
}
}
catch(exception& e) {
- errorOut(e, "Slayer", "getResults");
+ m->errorOut(e, "Slayer", "getResults");
exit(1);
}
}
//check window size
if (length < (2*windowSize+windowStep)) {
- mothurOut("Your window size is too large for " + q->getName() + ". I will make the window size " + toString(length/4) + " which is 1/4 the filtered length."); mothurOutEndLine();
+ m->mothurOut("Your window size is too large for " + q->getName() + ". I will make the window size " + toString(length/4) + " which is 1/4 the filtered length."); m->mothurOutEndLine();
windowSize = length / 4;
}
}
catch(exception& e) {
- errorOut(e, "Slayer", "runBellerophon");
+ m->errorOut(e, "Slayer", "runBellerophon");
exit(1);
}
}
}
catch(exception& e) {
- errorOut(e, "Slayer", "getSNPS");
+ m->errorOut(e, "Slayer", "getSNPS");
exit(1);
}
}
}
catch(exception& e) {
- errorOut(e, "Slayer", "bootstrapSNPS");
+ m->errorOut(e, "Slayer", "bootstrapSNPS");
exit(1);
}
}
return percentID;
}
catch(exception& e) {
- errorOut(e, "Slayer", "snpQA");
+ m->errorOut(e, "Slayer", "snpQA");
exit(1);
}
}
}
catch(exception& e) {
- errorOut(e, "Slayer", "snpQB");
+ m->errorOut(e, "Slayer", "snpQB");
exit(1);
}
}
}
catch(exception& e) {
- errorOut(e, "Slayer", "snpAB");
+ m->errorOut(e, "Slayer", "snpAB");
exit(1);
}
}
return percentID;
}
catch(exception& e) {
- errorOut(e, "Slayer", "computePercentID");
+ m->errorOut(e, "Slayer", "computePercentID");
exit(1);
}
}
return maskMap;
}
catch(exception& e) {
- errorOut(e, "Slayer", "verticalFilter");
+ m->errorOut(e, "Slayer", "verticalFilter");
exit(1);
}
}