X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=consensusseqscommand.cpp;h=223e5dbb86600907fafaafdf5af48ee665adfc5b;hp=4f8c53bc9b8cd70fab82a13cd8507a8e5719a07a;hb=16abd6271c455bd01b34ff89a2e3641bef0fa128;hpb=896a4f281982a3c2889f6ce6d73be997072aceae diff --git a/consensusseqscommand.cpp b/consensusseqscommand.cpp index 4f8c53b..223e5db 100644 --- a/consensusseqscommand.cpp +++ b/consensusseqscommand.cpp @@ -142,7 +142,7 @@ ConsensusSeqsCommand::ConsensusSeqsCommand(string option) { }else { m->setFastaFile(fastafile); } 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); } @@ -163,7 +163,11 @@ ConsensusSeqsCommand::ConsensusSeqsCommand(string option) { //if the user changes the output directory command factory will send this info to us in the output parameter outputDir = validParameter.validFile(parameters, "outputdir", false); if (outputDir == "not found"){ outputDir = m->hasPath(fastafile); } - + + if (namefile == ""){ + vector files; files.push_back(fastafile); + parser.getNameFile(files); + } } } catch(exception& e) {