]> git.donarmstrong.com Git - mothur.git/blobdiff - pairwiseseqscommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / pairwiseseqscommand.cpp
index 0a4edea92911866d4768328ed2f2e46cf4a089b3..e3f8852203b21640567a725aa10af3d68eb6fbef 100644 (file)
@@ -494,6 +494,19 @@ int PairwiseSeqsCommand::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();
                for (int i = 0; i < outputNames.size(); i++) {  m->mothurOut(outputNames[i]); m->mothurOutEndLine();    }