X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=parselistcommand.cpp;h=451a375d4d705d2831f790fc259a28882e52c393;hb=d5c8caf2d08b7ac6de30e33b1d19cfd246d08f03;hp=8a848e768fd5c4c2775bec636be6acf64dd5d2ac;hpb=bc9a445aa9fd0334301f9f23514de268e3b5a5e3;p=mothur.git diff --git a/parselistcommand.cpp b/parselistcommand.cpp index 8a848e7..451a375 100644 --- a/parselistcommand.cpp +++ b/parselistcommand.cpp @@ -27,12 +27,7 @@ ParseListCommand::ParseListCommand(){ } //set fileroot - if(globaldata->getFileRoot() != ""){ - fileroot = globaldata->getFileRoot(); - } - else{ - fileroot = getRootName(globaldata->getDistFile()); - } + fileroot = getRootName(globaldata->getListFile()); //open output list files for (i=0; igetNumGroups(); i++) {//opens an output file for each group @@ -130,6 +125,10 @@ int ParseListCommand::execute(){ } list = input->getListVector(); } + + //set groupmap for .shared commands + globaldata->gGroupmap = groupMap; + return 0; } catch(exception& e) { @@ -146,7 +145,6 @@ int ParseListCommand::execute(){ ParseListCommand::~ParseListCommand(){ delete list; - delete groupMap; delete input; delete read; }