]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracunweightedcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / unifracunweightedcommand.cpp
index 2e90626585b2c86e31f34770b7f7868eb2926ba7..5c0d5839c355e28c7a51e4a0433a840bd35a545f 100644 (file)
@@ -307,6 +307,19 @@ int UnifracUnweightedCommand::execute() {
                
                m->mothurOut("It took " + toString(time(NULL) - start) + " secs to run unifrac.unweighted."); m->mothurOutEndLine();
                
+               //set phylip file as new current phylipfile
+               string current = "";
+               itTypes = outputTypes.find("phylip");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setPhylipFile(current); }
+               }
+               
+               //set column file as new current columnfile
+               itTypes = outputTypes.find("column");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setColumnFile(current); }
+               }
+               
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();
                for (int i = 0; i < outputNames.size(); i++) {  m->mothurOut(outputNames[i]); m->mothurOutEndLine();    }