]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / unifracweightedcommand.cpp
index 0ccdf2f5b58888741328346b230b47cdf874a7d2..d5212009b46003b4046c5f8e2895321edbcb907d 100644 (file)
@@ -318,6 +318,19 @@ int UnifracWeightedCommand::execute() {
                
                m->mothurOut("It took " + toString(time(NULL) - start) + " secs to run unifrac.weighted."); 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();    }