]> git.donarmstrong.com Git - mothur.git/blobdiff - readotucommand.cpp
broke apart read matrix file
[mothur.git] / readotucommand.cpp
index eeb8cd6e3d910d30e7fde7b6d20947a693d739ed..9f27057ece85672069c9ebf219c08b459b648efc 100644 (file)
@@ -14,7 +14,7 @@ ReadOtuCommand::ReadOtuCommand(){
        try {
                globaldata = GlobalData::getInstance();
                filename = globaldata->inputFileName;
-               read = new ReadPhilFile(filename);
+               read = new ReadOTUFile(filename);
                if (globaldata->getFormat() == "shared") {
                        //read in group map info.
                        groupMap = new GroupMap(globaldata->getGroupFile());
@@ -43,6 +43,8 @@ int ReadOtuCommand::execute(){
                read->read(&*globaldata); 
                if (globaldata->getFormat() == "shared") {
                        groupMap->readMap();
+                       
+                       //if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap;  }
                        globaldata->gGroupmap = groupMap;
                
                        shared = new SharedCommand();