]> git.donarmstrong.com Git - mothur.git/blobdiff - splitgroupscommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / splitgroupscommand.cpp
index d389d8907bfaffde16b8ca9eac4dad0061341831..16d90a48372f7c97d46f7fd4d0b640fde6b533fb 100644 (file)
@@ -184,6 +184,17 @@ int SplitGroupCommand::execute(){
                
                if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) {        remove(outputNames[i].c_str()); } return 0; }
                
+               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();    }