]> git.donarmstrong.com Git - mothur.git/blobdiff - makegroupcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / makegroupcommand.cpp
index 1c04fecb477d09e0e6de73b1307a3878fcc8e4b3..8adfe09f7db893f6f8366f7cbecd18639b72f42c 100644 (file)
@@ -229,7 +229,14 @@ int MakeGroupCommand::execute(){
                m->mothurOutEndLine();
                m->mothurOut("Output File Name: " + filename); m->mothurOutEndLine(); outputNames.push_back(filename); outputTypes["group"].push_back(filename); 
                m->mothurOutEndLine();
-
+               
+               //set group file as new current groupfile
+               string current = "";
+               itTypes = outputTypes.find("group");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setGroupFile(current); }
+               }
+               
                return 0;
        }
        catch(exception& e) {