+ }else if (countfile != "") {
+ saveBinNames = "";
+ binsize = 0;
+ for(int k = 0; k < names.size(); k++) {
+ if (ct.hasGroupInfo()) {
+ vector<string> thisSeqsGroups = ct.getGroups(names[k]);
+
+ int thisSeqsCount = 0;
+ for (int n = 0; n < thisSeqsGroups.size(); n++) {
+ if (m->inUsersGroups(thisSeqsGroups[n], Groups)) {
+ thisSeqsCount += ct.getGroupCount(names[k], thisSeqsGroups[n]);
+ }
+ }
+ binsize += thisSeqsCount;
+ //if you don't have any seqs from the groups the user wants, then remove you.
+ if (thisSeqsCount == 0) { newGroupFile.push_back(names[k]); }
+ else { saveBinNames += names[k] + ","; }
+ }else {
+ binsize += ct.getNumSeqs(names[k]);
+ saveBinNames += names[k] + ",";
+ }
+ }
+ saveBinNames = saveBinNames.substr(0, saveBinNames.length()-1);
+ }