X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=binsequencecommand.cpp;h=2117daff4f2558e26bcf0008666f87bee0180f4d;hb=f816b683e586575bfe3479760a8afd5ab08e8573;hp=4977cad1f769690e300013e89c936eefb4228e84;hpb=19fcbbdba99658f5eca244803280f9ee7f9f6607;p=mothur.git diff --git a/binsequencecommand.cpp b/binsequencecommand.cpp index 4977cad..2117daf 100644 --- a/binsequencecommand.cpp +++ b/binsequencecommand.cpp @@ -167,7 +167,7 @@ BinSeqCommand::BinSeqCommand(string option) { } namesfile = validParameter.validFile(parameters, "name", true); - if (namesfile == "not open") { abort = true; } + if (namesfile == "not open") { namesfile = ""; abort = true; } else if (namesfile == "not found") { namesfile = ""; } else { m->setNameFile(namesfile); } @@ -176,6 +176,11 @@ BinSeqCommand::BinSeqCommand(string option) { else if (groupfile == "not found") { groupfile = ""; } else { m->setGroupFile(groupfile); } + if (namesfile == ""){ + vector files; files.push_back(fastafile); + parser.getNameFile(files); + } + } } catch(exception& e) {