]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracunweightedcommand.cpp
fixed bug wit unifrac files
[mothur.git] / unifracunweightedcommand.cpp
index bebd43b7d5ed7c4d24a82a4d0a8f96e15aed908f..6e217c8a71d37f22c3401a2dccc10aa23000fb26 100644 (file)
@@ -220,6 +220,7 @@ void UnifracUnweightedCommand::setGroups() {
                                        allGroups = allGroups.substr(0, allGroups.length()-1);
                                }
                        }else{//user has enter "all" and wants the default groups
+                               globaldata->Groups.clear();
                                for (int i = 0; i < tmap->namesOfGroups.size(); i++) {
                                        globaldata->Groups.push_back(tmap->namesOfGroups[i]);
                                        numGroups++;