]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
1.22.0
[mothur.git] / unifracweightedcommand.cpp
index a0d710e7b2ebbb7cffaf4aca88365a3ab73a197c..bc9d0c5048f198ac6e30309e4af0255c67dcf605 100644 (file)
@@ -277,10 +277,11 @@ int UnifracWeightedCommand::execute() {
                        
                util = new SharedUtil();
                string s; //to make work with setgroups
-               vector<string> Groups = m->getGroups();
+               Groups = m->getGroups();
                vector<string> nameGroups = tmap->getNamesOfGroups();
                util->setGroups(Groups, nameGroups, s, numGroups, "weighted");  //sets the groups the user wants to analyze
                util->getCombos(groupComb, Groups, numComp);
+               m->setGroups(Groups);
                delete util;
                
                weighted = new Weighted(tmap, includeRoot);