X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=counttable.cpp;fp=counttable.cpp;h=0e9eec38234d52215af681b74a00b5713c7113b0;hb=3a5dd9e428ab93a6dcdce7912e8ebb977be0b893;hp=6eca8ee2a4b5354da54412b9eb6986b6ba244657;hpb=4283eb0248ca6e7e3e3344647f16166da0e14147;p=mothur.git diff --git a/counttable.cpp b/counttable.cpp index 6eca8ee..0e9eec3 100644 --- a/counttable.cpp +++ b/counttable.cpp @@ -246,6 +246,9 @@ int CountTable::readTable(string file, bool readGroups) { in >> name; m->gobble(in); in >> thisTotal; m->gobble(in); if (m->debug) { m->mothurOut("[DEBUG]: " + name + '\t' + toString(thisTotal) + "\n"); } + if (thisTotal == 0) { error=true; m->mothurOut("[ERROR]: Your count table contains a sequence named " + name + " with a total=0. Please correct."); m->mothurOutEndLine(); + } + //if group info, then read it vector groupCounts; groupCounts.resize(numGroups, 0); if (columnHeaders.size() > 2) { //file contains groups