]> git.donarmstrong.com Git - mothur.git/blobdiff - chimeraslayercommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / chimeraslayercommand.cpp
index a331908c1ddb09609d469ceb186ce659f1e21f08..e7b02b8937d74c8cabd382ea9dcc1c56c11af071 100644 (file)
@@ -569,6 +569,20 @@ int ChimeraSlayerCommand::execute(){
                        m->mothurOutEndLine(); m->mothurOut("It took " + toString(time(NULL) - start) + " secs to check " + toString(numSeqs) + " sequences."); m->mothurOutEndLine();
                }
                
+               //set accnos file as new current accnosfile
+               string current = "";
+               itTypes = outputTypes.find("accnos");
+               if (itTypes != outputTypes.end()) {
+                       if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setAccnosFile(current); }
+               }
+               
+               if (trim) {
+                       itTypes = outputTypes.find("fasta");
+                       if (itTypes != outputTypes.end()) {
+                               if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setFastaFile(current); }
+                       }
+               }
+               
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();
                for (int i = 0; i < outputNames.size(); i++) {  m->mothurOut(outputNames[i]); m->mothurOutEndLine();    }