]> git.donarmstrong.com Git - mothur.git/blobdiff - classify.cpp
changed tags on temp blast db to include template name
[mothur.git] / classify.cpp
index 875628d85d8dbcb4caf6d712b41be517eefef733..8ea9e4bcf050ce505b3913e4038fc75e1b052272 100644 (file)
@@ -114,7 +114,7 @@ void Classify::generateDatabaseAndNames(string tfile, string tempFile, string me
                        }
                }
                else if(method == "suffix")             {       database = new SuffixDB(numSeqs);                                                               }
-               else if(method == "blast")              {       database = new BlastDB(gapOpen, gapExtend, match, misMatch);    }
+               else if(method == "blast")              {       database = new BlastDB(tempFile.substr(0,tempFile.find_last_of(".")+1), gapOpen, gapExtend, match, misMatch);   }
                else if(method == "distance")   {       database = new DistanceDB();    }
                else {
                        m->mothurOut(method + " is not a valid search option. I will run the command using kmer, ksize=8.");