X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=subsamplecommand.cpp;h=c352feb099a83879bae9e1aca0f35d5bfe56e691;hb=2bb9267aa4b4ecdf8488b06605cc9f3f36fa4332;hp=fe9e93423969796187dd59452f7e3a3496d4ee57;hpb=0ca63a8165baa0afa459e644ebe140ba496d5ba0;p=mothur.git diff --git a/subsamplecommand.cpp b/subsamplecommand.cpp index fe9e934..c352feb 100644 --- a/subsamplecommand.cpp +++ b/subsamplecommand.cpp @@ -255,6 +255,10 @@ SubSampleCommand::SubSampleCommand(string option) { if ((groupfile != "") && ((fastafile != "") && (listfile != ""))) { m->mothurOut("A new group file can only be made from the subsample of a listfile or fastafile, not both. Please correct."); m->mothurOutEndLine(); abort = true; } + if ((fastafile != "") && (namefile == "")) { + vector files; files.push_back(fastafile); + parser.getNameFile(files); + } } }