X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=kruskalwalliscommand.h;h=73ef6434de6d6edcd6449e8824aae2d7f099b289;hp=da1166ed16a787adfaaf8a2e183afc8724f6f0a0;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=0ad366957902179879d950a6a5184779a73bab47 diff --git a/kruskalwalliscommand.h b/kruskalwalliscommand.h index da1166e..73ef643 100644 --- a/kruskalwalliscommand.h +++ b/kruskalwalliscommand.h @@ -10,8 +10,7 @@ #include "command.hpp" #include "inputdata.h" -#include "sharedrabundvector.h" - +#include "designmap.h" class KruskalWallisCommand : public Command { @@ -22,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 { @@ -42,22 +41,12 @@ public: private: - string outputDir, sharedfile, groups; - bool abort; + bool abort, allLines; + string outputDir, sharedfile, designfile, mclass; + vector outputNames; set labels; - vector outputNames, Groups; - 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; } + int process(vector&, DesignMap&); }; #endif /* KRUSKALWALLISCOMMAND_H */