]> git.donarmstrong.com Git - mothur.git/blobdiff - chimerapintailcommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / chimerapintailcommand.cpp
index a8d2d65c6c3752fcc7ca9737e505c32850d62f7b..038460fe1485dc531cec04f83b28793f0b55a550 100644 (file)
@@ -517,6 +517,13 @@ int ChimeraPintailCommand::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); }
+               }
+               
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();
                for (int i = 0; i < outputNames.size(); i++) {  m->mothurOut(outputNames[i]); m->mothurOutEndLine();    }