]> git.donarmstrong.com Git - mothur.git/blobdiff - bayesian.cpp
added warning about merging with something above cutoff to cluster. working on chimeras
[mothur.git] / bayesian.cpp
index e6adfc24b863442a58edcd7f348c83f843b10635..a83f1edd04c3f8ddfad13887c1dbb78c9341d4f1 100644 (file)
@@ -92,7 +92,7 @@ Classify(tfile, tempFile, method, ksize, 0.0, 0.0, 0.0, 0.0), kmerSize(ksize), c
                mothurOut("It took " + toString(time(NULL) - start) + " seconds get probabilities. "); mothurOutEndLine();
        }
        catch(exception& e) {
-               errorOut(e, "Bayesian", "getTaxonomy");
+               errorOut(e, "Bayesian", "Bayesian");
                exit(1);
        }
 }
@@ -185,7 +185,7 @@ string Bayesian::bootstrapResults(vector<int> kmers, int tax, int numToSelect) {
                                }
                                
                                if (confidence >= confidenceThreshold) {
-                                       confidenceTax = seqTax.name + "(" + toString(confidence) + ");" + confidenceTax;
+                                       confidenceTax = seqTax.name + "(" + toString(((confidence/(float)iters) * 100)) + ");" + confidenceTax;
                                        simpleTax = seqTax.name + ";" + simpleTax;
                                }