globaldata->setGroupFile(groupfile);
groupMap = new GroupMap(groupfile);
groupMap->readMap();
+ globaldata->gGroupmap = groupMap;
}
//you are doing a list and group shared
if (abort == false) {
//gets whichever one of the above is set
filename = globaldata->inputFileName;
- read = new ReadOTUFile(filename);
}
}
//**********************************************************************************************************************
ReadOtuCommand::~ReadOtuCommand(){
- if (abort == false) { delete read; }
-}
+ }
//**********************************************************************************************************************
if (abort == true) { return 0; }
- read->read(&*globaldata);
if (globaldata->getFormat() == "shared") {
- groupMap->readMap();
- //if (globaldata->gGroupmap != NULL) { delete globaldata->gGroupmap; }
- globaldata->gGroupmap = groupMap;
- shared = new SharedCommand();
- shared->execute();
-
parselist = new ParseListCommand();
parselist->execute();
+ delete parselist;
+
+ shared = new SharedCommand();
+ shared->execute();
+ delete shared;
//change format to shared to speed up commands
globaldata->setFormat("sharedfile");