X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=deuniqueseqscommand.cpp;fp=deuniqueseqscommand.cpp;h=1d87204abd165396a20f99cbef0e3440eadbcd95;hb=348de0f8b17d84ede77081dcf67bd6ef43496677;hp=214359e3353f5521aa337085ce46136187d326c0;hpb=5e031adc86a1fc125c4abb3d4048f209d52f9b6d;p=mothur.git diff --git a/deuniqueseqscommand.cpp b/deuniqueseqscommand.cpp index 214359e..1d87204 100644 --- a/deuniqueseqscommand.cpp +++ b/deuniqueseqscommand.cpp @@ -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) {