]> git.donarmstrong.com Git - mothur.git/blobdiff - deuniqueseqscommand.cpp
added set.current and get.current commands and modified existing commands to update...
[mothur.git] / deuniqueseqscommand.cpp
index 214359e3353f5521aa337085ce46136187d326c0..1d87204abd165396a20f99cbef0e3440eadbcd95 100644 (file)
@@ -215,6 +215,13 @@ int DeUniqueSeqsCommand::execute() {
                outputNames.push_back(outFastaFile);  outputTypes["fasta"].push_back(outFastaFile);  
                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); }
+               }
+               
                return 0;
        }
        catch(exception& e) {