X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=countseqscommand.cpp;h=411a814d73671ebb69b43a783e36e31d6263fe45;hb=3914b0d6480f67df53b1e838f51c4e6155710434;hp=6afd1f47b06591d19d274ce91793edd73d4cabc7;hpb=9bbd9b071066b7b11c1ab95aa01942abc933e0fb;p=mothur.git diff --git a/countseqscommand.cpp b/countseqscommand.cpp index 6afd1f4..411a814 100644 --- a/countseqscommand.cpp +++ b/countseqscommand.cpp @@ -373,12 +373,13 @@ int CountSeqsCommand::createProcesses(GroupMap*& groupMap, string outputFileName //sanity check - if (numSeqs != groupMap->getNumSeqs()) { - m->mothurOut("[ERROR]: processes reported processing " + toString(numSeqs) + " sequences, but group file indicates you have " + toString(groupMap->getNumSeqs()) + " sequences."); - if (processors == 1) { m->mothurOut(" Could you have a file mismatch?\n"); } - else { m->mothurOut(" Either you have a file mismatch or a process failed to complete the task assigned to it.\n"); m->control_pressed = true; } - } - + if (groupfile != "") { + if (numSeqs != groupMap->getNumSeqs()) { + m->mothurOut("[ERROR]: processes reported processing " + toString(numSeqs) + " sequences, but group file indicates you have " + toString(groupMap->getNumSeqs()) + " sequences."); + if (processors == 1) { m->mothurOut(" Could you have a file mismatch?\n"); } + else { m->mothurOut(" Either you have a file mismatch or a process failed to complete the task assigned to it.\n"); m->control_pressed = true; } + } + } return numSeqs; } catch(exception& e) {