X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracunweightedcommand.cpp;fp=unifracunweightedcommand.cpp;h=a404f79222ac83cf41d42c04ceb614df1e01dceb;hb=16abd6271c455bd01b34ff89a2e3641bef0fa128;hp=047d06e27fadff92f647f75875f038f4bf8b04fd;hpb=896a4f281982a3c2889f6ce6d73be997072aceae;p=mothur.git diff --git a/unifracunweightedcommand.cpp b/unifracunweightedcommand.cpp index 047d06e..a404f79 100644 --- a/unifracunweightedcommand.cpp +++ b/unifracunweightedcommand.cpp @@ -155,7 +155,7 @@ UnifracUnweightedCommand::UnifracUnweightedCommand(string option) { else { m->setGroupFile(groupfile); } namefile = validParameter.validFile(parameters, "name", true); - if (namefile == "not open") { abort = true; } + if (namefile == "not open") { namefile = ""; abort = true; } else if (namefile == "not found") { namefile = ""; } else { m->setNameFile(namefile); } @@ -198,6 +198,11 @@ UnifracUnweightedCommand::UnifracUnweightedCommand(string option) { m->splitAtDash(groups, Groups); m->setGroups(Groups); } + + if (namefile == "") { + vector files; files.push_back(treefile); + parser.getNameFile(files); + } } }