X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=countseqscommand.cpp;h=9cdd033ac29609d6f763f52597a4809fea204326;hb=8dd3c225255d7084e3aff8740aa4f1f1cabb367a;hp=a9bffc6eca25d3ad78ce7b01d96e196ba6308bfb;hpb=220dc345e493cddc569521111ce32ac4d965ab7f;p=mothur.git diff --git a/countseqscommand.cpp b/countseqscommand.cpp index a9bffc6..9cdd033 100644 --- a/countseqscommand.cpp +++ b/countseqscommand.cpp @@ -147,9 +147,9 @@ int CountSeqsCommand::execute(){ if (abort == true) { if (calledHelp) { return 0; } return 2; } ofstream out; - string outputFileName = outputDir + m->getRootName(m->getSimpleName(namefile)) + ".seq.count"; + string outputFileName = outputDir + m->getRootName(m->getSimpleName(namefile)) + "seq.count"; m->openOutputFile(outputFileName, out); outputTypes["summary"].push_back(outputFileName); - out << "Representative Sequence\t total\t"; + out << "Representative_Sequence\ttotal\t"; GroupMap* groupMap; if (groupfile != "") { @@ -157,7 +157,8 @@ int CountSeqsCommand::execute(){ //make sure groups are valid. takes care of user setting groupNames that are invalid or setting groups=all SharedUtil* util = new SharedUtil(); - util->setGroups(Groups, groupMap->namesOfGroups); + vector nameGroups = groupMap->getNamesOfGroups(); + util->setGroups(Groups, nameGroups); delete util; //sort groupNames so that the group title match the counts below, this is needed because the map object automatically sorts @@ -222,7 +223,7 @@ int CountSeqsCommand::execute(){ if (groupfile != "") { delete groupMap; } - if (m->control_pressed) { remove(outputFileName.c_str()); return 0; } + if (m->control_pressed) { m->mothurRemove(outputFileName); return 0; } m->mothurOutEndLine(); m->mothurOut("Output File Name: "); m->mothurOutEndLine();