X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=splitgroupscommand.cpp;h=88292bd2694e4dd044bcacc8c38d5c2c34a7d204;hb=aca78ed4a47dff8672ea8fd93cef0dfbaf0f7495;hp=c15ba3a4d588b3eedcaca7713c6d5acb8610aee2;hpb=af0a94ea8f02421b2b73e77e68753a2b4c37768e;p=mothur.git diff --git a/splitgroupscommand.cpp b/splitgroupscommand.cpp index c15ba3a..88292bd 100644 --- a/splitgroupscommand.cpp +++ b/splitgroupscommand.cpp @@ -320,7 +320,7 @@ int SplitGroupCommand::runCount(){ try { CountTable ct; - ct.readTable(countfile, true); + ct.readTable(countfile, true, false); if (!ct.hasGroupInfo()) { m->mothurOut("[ERROR]: your count file does not contain group info, cannot split by group.\n"); m->control_pressed = true; } if (m->control_pressed) { return 0; } @@ -362,7 +362,7 @@ int SplitGroupCommand::runCount(){ for (int i = 0; i < thisSeqsGroups.size(); i++) { if (m->inUsersGroups(thisSeqsGroups[i], Groups)) { //if this sequence belongs to a group we want them print seq.printSequence(*(ffiles[thisSeqsGroups[i]])); - int numSeqs = ct.getGroupCount(seq.getName(), Groups[i]); + int numSeqs = ct.getGroupCount(seq.getName(), thisSeqsGroups[i]); (*(cfiles[thisSeqsGroups[i]])) << seq.getName() << '\t' << numSeqs << '\t' << numSeqs << endl; } }