//get labels you want to keep
labels = m->readAccnos(accnosfile);
+
+ if (m->debug) { m->mothurOut("[DEBUG]: numlabels = " + toString(labels.size()) + "\n"); }
if (m->control_pressed) { return 0; }
int removedCount = 0;
//read headers
- string headers = m->getline(in);
+ string headers = m->getline(in); m->gobble(in);
out << headers << endl;
while (!in.eof()) {
in >> otu >> size >> tax; m->gobble(in);
+ if (m->debug) { m->mothurOut("[DEBUG]: " + otu + toString(size) + tax + "\n"); }
+
if (labels.count(otu) == 0) {
wroteSomething = true;
out << otu << '\t' << size << '\t' << tax << endl;
int removedCount = 0;
//read headers
- string headers = m->getline(in);
+ string headers = m->getline(in); m->gobble(in);
out << headers << endl;
while (!in.eof()) {
int removedCount = 0;
//read headers
- string headers = m->getline(in);
+ string headers = m->getline(in); m->gobble(in);
out << headers << endl;
while (!in.eof()) {