]> git.donarmstrong.com Git - mothur.git/blobdiff - decalc.cpp
tracking down chimera.slayer issue
[mothur.git] / decalc.cpp
index 67258714aa3b45cbdeaee2cf8d43576f2de4f446..2a1736a7344e312e4d2cdb4371fc943335d6970b 100644 (file)
@@ -867,12 +867,14 @@ vector<Sequence*> DeCalculator::findClosest(Sequence* querySeq, vector<Sequence*
 //cout << numWanted << endl;
                for (int i = 0; i < numWanted; i++) {
 //                     cout << db[dists[i].index]->getName() << '\t' << dists[i].dist << endl;
+
                        if (db[dists[i].index]->getName() != querySeq->getName()) {
                                Sequence* temp = new Sequence(db[dists[i].index]->getName(), db[dists[i].index]->getAligned()); //have to make a copy so you can trim and filter without stepping on eachother.
                        
                                seqsMatches.push_back(temp);
                                indexes.push_back(dists[i].index);
                        }
+
                }
                
                return seqsMatches;