]> git.donarmstrong.com Git - mothur.git/blobdiff - treegroupscommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / treegroupscommand.cpp
index a31c15192f1f27dcc1b84ddf114d0dcf485d41a3..07999f6a1ff89499fd92b9429191704b51545f61 100644 (file)
@@ -476,7 +476,14 @@ int TreeGroupCommand::execute(){
                }
                                
                //reset groups parameter
-               globaldata->Groups.clear();  
+               globaldata->Groups.clear(); 
+               
+               //set tree file as new current treefile
+               string current = "";
+               itTypes = outputTypes.find("tree");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setTreeFile(current); }
+               }
                
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();