]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracunweightedcommand.cpp
1.22.0
[mothur.git] / unifracunweightedcommand.cpp
index cc175e17fd74f0d808fc9efa11442f582333e73d..c09301f62be0cba7bb2eee024442cc94e6e5c0a3 100644 (file)
@@ -282,10 +282,11 @@ int UnifracUnweightedCommand::execute() {
                m->openOutputFile(sumFile, outSum);
                
                util = new SharedUtil();
-               vector<string> Groups = m->getGroups();
+               Groups = m->getGroups();
                vector<string> namesGroups = tmap->getNamesOfGroups();
                util->setGroups(Groups, namesGroups, allGroups, numGroups, "unweighted");       //sets the groups the user wants to analyze
                util->getCombos(groupComb, Groups, numComp);
+               m->setGroups(Groups);
                delete util;
        
                if (numGroups == 1) { numComp++; groupComb.push_back(allGroups); }