X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=parsimonycommand.h;h=274cac4e94f46b51aca95695f9fc4d7a4ba9c981;hb=f0a594f6676ef5a52d1f122b6de70de2fda08c81;hp=0f12d421ab291e176df2415c70b2ee27365a92ad;hpb=5a9f3cce3e2e053c249e3e97507ce180f0854d76;p=mothur.git diff --git a/parsimonycommand.h b/parsimonycommand.h index 0f12d42..274cac4 100644 --- a/parsimonycommand.h +++ b/parsimonycommand.h @@ -15,20 +15,26 @@ #include "progress.hpp" #include "sharedutilities.h" #include "fileoutput.h" +#include "readtree.h" -class GlobalData; - class ParsimonyCommand : public Command { public: ParsimonyCommand(string); - ~ParsimonyCommand() { if (abort == false) { delete pars; delete util; delete output; } } - int execute(); - void help(); - + ParsimonyCommand(); + ~ParsimonyCommand(){} + + vector setParameters(); + string getCommandName() { return "parsimony"; } + string getCommandCategory() { return "Hypothesis Testing"; } + string getHelpString(); + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: - GlobalData* globaldata; + ReadTree* read; SharedUtil* util; FileOutput* output; vector T; //user trees @@ -38,8 +44,8 @@ private: TreeMap* savetmap; Parsimony* pars; vector groupComb; // AB. AC, BC... - string sumFile, randomtree, allGroups; - int iters, numGroups, numComp, counter; + string sumFile, randomtree, allGroups, outputDir, treefile, groupfile, namefile; + int iters, numGroups, numComp, counter, processors, numUniquesInName; vector numEachGroup; //vector containing the number of sequences in each group the users wants for random distrib. vector< vector > userTreeScores; //scores for users trees for each comb. vector< vector > UScoreSig; //tree score signifigance when compared to random trees - percentage of random trees with that score or lower. @@ -52,15 +58,15 @@ private: vector< map > uCumul; //map -vector entry for each combination. ofstream outSum; - - bool abort; string groups, itersString; - vector Groups; //holds groups to be used - + vector Groups, outputNames; //holds groups to be used + map nameMap; + void printParsimonyFile(); - void printUSummaryFile(); + int printUSummaryFile(); void getUserInput(); + int readNamesFile(); };