X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=removeotuscommand.cpp;fp=removeotuscommand.cpp;h=0e7d302ecc065c00a364dfe8e58b0b6e46750a6a;hb=fd5f17bcbe5fadab2c525f3d1fcfd1d79a60ae72;hp=6828c7287f3530aa009ec9d42e12c8eaacbb724c;hpb=85af0d7ce5839dfd39981811f149157c305dd31a;p=mothur.git diff --git a/removeotuscommand.cpp b/removeotuscommand.cpp index 6828c72..0e7d302 100644 --- a/removeotuscommand.cpp +++ b/removeotuscommand.cpp @@ -367,11 +367,17 @@ int RemoveOtusCommand::processList(ListVector*& list, GroupMap*& groupMap, ofstr if (m->inUsersGroups(group, Groups)) { removeBin = true; } groupFileOutput += individual + "\t" + group + "\n"; - //if there are no sequences from the groups we want to remove in this bin add to new list, output to groupfile - newList.push_back(binnames); - outGroup << groupFileOutput; + if (!removeBin) { + //if there are no sequences from the groups we want to remove in this bin add to new list, output to groupfile + newList.push_back(binnames); + outGroup << groupFileOutput; + }else { + numOtus++; + } + }else { numOtus++; } + } //print new listvector