X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=summaryqualcommand.cpp;fp=summaryqualcommand.cpp;h=2a40e0862ba0b0444db035246cdcb95409fe4923;hb=16abd6271c455bd01b34ff89a2e3641bef0fa128;hp=421a8f2ad36c64e218aa68a4eb6fd8dc651362d0;hpb=896a4f281982a3c2889f6ce6d73be997072aceae;p=mothur.git diff --git a/summaryqualcommand.cpp b/summaryqualcommand.cpp index 421a8f2..2a40e08 100644 --- a/summaryqualcommand.cpp +++ b/summaryqualcommand.cpp @@ -111,7 +111,7 @@ SummaryQualCommand::SummaryQualCommand(string option) { //check for required parameters qualfile = validParameter.validFile(parameters, "qfile", true); - if (qualfile == "not open") { abort = true; } + if (qualfile == "not open") { qualfile = ""; abort = true; } else if (qualfile == "not found") { qualfile = m->getQualFile(); if (qualfile != "") { m->mothurOut("Using " + qualfile + " as input file for the qfile parameter."); m->mothurOutEndLine(); } @@ -131,7 +131,12 @@ SummaryQualCommand::SummaryQualCommand(string option) { string temp = validParameter.validFile(parameters, "processors", false); if (temp == "not found"){ temp = m->getProcessors(); } m->setProcessors(temp); - m->mothurConvert(temp, processors); + m->mothurConvert(temp, processors); + + if (namefile == "") { + vector files; files.push_back(qualfile); + parser.getNameFile(files); + } } } catch(exception& e) {