X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=parsimonycommand.h;fp=parsimonycommand.h;h=274cac4e94f46b51aca95695f9fc4d7a4ba9c981;hb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;hp=9e756b884fb087f95ca0d43c23027c8caaa33b3f;hpb=36a867cbd85d9c276d3c8d13f25a150bbbe2466b;p=mothur.git diff --git a/parsimonycommand.h b/parsimonycommand.h index 9e756b8..274cac4 100644 --- a/parsimonycommand.h +++ b/parsimonycommand.h @@ -15,25 +15,26 @@ #include "progress.hpp" #include "sharedutilities.h" #include "fileoutput.h" +#include "readtree.h" -class GlobalData; - class ParsimonyCommand : public Command { public: ParsimonyCommand(string); ParsimonyCommand(); - ~ParsimonyCommand() { if (abort == false) { delete pars; delete util; delete output; } } - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); - + ~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 @@ -43,8 +44,8 @@ private: TreeMap* savetmap; Parsimony* pars; vector groupComb; // AB. AC, BC... - string sumFile, randomtree, allGroups, outputDir; - int iters, numGroups, numComp, counter, processors; + 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. @@ -57,16 +58,15 @@ private: vector< map > uCumul; //map -vector entry for each combination. ofstream outSum; - - bool abort; string groups, itersString; vector Groups, outputNames; //holds groups to be used - map > outputTypes; - + map nameMap; + void printParsimonyFile(); int printUSummaryFile(); void getUserInput(); + int readNamesFile(); };