X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=kruskalwalliscommand.h;h=a82d208cf15ea424413fdae4eee7c666868f4b35;hb=541bab1dac00688b4c3a8c4a95ab464412663c50;hp=e3bf100bd2c8b468701f4aaee17c3807758d3f56;hpb=8e67e9de1b200106bea5a468ac02125954656499;p=mothur.git diff --git a/kruskalwalliscommand.h b/kruskalwalliscommand.h index e3bf100..a82d208 100644 --- a/kruskalwalliscommand.h +++ b/kruskalwalliscommand.h @@ -9,7 +9,8 @@ #define KRUSKALWALLISCOMMAND_H #include "command.hpp" - +#include "inputdata.h" +#include "designmap.h" class KruskalWallisCommand : public Command { @@ -20,11 +21,11 @@ public: ~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 { @@ -36,23 +37,16 @@ public: int execute(); void help() { m->mothurOut(getHelpString()); } void assignRank(vector&); + void assignValue(vector&); private: - string outputDir; - bool abort; - vector counts; - vector rankSums; - vector rankMeans; - - - - static bool comparevalue(const groupRank &a, const groupRank &b) { return a.value < b.value; } - static bool equalvalue(const groupRank &a, const groupRank &b) { return a.value == b.value; } - static bool comparerank(const groupRank &a, const groupRank &b) { return a.rank < b.rank; } - static bool equalrank(const groupRank &a, const groupRank &b) { return a.rank == b.rank; } - static bool equalgroup(const groupRank &a, const groupRank &b) { return a.group == b.group; } + bool abort, allLines; + string outputDir, sharedfile, designfile, mclass, classes; + vector outputNames; + set labels; + int process(vector&, DesignMap&); }; #endif /* KRUSKALWALLISCOMMAND_H */