X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=distancedb.cpp;fp=distancedb.cpp;h=5c49a936e9293c629e05ea5565f334a43e5cc37c;hb=6de5adaae66b28aa60a75f123005cede410c156c;hp=0c1aeebe43af3ca586bfd6416f95db924a047054;hpb=2a07f8664a7fd1ef0d572b88e8b5bede24cc0b3c;p=mothur.git diff --git a/distancedb.cpp b/distancedb.cpp index 0c1aeeb..5c49a93 100644 --- a/distancedb.cpp +++ b/distancedb.cpp @@ -48,8 +48,8 @@ vector DistanceDB::findClosestSequences(Sequence* query, int numWanted){ bool templateSameLength = true; string sequence = query->getAligned(); vector dists; - - if (numWanted > data.size()) { m->mothurOut("numwanted is larger than the number of template sequences, using 10."); m->mothurOutEndLine(); numWanted = 10; } + + if (numWanted > data.size()) { m->mothurOut("numwanted is larger than the number of template sequences, using "+ toString(data.size()) + "."); m->mothurOutEndLine(); numWanted = data.size(); } if (sequence.length() != templateSeqsLength) { templateSameLength = false; }