]> git.donarmstrong.com Git - mothur.git/blobdiff - distancecommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / distancecommand.cpp
index 3d667227ae2219347f2523ee1ff8286988299423..5ffe0da63cfbbafd80ab1813a66b3cdb9779725b 100644 (file)
@@ -501,6 +501,19 @@ int DistanceCommand::execute(){
                
                delete distCalculator;
                
+               //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 Name: "); m->mothurOutEndLine();
                m->mothurOut(outputFile); m->mothurOutEndLine();