X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pcoacommand.h;h=3d24f6a97f799f1c8627ef40d5dbec888da51dc6;hb=110ed3a070bf6b602cccef89c8626cce033315d3;hp=8bb7c1bdc586798b70fb3ec3f601bf13b5a16d9e;hpb=605ab6fa594317a38f0df7bb6797740c735b2348;p=mothur.git diff --git a/pcoacommand.h b/pcoacommand.h index 8bb7c1b..3d24f6a 100644 --- a/pcoacommand.h +++ b/pcoacommand.h @@ -20,30 +20,27 @@ class PCOACommand : public Command { public: PCOACommand(string); PCOACommand(); - ~PCOACommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~PCOACommand(){} + + vector setParameters(); + string getCommandName() { return "pcoa"; } + string getCommandCategory() { return "Hypothesis Testing"; } + string getHelpString(); + string getCitation() { return "McCune B, Grace JB, Urban DL (2002). Analysis of ecological communities. MjM Software Design: Gleneden Beach, OR. \nLegendre P, Legendre L (1998). Numerical Ecology. Elsevier: New York. \nhttp://www.mothur.org/wiki/Pcoa"; } + string getDescription() { return "pcoa"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: bool abort, metric; - string phylipfile, columnfile, namefile, format, filename, fbase, outputDir; - float cutoff, precision; + string phylipfile, filename, fbase, outputDir; vector outputNames; - map > outputTypes; LinearAlgebra linearCalc; void get_comment(istream&, char, char); - int read_phylip(istream&, int, vector&, vector >&); - void read(string, vector&, vector >&); - void recenter(double, vector >, vector >&); void output(string, vector, vector >&, vector); - vector< vector > calculateEuclidianDistance(vector >&, int); - double calcPearson(vector >&, vector >&); };