#include "readotu.h"
-/***********************************************************************/
+/***********************************************************************
ReadOTUFile::ReadOTUFile(string pf): philFile(pf){
-
- //openInputFile(philFile, fileHandle);
+ m = MothurOut::getInstance();
+ //m->openInputFile(philFile, fileHandle);
}
-/***********************************************************************/
+/***********************************************************************
//This function reads the list, rabund or sabund files to be used by collect and rarefact command.
void ReadOTUFile::read(GlobalData* globaldata){
try {
//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;
}
}
catch(exception& e) {
- errorOut(e, "ReadOTUFile", "read");
+ m->errorOut(e, "ReadOTUFile", "read");
exit(1);
}
}
-/***********************************************************************/
+/***********************************************************************
ReadOTUFile::~ReadOTUFile(){
// delete input;