X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=homovacommand.h;h=22741e979ec9b0847ca660f5ab41eab49fe715d5;hp=55e4eac7b1a1efc7bac263186fd827bd72d19ad6;hb=615301e57c25e241356a9c2380648d117709458d;hpb=c887ae6cd9f1c5b6e1b73a1384f154392be4efa3 diff --git a/homovacommand.h b/homovacommand.h index 55e4eac..22741e9 100644 --- a/homovacommand.h +++ b/homovacommand.h @@ -12,56 +12,43 @@ #include "command.hpp" -#include "inputdata.h" -#include "sharedrabundvector.h" -#include "validcalculator.h" -#include "readphylipvector.h" -class GlobalData; +//class GlobalData; +class GroupMap; class HomovaCommand : public Command { public: HomovaCommand(string); HomovaCommand(); - ~HomovaCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } + ~HomovaCommand(){} + + vector setParameters(); + string getCommandName() { return "homova"; } + string getCommandCategory() { return "Hypothesis Testing"; } + + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "Stewart CN, Excoffier L (1996). Assessing population genetic structure and variability with RAPD data: Application to Vaccinium macrocarpon (American Cranberry). J Evol Biol 9: 153-71. \nhttp://www.mothur.org/wiki/Homova"; } + string getDescription() { return "homova"; } + int execute(); - void help(); + void help() { m->mothurOut(getHelpString()); } private: - struct linePair { - int start; - int num; - linePair(int i, int j) : start(i), num(j) {} - }; - vector lines; - - GlobalData* globaldata; + double runHOMOVA(ofstream& , map >, double); + double calcSigleSSWithin(vector); + double calcBValue(map >, vector&); + map > getRandomizedGroups(map >); + + bool abort; + vector outputNames, Sets; + + string outputDir, inputDir, designFileName, phylipFileName; GroupMap* designMap; - map > outputTypes; - - vector< vector > matrix; - bool abort, allLines, pickedGroups; - set labels; //holds labels to be used - string format, groups, label, outputDir, inputDir, designfile, sets, phylipfile, calc, sharedfile; - vector Groups, outputNames, Sets; - vector< vector > namesOfGroupCombos; - int iters, processors; - vector calculators; - - int driver(int, int, vector, string); - int driver(int, int, vector, string, vector< vector >&); - int process(vector); - int calcHomova(ofstream&, int, vector); - map calcWithinEach(vector< vector >&, int, vector, map&); - double calcWithin(vector< vector >&, int, vector); - double calcTotal(int); + vector< vector > distanceMatrix; + int iters; + double experimentwiseAlpha; }; #endif - -