]> git.donarmstrong.com Git - mothur.git/blobdiff - bootstrapsharedcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / bootstrapsharedcommand.cpp
index 66a43976c8c5b6ca61090f78a216acfae99d694f..afc3cf1533475b6bf78b8127ba34086193612371 100644 (file)
@@ -340,6 +340,13 @@ int BootSharedCommand::execute(){
                //reset groups parameter
                globaldata->Groups.clear();  
                
+               //set first tree file as new current treefile
+               string currentTree = "";
+               itTypes = outputTypes.find("tree");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { currentTree = (itTypes->second)[0]; m->setTreeFile(currentTree); }
+               }
+               
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();
                for (int i = 0; i < outputNames.size(); i++) {  m->mothurOut(outputNames[i]); m->mothurOutEndLine();    }