X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getseqscommand.cpp;h=f40c89b3fb3eff837729bc203055d11ef1a3c5a5;hb=17a6a53298a907c005fa93fb82af9e533adcda09;hp=7535e65ed39065f3a5788c07a6a2e0580f576aaa;hpb=99c986582ae659c205411639a8e9fa88fb680cd0;p=mothur.git diff --git a/getseqscommand.cpp b/getseqscommand.cpp index 7535e65..f40c89b 100644 --- a/getseqscommand.cpp +++ b/getseqscommand.cpp @@ -277,10 +277,13 @@ int GetSeqsCommand::readList(){ } //get last name - if (names.count(binnames) == 1) { newNames += binnames; } + if (names.count(binnames) == 1) { newNames += binnames + ","; } //if there are names in this bin add to new list - if (newNames != "") { newList.push_back(newNames); } + if (newNames != "") { + newNames = newNames.substr(0, newNames.length()-1); //rip off extra comma + newList.push_back(newNames); + } } //print new listvector