]> git.donarmstrong.com Git - mothur.git/blobdiff - knn.cpp
moved utilities out of mothur.h and into mothurOut class.
[mothur.git] / knn.cpp
diff --git a/knn.cpp b/knn.cpp
index a8430723fdd653899e9239b22adaa941af113012..1835c48f802b861f29a6a6c2360a47788d13bc46 100644 (file)
--- a/knn.cpp
+++ b/knn.cpp
@@ -26,7 +26,7 @@ void Knn::setDistName(string s) {
        try {
                outDistName = s;
                ofstream outDistance;
-               openOutputFile(outDistName, outDistance);
+               m->openOutputFile(outDistName, outDistance);
                outDistance << "Name\tBestMatch\tDistance" << endl;
                outDistance.close();
        }
@@ -54,7 +54,7 @@ string Knn::getTaxonomy(Sequence* seq) {
                //use database to find closest seq
                vector<int> closest = database->findClosestSequences(seq, num);
        
-               if (search == "distance") { ofstream outDistance; openOutputFileAppend(outDistName, outDistance); outDistance << seq->getName() << '\t' << database->getName(closest[0]) << '\t' << database->getSearchScore() << endl; outDistance.close();  }
+               if (search == "distance") { ofstream outDistance; m->openOutputFileAppend(outDistName, outDistance); outDistance << seq->getName() << '\t' << database->getName(closest[0]) << '\t' << database->getSearchScore() << endl; outDistance.close();  }
        
                if (m->control_pressed) { return tax; }