]> git.donarmstrong.com Git - mothur.git/blobdiff - blastdb.cpp
working on chimera.slayer
[mothur.git] / blastdb.cpp
index f162cdfd254d084e13ae14f3ff866db4d0805c1e..fdb5456050bcce78b620e9d3d697a334626a54ae 100644 (file)
@@ -187,7 +187,9 @@ void BlastDB::generateDB() {
                //m->mothurOut("Generating the temporary BLAST database...\t"); cout.flush();
                
                path = m->argv;
-               path = path.substr(0, (path.find_last_of('m')));
+               string tempPath = path;
+               for (int i = 0; i < path.length(); i++) { tempPath[i] = tolower(path[i]); }
+               path = path.substr(0, (tempPath.find_last_of('m')));
        
                string formatdbCommand = path + "blast/bin/formatdb -p F -o T -i " + dbFileName;        //      format the database, -o option gives us the ability
                system(formatdbCommand.c_str());                                                                //      to get the right sequence names, i think. -p F