- else if (phylipFileName == "not found") { phylipFileName = ""; }
- else if (designFileName == "not found") {
- designFileName = "";
- m->mothurOut("You must provide an phylip file.");
- m->mothurOutEndLine();
- abort = true;
+ else if (phylipFileName == "not found") {
+ phylipFileName = "";
+
+ //check currentFiles for a phylip file
+ if (currentFiles->getPhylipFile() != "") { phylipFileName = currentFiles->getPhylipFile(); m->mothurOut("Using " + phylipFileName + " as phylip file."); m->mothurOutEndLine();
+ }else { m->mothurOut("You must provide an phylip file."); m->mothurOutEndLine(); abort = true; }