X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=deconvolutecommand.cpp;fp=deconvolutecommand.cpp;h=62daa612d52a04fa72b85c1c621b89b539d14ab0;hb=348de0f8b17d84ede77081dcf67bd6ef43496677;hp=6c04c1255ab94010da7cacfb409d497b4f0354d4;hpb=5e031adc86a1fc125c4abb3d4048f209d52f9b6d;p=mothur.git diff --git a/deconvolutecommand.cpp b/deconvolutecommand.cpp index 6c04c12..62daa61 100644 --- a/deconvolutecommand.cpp +++ b/deconvolutecommand.cpp @@ -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; }