X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classifyseqscommand.cpp;h=39f28d09e8c19f1ed4ab2d3a1e7a57d42c7e30f9;hb=e21aedb9ffeabff18207d53e9cc5420d2e30a5b2;hp=580dd9b6e056197bfc48cb39abcfb526237e1487;hpb=64ec96a433d3ad3a61a75c6fc08df8d8b6ff36ac;p=mothur.git diff --git a/classifyseqscommand.cpp b/classifyseqscommand.cpp index 580dd9b..39f28d0 100644 --- a/classifyseqscommand.cpp +++ b/classifyseqscommand.cpp @@ -226,7 +226,7 @@ ClassifySeqsCommand::ClassifySeqsCommand(string option) { } #endif - if (ableToOpen == 1) { m->mothurOut("Unable to match group file with fasta file."); m->mothurOutEndLine(); abort = true; } + if (ableToOpen == 1) { m->mothurOut("Unable to match group file with fasta file, not using " + groupfileNames[i] + "."); m->mothurOutEndLine(); groupfileNames[i] = ""; } } } @@ -551,7 +551,10 @@ int ClassifySeqsCommand::execute(){ m->mothurOut("It took " + toString(time(NULL) - start) + " secs to classify " + toString(numFastaSeqs) + " sequences."); m->mothurOutEndLine(); m->mothurOutEndLine(); start = time(NULL); - PhyloSummary taxaSum(taxonomyFileName, groupfileNames[s]); + string group = ""; + if (groupfile != "") { group = groupfileNames[s]; } + + PhyloSummary taxaSum(taxonomyFileName, group); if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { remove(outputNames[i].c_str()); } delete classify; return 0; }