]> git.donarmstrong.com Git - mothur.git/blobdiff - decalc.cpp
committing so I can work on the other machine
[mothur.git] / decalc.cpp
index 857bcf2e09c5e20f1f6a03cc95be674898411e6e..f5aa8505a310314924f6d87b63603c65a6ff8367 100644 (file)
@@ -824,6 +824,8 @@ vector<Sequence*> DeCalculator::findClosest(Sequence* querySeq, vector<Sequence*
                        i++;
                }
 
+               if (numWanted > dists.size()) { m->mothurOut("numwanted is larger than the number of template sequences, adjusting numwanted."); m->mothurOutEndLine(); numWanted = dists.size(); }
+
 //cout << numWanted << endl;
                for (int i = 0; i < numWanted; i++) {
 //cout << dists[i].seq->getName() << '\t' << dists[i].dist << endl;