X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getotuscommand.cpp;fp=getotuscommand.cpp;h=15d2bcb8e46454809cdc4441574a469abfc6d6b2;hb=348de0f8b17d84ede77081dcf67bd6ef43496677;hp=f10142bb74a67a9fa98bded8b8a2e0d48fa85358;hpb=5e031adc86a1fc125c4abb3d4048f209d52f9b6d;p=mothur.git diff --git a/getotuscommand.cpp b/getotuscommand.cpp index f10142b..15d2bcb 100644 --- a/getotuscommand.cpp +++ b/getotuscommand.cpp @@ -207,6 +207,18 @@ int GetOtusCommand::execute(){ m->mothurOut("Output File names: "); m->mothurOutEndLine(); for (int i = 0; i < outputNames.size(); i++) { m->mothurOut(outputNames[i]); m->mothurOutEndLine(); } m->mothurOutEndLine(); + + //set list file as new current listfile + string current = ""; + itTypes = outputTypes.find("group"); + if (itTypes != outputTypes.end()) { + if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setGroupFile(current); } + } + + itTypes = outputTypes.find("list"); + if (itTypes != outputTypes.end()) { + if ((itTypes->second).size() != 0) { current = (itTypes->second)[0]; m->setListFile(current); } + } } return 0;