X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedcommand.cpp;h=542f8d346447322aea63491e092b97632449bd62;hb=cc19310422f125d6628980bd1148e1e816792382;hp=39801063110e6ca91a3f9029caf5c7b6eb8d6e91;hpb=5b72d1cf3fa48730e5bb70d59cced1e43e1fe424;p=mothur.git diff --git a/sharedcommand.cpp b/sharedcommand.cpp index 3980106..542f8d3 100644 --- a/sharedcommand.cpp +++ b/sharedcommand.cpp @@ -188,7 +188,11 @@ SharedCommand::SharedCommand(string option) { countfile = validParameter.validFile(parameters, "count", true); if (countfile == "not open") { countfile = ""; abort = true; } else if (countfile == "not found") { countfile = ""; } - else { m->setCountTableFile(countfile); } + else { + m->setCountTableFile(countfile); + CountTable temp; + if (!temp.testGroups(countfile)) { m->mothurOut("[ERROR]: Your count file does not have group info, aborting."); m->mothurOutEndLine(); abort=true; } + } if ((biomfile == "") && (listfile == "")) { //is there are current file available for either of these?