]> git.donarmstrong.com Git - mothur.git/blobdiff - counttable.cpp
added lefse command. added check for hard filter length. fixed bug in make.biom...
[mothur.git] / counttable.cpp
index 6eca8ee2a4b5354da54412b9eb6986b6ba244657..0e9eec38234d52215af681b74a00b5713c7113b0 100644 (file)
@@ -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<int> groupCounts; groupCounts.resize(numGroups, 0);
             if (columnHeaders.size() > 2) { //file contains groups