]> git.donarmstrong.com Git - mothur.git/blobdiff - getoturepcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / getoturepcommand.cpp
index 84d3871c3d74026c8d92af7e5b66dfa03ebcba21..78c39f7c1c16e5bce1c4d0475ad06839ebe0758b 100644 (file)
@@ -543,6 +543,18 @@ int GetOTURepCommand::execute(){
                
                if (m->control_pressed) {  return 0; }
                
+               //set fasta file as new current fastafile - use first one??
+               string current = "";
+               itTypes = outputTypes.find("fasta");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setFastaFile(current); }
+               }
+               
+               itTypes = outputTypes.find("name");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setNameFile(current); }
+               }
+               
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();
                for (int i = 0; i < outputNames.size(); i++) {  m->mothurOut(outputNames[i]); m->mothurOutEndLine();    }