]> git.donarmstrong.com Git - mothur.git/blobdiff - deconvolutecommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / deconvolutecommand.cpp
index 6c04c1255ab94010da7cacfb409d497b4f0354d4..62daa612d52a04fa72b85c1c621b89b539d14ab0 100644 (file)
@@ -177,7 +177,17 @@ int DeconvoluteCommand::execute() {
                outputNames.push_back(outFastaFile);  outputNames.push_back(outNameFile); outputTypes["fasta"].push_back(outFastaFile);  outputTypes["name"].push_back(outNameFile); 
                m->mothurOutEndLine();
 
-
+               //set fasta file as new current fastafile
+               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); }
+               }
                
                return 0;
        }