]> git.donarmstrong.com Git - mothur.git/blobdiff - readotucommand.cpp
fixed some bugs and added scriptengine
[mothur.git] / readotucommand.cpp
index ba7eae42a668e7fa9bf3a9f8d33c4746b55ce810..2df74e4e6c3283db6808754ede700c66d9c56b6e 100644 (file)
@@ -64,6 +64,7 @@ ReadOtuCommand::ReadOtuCommand(string option){
                                globaldata->setGroupFile(groupfile); 
                                groupMap = new GroupMap(groupfile);
                                groupMap->readMap();
+                               globaldata->gGroupmap = groupMap;
                        }
 
                        //you are doing a list and group shared
@@ -168,10 +169,7 @@ int ReadOtuCommand::execute(){
                
                //read->read(&*globaldata); 
                if (globaldata->getFormat() == "shared") {
-                       groupMap->readMap();
-                       
-                       //if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap;  }
-                       globaldata->gGroupmap = groupMap;
+                       //groupMap->readMap();
                        
                        parselist = new ParseListCommand();
                        parselist->execute();