X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=collectsharedcommand.cpp;h=dd1ec270334e09f1d316ce060c2ab8c185e0d313;hp=217045a4a1fc5dc0c83986f3b3a0345b755e1f6c;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=09a01fb51eea9e81409d367410c831394193fd86 diff --git a/collectsharedcommand.cpp b/collectsharedcommand.cpp index 217045a..dd1ec27 100644 --- a/collectsharedcommand.cpp +++ b/collectsharedcommand.cpp @@ -19,137 +19,600 @@ #include "sharedsorest.h" #include "sharedthetayc.h" #include "sharedthetan.h" +#include "sharedkstest.h" +#include "whittaker.h" +#include "sharednseqs.h" +#include "sharedochiai.h" +#include "sharedanderbergs.h" +#include "sharedkulczynski.h" +#include "sharedkulczynskicody.h" +#include "sharedlennon.h" +#include "sharedmorisitahorn.h" +#include "sharedbraycurtis.h" +#include "sharedjackknife.h" +#include "whittaker.h" +#include "odum.h" +#include "canberra.h" +#include "structeuclidean.h" +#include "structchord.h" +#include "hellinger.h" +#include "manhattan.h" +#include "structpearson.h" +#include "soergel.h" +#include "spearman.h" +#include "structkulczynski.h" +#include "structchi2.h" +#include "speciesprofile.h" +#include "hamming.h" +#include "gower.h" +#include "memchi2.h" +#include "memchord.h" +#include "memeuclidean.h" +#include "mempearson.h" //********************************************************************************************************************** +vector CollectSharedCommand::setParameters(){ + try { + CommandParameter pshared("shared", "InputTypes", "", "", "none", "none", "none","",false,true,true); parameters.push_back(pshared); + CommandParameter plabel("label", "String", "", "", "", "", "","",false,false); parameters.push_back(plabel); + CommandParameter pfreq("freq", "Number", "", "100", "", "", "","",false,false); parameters.push_back(pfreq); + CommandParameter pcalc("calc", "Multiple", "sharedchao-sharedsobs-sharedace-jabund-sorabund-jclass-sorclass-jest-sorest-thetayc-thetan-kstest-whittaker-sharednseqs-ochiai-anderberg-kulczynski-kulczynskicody-lennon-morisitahorn-braycurtis-odum-canberra-structeuclidean-structchord-hellinger-manhattan-structpearson-soergel-spearman-structkulczynski-speciesprofile-structchi2-hamming-gower-memchi2-memchord-memeuclidean-mempearson", "sharedsobs-sharedchao-sharedace-jabund-sorabund-jclass-sorclass-jest-sorest-thetayc-thetan", "", "", "","",true,false,true); parameters.push_back(pcalc); + CommandParameter pall("all", "Boolean", "", "F", "", "", "","",false,false); parameters.push_back(pall); + CommandParameter pgroups("groups", "String", "", "", "", "", "","",false,false); parameters.push_back(pgroups); + CommandParameter pinputdir("inputdir", "String", "", "", "", "", "","",false,false); parameters.push_back(pinputdir); + CommandParameter poutputdir("outputdir", "String", "", "", "", "", "","",false,false); parameters.push_back(poutputdir); + + vector myArray; + for (int i = 0; i < parameters.size(); i++) { myArray.push_back(parameters[i].name); } + return myArray; + } + catch(exception& e) { + m->errorOut(e, "CollectSharedCommand", "setParameters"); + exit(1); + } +} +//********************************************************************************************************************** +string CollectSharedCommand::getHelpString(){ + try { + string helpString = ""; + ValidCalculators validCalculator; + helpString += "The collect.shared command parameters are shared, label, freq, calc and groups. shared is required if there is no current sharedfile. \n"; + helpString += "The collect.shared command should be in the following format: \n"; + helpString += "collect.shared(label=yourLabel, freq=yourFreq, calc=yourEstimators, groups=yourGroups).\n"; + helpString += "Example collect.shared(label=unique-.01-.03, freq=10, groups=B-C, calc=sharedchao-sharedace-jabund-sorensonabund-jclass-sorclass-jest-sorest-thetayc-thetan).\n"; + helpString += "The default values for freq is 100 and calc are sharedsobs-sharedchao-sharedace-jabund-sorensonabund-jclass-sorclass-jest-sorest-thetayc-thetan.\n"; + helpString += "The default value for groups is all the groups in your groupfile.\n"; + helpString += "The freq parameter is used indicate when to output your data, by default it is set to 100. But you can set it to a percentage of the number of sequence. For example freq=0.10, means 10%. \n"; + helpString += validCalculator.printCalc("shared"); + helpString += "The label parameter is used to analyze specific labels in your input.\n"; + helpString += "The all parameter is used to specify if you want the estimate of all your groups together. This estimate can only be made for sharedsobs and sharedchao calculators. The default is false.\n"; + helpString += "If you use sharedchao and run into memory issues, set all to false. \n"; + helpString += "The groups parameter allows you to specify which of the groups in your groupfile you would like analyzed. You must enter at least 2 valid groups.\n"; + helpString += "Note: No spaces between parameter labels (i.e. list), '=' and parameters (i.e.yourListfile).\n"; + return helpString; + } + catch(exception& e) { + m->errorOut(e, "CollectSharedCommand", "getHelpString"); + exit(1); + } +} +//********************************************************************************************************************** +string CollectSharedCommand::getOutputPattern(string type) { + try { + string pattern = ""; + + if (type == "sharedchao") { pattern = "[filename],shared.chao"; } + else if (type == "sharedsobs") { pattern = "[filename],shared.sobs"; } + else if (type == "sharedace") { pattern = "[filename],shared.ace"; } + else if (type == "jabund") { pattern = "[filename],jabund"; } + else if (type == "sorabund") { pattern = "[filename],sorabund"; } + else if (type == "jclass") { pattern = "[filename],jclass"; } + else if (type == "sorclass") { pattern = "[filename],sorclass"; } + else if (type == "jest") { pattern = "[filename],jest"; } + else if (type == "sorest") { pattern = "[filename],sorest"; } + else if (type == "thetayc") { pattern = "[filename],thetayc"; } + else if (type == "thetan") { pattern = "[filename],thetan"; } + else if (type == "kstest") { pattern = "[filename],kstest"; } + else if (type == "whittaker") { pattern = "[filename],whittaker"; } + else if (type == "sharednseqs") { pattern = "[filename],shared.nseqs"; } + else if (type == "ochiai") { pattern = "[filename],ochiai"; } + else if (type == "anderberg") { pattern = "[filename],anderberg"; } + else if (type == "kulczynski") { pattern = "[filename],kulczynski"; } + else if (type == "kulczynskicody") { pattern = "[filename],kulczynskicody"; } + else if (type == "lennon") { pattern = "[filename],lennon"; } + else if (type == "morisitahorn") { pattern = "[filename],morisitahorn"; } + else if (type == "braycurtis") { pattern = "[filename],braycurtis"; } + else if (type == "odum") { pattern = "[filename],odum"; } + else if (type == "canberra") { pattern = "[filename],canberra"; } + else if (type == "structeuclidean") { pattern = "[filename],structeuclidean"; } + else if (type == "structchord") { pattern = "[filename],structchord"; } + else if (type == "hellinger") { pattern = "[filename],hellinger"; } + else if (type == "manhattan") { pattern = "[filename],manhattan"; } + else if (type == "structpearson") { pattern = "[filename],structpearson"; } + else if (type == "soergel") { pattern = "[filename],soergel"; } + else if (type == "spearman") { pattern = "[filename],spearman"; } + else if (type == "structkulczynski") { pattern = "[filename],structkulczynski";} + else if (type == "structchi2") { pattern = "[filename],structchi2"; } + else if (type == "speciesprofile") { pattern = "[filename],speciesprofile"; } + else if (type == "hamming") { pattern = "[filename],hamming"; } + else if (type == "gower") { pattern = "[filename],gower"; } + else if (type == "memchi2") { pattern = "[filename],memchi2"; } + else if (type == "memchord") { pattern = "[filename],memchord"; } + else if (type == "memeuclidean") { pattern = "[filename],memeuclidean"; } + else if (type == "mempearson") { pattern = "[filename],mempearson"; } + else { m->mothurOut("[ERROR]: No definition for type " + type + " output pattern.\n"); m->control_pressed = true; } + + return pattern; + } + catch(exception& e) { + m->errorOut(e, "CollectSharedCommand", "getOutputPattern"); + exit(1); + } +} -CollectSharedCommand::CollectSharedCommand(){ +//********************************************************************************************************************** +CollectSharedCommand::CollectSharedCommand(){ try { - globaldata = GlobalData::getInstance(); - string fileNameRoot; - fileNameRoot = getRootName(globaldata->inputFileName); - format = globaldata->getFormat(); - validCalculator = new ValidCalculators(); + abort = true; calledHelp = true; + setParameters(); + vector tempOutNames; + outputTypes["sharedchao"] = tempOutNames; + outputTypes["sharedsobs"] = tempOutNames; + outputTypes["sharedace"] = tempOutNames; + outputTypes["jabund"] = tempOutNames; + outputTypes["sorabund"] = tempOutNames; + outputTypes["jclass"] = tempOutNames; + outputTypes["sorclass"] = tempOutNames; + outputTypes["jest"] = tempOutNames; + outputTypes["sorest"] = tempOutNames; + outputTypes["thetayc"] = tempOutNames; + outputTypes["thetan"] = tempOutNames; + outputTypes["kstest"] = tempOutNames; + outputTypes["whittaker"] = tempOutNames; + outputTypes["sharednseqs"] = tempOutNames; + outputTypes["ochiai"] = tempOutNames; + outputTypes["anderberg"] = tempOutNames; + outputTypes["kulczynski"] = tempOutNames; + outputTypes["kulczynskicody"] = tempOutNames; + outputTypes["lennon"] = tempOutNames; + outputTypes["morisitahorn"] = tempOutNames; + outputTypes["braycurtis"] = tempOutNames; + outputTypes["odum"] = tempOutNames; + outputTypes["canberra"] = tempOutNames; + outputTypes["structeuclidean"] = tempOutNames; + outputTypes["structchord"] = tempOutNames; + outputTypes["hellinger"] = tempOutNames; + outputTypes["manhattan"] = tempOutNames; + outputTypes["structpearson"] = tempOutNames; + outputTypes["soergel"] = tempOutNames; + outputTypes["spearman"] = tempOutNames; + outputTypes["structkulczynski"] = tempOutNames; + outputTypes["structchi2"] = tempOutNames; + outputTypes["speciesprofile"] = tempOutNames; + outputTypes["hamming"] = tempOutNames; + outputTypes["gower"] = tempOutNames; + outputTypes["memchi2"] = tempOutNames; + outputTypes["memchord"] = tempOutNames; + outputTypes["memeuclidean"] = tempOutNames; + outputTypes["mempearson"] = tempOutNames; - int i; - for (i=0; iEstimators.size(); i++) { - if (validCalculator->isValidCalculator("shared", globaldata->Estimators[i]) == true) { - if (globaldata->Estimators[i] == "sharedchao") { - cDisplays.push_back(new CollectDisplay(new SharedChao1(), new SharedOneColumnFile(fileNameRoot+"shared.chao"))); - }else if (globaldata->Estimators[i] == "sharedsobs") { - cDisplays.push_back(new CollectDisplay(new SharedSobsCS(), new SharedOneColumnFile(fileNameRoot+"shared.sobs"))); - }else if (globaldata->Estimators[i] == "sharedace") { - cDisplays.push_back(new CollectDisplay(new SharedAce(), new SharedOneColumnFile(fileNameRoot+"shared.ace"))); - }else if (globaldata->Estimators[i] == "sharedjabund") { - cDisplays.push_back(new CollectDisplay(new SharedJAbund(), new SharedOneColumnFile(fileNameRoot+"shared.jabund"))); - }else if (globaldata->Estimators[i] == "sharedsorensonabund") { - cDisplays.push_back(new CollectDisplay(new SharedSorAbund(), new SharedOneColumnFile(fileNameRoot+"shared.sorabund"))); - }else if (globaldata->Estimators[i] == "sharedjclass") { - cDisplays.push_back(new CollectDisplay(new SharedJclass(), new SharedOneColumnFile(fileNameRoot+"shared.jclass"))); - }else if (globaldata->Estimators[i] == "sharedsorclass") { - cDisplays.push_back(new CollectDisplay(new SharedSorClass(), new SharedOneColumnFile(fileNameRoot+"shared.sorclass"))); - }else if (globaldata->Estimators[i] == "sharedjest") { - cDisplays.push_back(new CollectDisplay(new SharedJest(), new SharedOneColumnFile(fileNameRoot+"shared.jest"))); - }else if (globaldata->Estimators[i] == "sharedsorest") { - cDisplays.push_back(new CollectDisplay(new SharedSorEst(), new SharedOneColumnFile(fileNameRoot+"shared.sorest"))); - }else if (globaldata->Estimators[i] == "sharedthetayc") { - cDisplays.push_back(new CollectDisplay(new SharedThetaYC(), new SharedOneColumnFile(fileNameRoot+"shared.thetayc"))); - }else if (globaldata->Estimators[i] == "sharedthetan") { - cDisplays.push_back(new CollectDisplay(new SharedThetaN(), new SharedOneColumnFile(fileNameRoot+"shared.thetan"))); + } + catch(exception& e) { + m->errorOut(e, "CollectSharedCommand", "CollectSharedCommand"); + exit(1); + } +} +//********************************************************************************************************************** +CollectSharedCommand::CollectSharedCommand(string option) { + try { + abort = false; calledHelp = false; + allLines = 1; + + //allow user to run help + if(option == "help") { help(); abort = true; calledHelp = true; } + else if(option == "citation") { citation(); abort = true; calledHelp = true;} + + else { + vector myArray = setParameters(); + + OptionParser parser(option); + map parameters=parser.getParameters(); + map::iterator it; + + ValidParameters validParameter; + + //check to make sure all parameters are valid for command + for (it = parameters.begin(); it != parameters.end(); it++) { + if (validParameter.isValidParameter(it->first, myArray, it->second) != true) { abort = true; } + } + + //initialize outputTypes + vector tempOutNames; + outputTypes["sharedchao"] = tempOutNames; + outputTypes["sharedsobs"] = tempOutNames; + outputTypes["sharedace"] = tempOutNames; + outputTypes["jabund"] = tempOutNames; + outputTypes["sorabund"] = tempOutNames; + outputTypes["jclass"] = tempOutNames; + outputTypes["sorclass"] = tempOutNames; + outputTypes["jest"] = tempOutNames; + outputTypes["sorest"] = tempOutNames; + outputTypes["thetayc"] = tempOutNames; + outputTypes["thetan"] = tempOutNames; + outputTypes["kstest"] = tempOutNames; + outputTypes["whittaker"] = tempOutNames; + outputTypes["sharednseqs"] = tempOutNames; + outputTypes["ochiai"] = tempOutNames; + outputTypes["anderberg"] = tempOutNames; + outputTypes["kulczynski"] = tempOutNames; + outputTypes["kulczynskicody"] = tempOutNames; + outputTypes["lennon"] = tempOutNames; + outputTypes["morisitahorn"] = tempOutNames; + outputTypes["braycurtis"] = tempOutNames; + outputTypes["odum"] = tempOutNames; + outputTypes["canberra"] = tempOutNames; + outputTypes["structeuclidean"] = tempOutNames; + outputTypes["structchord"] = tempOutNames; + outputTypes["hellinger"] = tempOutNames; + outputTypes["manhattan"] = tempOutNames; + outputTypes["structpearson"] = tempOutNames; + outputTypes["soergel"] = tempOutNames; + outputTypes["spearman"] = tempOutNames; + outputTypes["structkulczynski"] = tempOutNames; + outputTypes["speciesprofile"] = tempOutNames; + outputTypes["structchi2"] = tempOutNames; + outputTypes["hamming"] = tempOutNames; + outputTypes["gower"] = tempOutNames; + outputTypes["memchi2"] = tempOutNames; + outputTypes["memchord"] = tempOutNames; + outputTypes["memeuclidean"] = tempOutNames; + outputTypes["mempearson"] = tempOutNames; + + + //if the user changes the input directory command factory will send this info to us in the output parameter + string inputDir = validParameter.validFile(parameters, "inputdir", false); + if (inputDir == "not found"){ inputDir = ""; } + else { + string path; + it = parameters.find("shared"); + //user has given a template file + if(it != parameters.end()){ + path = m->hasPath(it->second); + //if the user has not given a path then, add inputdir. else leave path alone. + if (path == "") { parameters["shared"] = inputDir + it->second; } } } + + //get shared file + sharedfile = validParameter.validFile(parameters, "shared", true); + if (sharedfile == "not open") { sharedfile = ""; abort = true; } + else if (sharedfile == "not found") { + //if there is a current shared file, use it + sharedfile = m->getSharedFile(); + if (sharedfile != "") { m->mothurOut("Using " + sharedfile + " as input file for the shared parameter."); m->mothurOutEndLine(); } + else { m->mothurOut("You have no current sharedfile and the shared parameter is required."); m->mothurOutEndLine(); abort = true; } + }else { m->setSharedFile(sharedfile); } + + + //if the user changes the output directory command factory will send this info to us in the output parameter + outputDir = validParameter.validFile(parameters, "outputdir", false); if (outputDir == "not found"){ outputDir = m->hasPath(sharedfile); } + + //check for optional parameter and set defaults + // ...at some point should added some additional type checking.. + label = validParameter.validFile(parameters, "label", false); + if (label == "not found") { label = ""; } + else { + if(label != "all") { m->splitAtDash(label, labels); allLines = 0; } + else { allLines = 1; } + } + + calc = validParameter.validFile(parameters, "calc", false); + if (calc == "not found") { calc = "sharedsobs-sharedchao-sharedace-jabund-sorabund-jclass-sorclass-jest-sorest-thetayc-thetan"; } + else { + if (calc == "default") { calc = "sharedsobs-sharedchao-sharedace-jabund-sorabund-jclass-sorclass-jest-sorest-thetayc-thetan"; } + } + m->splitAtDash(calc, Estimators); + if (m->inUsersGroups("citation", Estimators)) { + ValidCalculators validCalc; validCalc.printCitations(Estimators); + //remove citation from list of calcs + for (int i = 0; i < Estimators.size(); i++) { if (Estimators[i] == "citation") { Estimators.erase(Estimators.begin()+i); break; } } + } + + groups = validParameter.validFile(parameters, "groups", false); + if (groups == "not found") { groups = ""; } + else { + m->splitAtDash(groups, Groups); + } + m->setGroups(Groups); + + string temp; + temp = validParameter.validFile(parameters, "freq", false); if (temp == "not found") { temp = "100"; } + m->mothurConvert(temp, freq); + + temp = validParameter.validFile(parameters, "all", false); if (temp == "not found") { temp = "false"; } + all = m->isTrue(temp); + + if (abort == false) { + + string fileNameRoot = outputDir + m->getRootName(m->getSimpleName(sharedfile)); + map variables; + variables["[filename]"] = fileNameRoot; + + ValidCalculators validCalculator; + + for (int i=0; isetCalc(""); } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the CollectSharedCommand class Function CollectSharedCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + m->errorOut(e, "CollectSharedCommand", "CollectSharedCommand"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the CollectSharedCommand class function CollectSharedCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } - } - //********************************************************************************************************************** - -CollectSharedCommand::~CollectSharedCommand(){ - delete order; - delete input; - delete cCurve; - delete read; -} - +CollectSharedCommand::~CollectSharedCommand(){} //********************************************************************************************************************** int CollectSharedCommand::execute(){ try { - int count = 1; + + if (abort == true) { if (calledHelp) { return 0; } return 2; } //if the users entered no valid calculators don't execute command if (cDisplays.size() == 0) { return 0; } + for(int i=0;isetAll(all); } + + input = new InputData(sharedfile, "sharedfile"); + order = input->getSharedOrderVector(); + string lastLabel = order->getLabel(); - if (format == "sharedfile") { - read = new ReadPhilFile(globaldata->inputFileName); - read->read(&*globaldata); + //if the users enters label "0.06" and there is no "0.06" in their file use the next lowest label. + set processedLabels; + set userLabels = labels; - input = globaldata->ginput; - order = input->getSharedOrderVector(); - }else { - //you are using a list and a groupfile - read = new ReadPhilFile(globaldata->inputFileName); - read->read(&*globaldata); - - input = globaldata->ginput; - SharedList = globaldata->gSharedList; - order = SharedList->getSharedOrderVector(); - } - - while(order != NULL){ - - if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(order->getLabel()) == 1){ + //set users groups + SharedUtil* util = new SharedUtil(); + Groups = m->getGroups(); + vector allGroups = m->getAllGroups(); + util->setGroups(Groups, allGroups, "collect"); + m->setGroups(Groups); + m->setAllGroups(allGroups); + delete util; + + while((order != NULL) && ((allLines == 1) || (userLabels.size() != 0))) { + if (m->control_pressed) { + for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } outputTypes.clear(); + for(int i=0;iclearGroups(); + return 0; + } + + if(allLines == 1 || labels.count(order->getLabel()) == 1){ + + m->mothurOut(order->getLabel()); m->mothurOutEndLine(); //create collectors curve cCurve = new Collect(order, cDisplays); - convert(globaldata->getFreq(), freq); cCurve->getSharedCurve(freq); - delete cCurve; - cout << order->getLabel() << '\t' << count << endl; + processedLabels.insert(order->getLabel()); + userLabels.erase(order->getLabel()); + } + + //you have a label the user want that is smaller than this label and the last label has not already been processed + if ((m->anyLabelsToProcess(order->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) { + string saveLabel = order->getLabel(); + + delete order; + order = input->getSharedOrderVector(lastLabel); + + m->mothurOut(order->getLabel()); m->mothurOutEndLine(); + //create collectors curve + cCurve = new Collect(order, cDisplays); + cCurve->getSharedCurve(freq); + delete cCurve; + + processedLabels.insert(order->getLabel()); + userLabels.erase(order->getLabel()); + + //restore real lastlabel to save below + order->setLabel(saveLabel); } + + lastLabel = order->getLabel(); + //get next line to process - if (format == "sharedfile") { - order = input->getSharedOrderVector(); + delete order; + order = input->getSharedOrderVector(); + } + + if (m->control_pressed) { + for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } outputTypes.clear(); + for(int i=0;iclearGroups(); + delete input; + return 0; + } + + //output error messages about any remaining user labels + set::iterator it; + bool needToRun = false; + for (it = userLabels.begin(); it != userLabels.end(); it++) { + m->mothurOut("Your file does not include the label " + *it); + if (processedLabels.count(lastLabel) != 1) { + m->mothurOut(". I will use " + lastLabel + "."); m->mothurOutEndLine(); + needToRun = true; }else { - //you are using a list and a groupfile - SharedList = input->getSharedListVector(); //get new list vector to process - if (SharedList != NULL) { - order = SharedList->getSharedOrderVector(); //gets new order vector with group info. - }else { - break; - } + m->mothurOut(". Please refer to " + lastLabel + "."); m->mothurOutEndLine(); } + } + + //run last label if you need to + if (needToRun == true) { + if (order != NULL) { delete order; } + order = input->getSharedOrderVector(lastLabel); + + m->mothurOut(order->getLabel()); m->mothurOutEndLine(); + cCurve = new Collect(order, cDisplays); + cCurve->getSharedCurve(freq); + delete cCurve; - count++; + if (m->control_pressed) { + for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } outputTypes.clear(); + for(int i=0;iclearGroups(); + return 0; + } + + delete order; } - + for(int i=0;iclearGroups(); + delete input; + + m->mothurOutEndLine(); + m->mothurOut("Output File Names: "); m->mothurOutEndLine(); + for (int i = 0; i < outputNames.size(); i++) { m->mothurOut(outputNames[i]); m->mothurOutEndLine(); } + m->mothurOutEndLine(); + + return 0; } catch(exception& e) { - cout << "Standard Error: " << e.what() << " has occurred in the CollectSharedCommand class Function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; + m->errorOut(e, "CollectSharedCommand", "execute"); exit(1); } - catch(...) { - cout << "An unknown error has occurred in the CollectSharedCommand class function execute. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n"; - exit(1); - } } - -//********************************************************************************************************************** +/***********************************************************/