]> git.donarmstrong.com Git - mothur.git/blobdiff - consensuscommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / consensuscommand.cpp
index 9880b8dbf01f72abe4a2a50d9630a2d09d3fd6d0..d64dc93c6b2c9e5812a24b02d19eaac8cc7ff742 100644 (file)
@@ -211,6 +211,13 @@ int ConcensusCommand::execute(){
                
                delete consensusTree; 
                
+               //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); }
+               }
+               
                return 0;
        }
        catch(exception& e) {