]> git.donarmstrong.com Git - mothur.git/blobdiff - readotu.cpp
nmds command done
[mothur.git] / readotu.cpp
index 84132ae5bdecda6f1e967dffdbeb284cfd281f23..00448f8a24cced84a346dfedc434ffa838698371 100644 (file)
@@ -12,8 +12,8 @@
 /***********************************************************************/
 
 ReadOTUFile::ReadOTUFile(string pf): philFile(pf){
-       
-       //openInputFile(philFile, fileHandle);
+       m = MothurOut::getInstance();
+       //m->openInputFile(philFile, fileHandle);
 }
 
 /***********************************************************************/
@@ -35,7 +35,7 @@ void ReadOTUFile::read(GlobalData* globaldata){
                //memory leak prevention
                //if (globaldata->ginput != NULL) { delete globaldata->ginput;  }
                globaldata->ginput = input;     //saving to be used by collector and rarefact commands.
-       
+
                if ((globaldata->getFormat() == "list") || (globaldata->getFormat() == "rabund") || (globaldata->getFormat() == "sabund")) {//you are reading a list, rabund or sabund file for collect, rarefaction or summary.
 
 //cout << input << '\t' << globaldata << endl;
@@ -70,7 +70,7 @@ void ReadOTUFile::read(GlobalData* globaldata){
                }
        }
        catch(exception& e) {
-               errorOut(e, "ReadOTUFile", "read");
+               m->errorOut(e, "ReadOTUFile", "read");
                exit(1);
        }
 }