]> git.donarmstrong.com Git - mothur.git/blobdiff - classify.cpp
added citation function to commands
[mothur.git] / classify.cpp
index 8ea9e4bcf050ce505b3913e4038fc75e1b052272..925dedacbf0edee93af4d89b4cf6386169b6cfc0 100644 (file)
@@ -62,7 +62,7 @@ void Classify::generateDatabaseAndNames(string tfile, string tempFile, string me
                        //create database
                        if(method == "kmer")                    {       database = new KmerDB(tempFile, kmerSize);                      }
                        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."); m->mothurOutEndLine();