method = validParameter.validFile(parameters, "method", false); if (method == "not found"){ method = "distance"; }
if ((method != "distance") && (method != "abundance")) {
m->mothurOut(method + " is not a valid option for the method parameter. The only options are: distance and abundance, aborting."); m->mothurOutEndLine(); abort = true;
method = validParameter.validFile(parameters, "method", false); if (method == "not found"){ method = "distance"; }
if ((method != "distance") && (method != "abundance")) {
m->mothurOut(method + " is not a valid option for the method parameter. The only options are: distance and abundance, aborting."); m->mothurOutEndLine(); abort = true;