X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=kruskalwalliscommand.h;h=73ef6434de6d6edcd6449e8824aae2d7f099b289;hp=7e526137bc42daa1928c7e0988e1b52d546dbf2a;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=013ef8f1507c29ef442e47eb3538ecdd1ef6ddef diff --git a/kruskalwalliscommand.h b/kruskalwalliscommand.h index 7e52613..73ef643 100644 --- a/kruskalwalliscommand.h +++ b/kruskalwalliscommand.h @@ -9,33 +9,44 @@ #define KRUSKALWALLISCOMMAND_H #include "command.hpp" +#include "inputdata.h" +#include "designmap.h" class KruskalWallisCommand : public Command { - + public: - + KruskalWallisCommand(string); KruskalWallisCommand(); ~KruskalWallisCommand(){} vector setParameters(); - string getCommandName() { return "kruskalwallis"; } + string getCommandName() { return "kruskal.wallis"; } string getCommandCategory() { return "Hypothesis Testing"; } - string getOutputFileNameTag(string, string); + string getOutputPattern(string); string getHelpString(); - string getCitation() { return "http://www.mothur.org/wiki/kruskalwallis"; } + string getCitation() { return "http://www.mothur.org/wiki/Kruskal.wallis"; } string getDescription() { return "Non-parametric method for testing whether samples originate from the same distribution."; } + struct groupRank { + string group; + double value; + double rank; + }; + int execute(); void help() { m->mothurOut(getHelpString()); } - multimap getRank(vector); + void assignRank(vector&); + void assignValue(vector&); + private: - string outputDir; - vector counts; - vector rankSums; - vector rankMeans; + bool abort, allLines; + string outputDir, sharedfile, designfile, mclass; + vector outputNames; + set labels; + int process(vector&, DesignMap&); }; #endif /* KRUSKALWALLISCOMMAND_H */