]> git.donarmstrong.com Git - mothur.git/blobdiff - seqerrorcommand.cpp
Fixed a bug in the count output of seq.error when using multiple processors
[mothur.git] / seqerrorcommand.cpp
index ecd6f0ceb723290337f5856f724710eff7a751ee..99e789399e90c2b2adc429330177e7bd579e8354 100644 (file)
@@ -643,7 +643,7 @@ int SeqErrorCommand::createProcesses(string filename, string qFileName, string r
                        int misMatchSize;
                        in >> misMatchSize; m->gobble(in);
                        if (misMatchSize > misMatchCounts.size()) {     misMatchCounts.resize(misMatchSize, 0); }
-                       for (int j = 0; j < misMatchCounts.size(); j++) {
+                       for (int j = 0; j < misMatchSize; j++) {
                                in >> tempNum; misMatchCounts[j] += tempNum;
                        }
                        m->gobble(in);