/**************************************************************************************************/
TaxEqualizer::TaxEqualizer(string tfile, int c) : cutoff(c) {
try {
+ m = MothurOut::getInstance();
containsConfidence = false;
ifstream inTax;
if ((cutoff != -1) && (cutoff < highestLevel)) {
highestLevel = cutoff;
}else if (cutoff > highestLevel) {
- mothurOut("The highest level taxonomy you have is " + toString(highestLevel) + " and your cutoff is " + toString(cutoff) + ". I will set the cutoff to " + toString(highestLevel));
- mothurOutEndLine();
+ m->mothurOut("The highest level taxonomy you have is " + toString(highestLevel) + " and your cutoff is " + toString(cutoff) + ". I will set the cutoff to " + toString(highestLevel));
+ m->mothurOutEndLine();
}
inTax.close();
}
catch(exception& e) {
- errorOut(e, "TaxEqualizer", "TaxEqualizer");
+ m->errorOut(e, "TaxEqualizer", "TaxEqualizer");
exit(1);
}
}
}
catch(exception& e) {
- errorOut(e, "TaxEqualizer", "getHighestLevel");
+ m->errorOut(e, "TaxEqualizer", "getHighestLevel");
exit(1);
}
}
}
}
catch(exception& e) {
- errorOut(e, "TaxEqualizer", "extendTaxonomy");
+ m->errorOut(e, "TaxEqualizer", "extendTaxonomy");
exit(1);
}
}
tax += ";";
}
catch(exception& e) {
- errorOut(e, "TaxEqualizer", "truncateTaxonomy");
+ m->errorOut(e, "TaxEqualizer", "truncateTaxonomy");
exit(1);
}
}
tax = newTax;
}
catch(exception& e) {
- errorOut(e, "TaxEqualizer", "removeConfidences");
+ m->errorOut(e, "TaxEqualizer", "removeConfidences");
exit(1);
}
}