try {
CountTable ct;
- ct.readTable(countfile);
+ 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; }
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;
}
}