X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=removeotulabelscommand.cpp;h=fa98b86dde528f0190129f9b3939148e6d72f9a2;hp=148758a369f77f85e8c9832d69b3916e13365396;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=c85db0a4be3a1f8037a71a23ca73f9762184e28a diff --git a/removeotulabelscommand.cpp b/removeotulabelscommand.cpp index 148758a..fa98b86 100644 --- a/removeotulabelscommand.cpp +++ b/removeotulabelscommand.cpp @@ -234,6 +234,8 @@ int RemoveOtuLabelsCommand::execute(){ //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; } @@ -289,7 +291,7 @@ int RemoveOtuLabelsCommand::readClassifyOtu(){ int removedCount = 0; //read headers - string headers = m->getline(in); + string headers = m->getline(in); m->gobble(in); out << headers << endl; while (!in.eof()) { @@ -301,6 +303,8 @@ int RemoveOtuLabelsCommand::readClassifyOtu(){ 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; @@ -341,7 +345,7 @@ int RemoveOtuLabelsCommand::readOtuAssociation(){ int removedCount = 0; //read headers - string headers = m->getline(in); + string headers = m->getline(in); m->gobble(in); out << headers << endl; while (!in.eof()) { @@ -395,7 +399,7 @@ int RemoveOtuLabelsCommand::readCorrAxes(){ int removedCount = 0; //read headers - string headers = m->getline(in); + string headers = m->getline(in); m->gobble(in); out << headers << endl; while (!in.eof()) {