class Filters {
public:
- Filters() {};
+ Filters() { m = MothurOut::getInstance(); };
~Filters(){};
string getFilter() { return filter; }
void doHard(string hard) {
ifstream fileHandle;
- openInputFile(hard, fileHandle);
+ m->openInputFile(hard, fileHandle);
fileHandle >> filter;
fileHandle.close();
+
+ if (filter.length() != alignmentLength) { m->mothurOut("[ERROR]: Sequences are not all the same length as the filter, please correct.\n"); m->control_pressed = true; }
}
void getFreqs(Sequence seq) {
int alignmentLength, numSeqs;
float soft;
char trump;
+ MothurOut* m;
};