X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=anosimcommand.h;fp=anosimcommand.h;h=ab724007237d508e1b2dabf1bba521c5c38f7497;hb=7b287636ea67fb2254b119c21b4057a177d3ce19;hp=0b145639d8b0f8551988e67d29ee4a2612efa809;hpb=e88ba6b7a994a8502030d38cc5cc542994694d4d;p=mothur.git diff --git a/anosimcommand.h b/anosimcommand.h index 0b14563..ab72400 100644 --- a/anosimcommand.h +++ b/anosimcommand.h @@ -12,12 +12,8 @@ #include "command.hpp" -#include "inputdata.h" -#include "sharedrabundvector.h" -#include "validcalculator.h" -#include "readphylipvector.h" -class GlobalData; +class GroupMap; class AnosimCommand : public Command { @@ -33,32 +29,23 @@ public: void help(); private: - struct linePair { - int start; - int num; - linePair(int i, int j) : start(i), num(j) {} - }; - vector lines; - - GlobalData* globaldata; + bool abort; GroupMap* designMap; map > outputTypes; + string outputDir, inputDir, designFileName, phylipFileName; + + vector > convertToRanks(vector >); + double calcR(vector >, map >); + map > getRandomizedGroups(map >); + double runANOSIM(ofstream&, vector >, map >, double); - 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 > distanceMatrix; + vector outputNames; + int iters; + double experimentwiseAlpha; 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 calcAnosim(ofstream&, int, vector); - double calcWithinBetween(vector&, vector, double&); - vector convertToRanks(); + }; #endif