]> git.donarmstrong.com Git - mothur.git/blobdiff - bayesian.cpp
rechecking in
[mothur.git] / bayesian.cpp
index b46f7703a971b8b5141d42faf14e26d45037cba0..17264776740a0e2f7e1ad2a797118bdb389be817 100644 (file)
@@ -50,6 +50,9 @@ Classify(), kmerSize(ksize), confidenceThreshold(cutoff), iters(i)  {
                        //create search database and names vector
                        generateDatabaseAndNames(tfile, tempFile, method, ksize, 0.0, 0.0, 0.0, 0.0);
                        
+                       //prevents errors caused by creating shortcut files if you had an error in the sanity check.
+                       if (m->control_pressed) {  remove(phyloTreeName.c_str());   }
+                       
                        genusNodes = phyloTree->getGenusNodes(); 
                        genusTotals = phyloTree->getGenusTotals();