]> git.donarmstrong.com Git - mothur.git/blobdiff - blastdb.cpp
working on slayer bug
[mothur.git] / blastdb.cpp
index 026c4ca3054f0d9db16eb53ec1327115f67239d4..f162cdfd254d084e13ae14f3ff866db4d0805c1e 100644 (file)
@@ -114,6 +114,7 @@ vector<int> BlastDB::findClosestSequences(Sequence* seq, int n) {
 vector<int> BlastDB::findClosestMegaBlast(Sequence* seq, int n) {
        try{
                vector<int> topMatches;
+               Scores.clear();
                
                ofstream queryFile;
 
@@ -146,7 +147,7 @@ vector<int> BlastDB::findClosestMegaBlast(Sequence* seq, int n) {
                        
                        m->gobble(m8FileHandle);
                        topMatches.push_back(templateAccession);
-                       megaScores.push_back(searchScore);
+                       Scores.push_back(searchScore);
 //cout << templateAccession << endl;
                }
                m8FileHandle.close();