X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getseqscommand.cpp;h=04b254599f46ef00081a3f153c0e097fea665cf4;hb=ac1da2a793271cb67f2a2155c5558e1fabdd6aba;hp=509241d87fb2207c30ce1c7db0133a2a59f357da;hpb=fe346922fe0af5b1a025beacb211078d37598fd4;p=mothur.git diff --git a/getseqscommand.cpp b/getseqscommand.cpp index 509241d..04b2545 100644 --- a/getseqscommand.cpp +++ b/getseqscommand.cpp @@ -155,7 +155,7 @@ void GetSeqsCommand::readFasta(){ void GetSeqsCommand::readName(){ try { - string outputFileName = getRootName(namefile) + "pick" + getExtension(namefile);; + string outputFileName = getRootName(namefile) + "pick" + getExtension(namefile); ofstream out; openOutputFile(outputFileName, out); @@ -186,7 +186,6 @@ void GetSeqsCommand::readName(){ for (int i = 0; i < parsedNames.size(); i++) { if (names.count(parsedNames[i]) == 1) { validSecond.push_back(parsedNames[i]); - names.erase(parsedNames[i]); } } @@ -202,7 +201,6 @@ void GetSeqsCommand::readName(){ for (int i = 0; i < validSecond.size()-1; i++) { out << validSecond[i] << ','; } out << validSecond[validSecond.size()-1] << endl; - names.erase(firstCol); //make first name in set you come to first column and then add the remaining names to second column }else {