X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=nmdscommand.h;h=92b694864a6d15f5b5dc20f176a271a7506ae6eb;hb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;hp=d7bedcf7f9c37a6f8091d32792c10a160be3e5c5;hpb=c921bbf0623d5200f69b5d83b3c70ea533c69412;p=mothur.git diff --git a/nmdscommand.h b/nmdscommand.h index d7bedcf..92b6948 100644 --- a/nmdscommand.h +++ b/nmdscommand.h @@ -32,22 +32,27 @@ class NMDSCommand : public Command { public: NMDSCommand(string); NMDSCommand(); - ~NMDSCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~NMDSCommand(){} + + vector setParameters(); + string getCommandName() { return "nmds"; } + string getCommandCategory() { return "Hypothesis Testing"; } + + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "Borg, Groenen (1997). Non-metric multidimensional scaling function using the majorization algorithm, in Modern Multidimensional Scaling. Ed. T.F. Cox and M.A.A. Cox. Chapman and Hall. \nhttp://www.mothur.org/wiki/Nmds"; } + string getDescription() { return "nmds"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - bool abort, trace; + bool abort; string phylipfile, outputDir, axesfile; int maxdim, mindim, maxIters, iters; double epsilon; vector outputNames; - map > outputTypes; LinearAlgebra linearCalc; vector< vector > nmdsCalc(vector< vector >&, vector< vector >&, double&); @@ -56,14 +61,7 @@ private: int normalizeConfiguration(vector< vector >&, int, int); double calculateStress(vector< vector >&, vector< vector >&); vector< vector > readAxes(vector); - int output(vector< vector >&, vector&, ofstream&); - - //vector satisfyMonotonicity(vector, vector); - //vector< vector > calculateStressGradientVector(vector&, vector&, double, double, vector< vector >&); - //double calculateMagnitude(vector< vector >&); - //double calculateStep(vector< vector >&, vector< vector >&, vector&); - //vector< vector > calculateNewConfiguration(double, vector< vector >&, vector< vector >&); - + int output(vector< vector >&, vector&, ofstream&); }; /*****************************************************************/