X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustercommand.h;h=bda61403ced8b4b7051edd69d22623c14184bc54;hb=0e051b4cfda410b0d441da6ff2f96d4bbe1d9e5a;hp=9dfd2a063ada813ce96be831e55263fafe132c1a;hpb=20a2d0350a737a434c89f303662d64a8eeea7b05;p=mothur.git diff --git a/clustercommand.h b/clustercommand.h index 9dfd2a0..bda6140 100644 --- a/clustercommand.h +++ b/clustercommand.h @@ -9,17 +9,14 @@ * */ -#include -#include -#include #include "command.hpp" #include "rabundvector.hpp" +#include "sabundvector.hpp" #include "listvector.hpp" #include "cluster.hpp" #include "sparsematrix.hpp" /* The cluster() command: - The cluster command can only be executed after a successful read.phylip or read.column command. The cluster command outputs a .list , .rabund and .sabund files. The cluster command parameter options are method, cuttoff and precision. No parameters are required. The cluster command should be in the following format: cluster(method=yourMethod, cutoff=yourCutoff, precision=yourPrecision). @@ -27,30 +24,43 @@ The cluster() command outputs three files *.list, *.rabund, and *.sabund. */ -class GlobalData; - class ClusterCommand : public Command { public: - ClusterCommand(); + ClusterCommand(string); + ClusterCommand(); ~ClusterCommand(); - int execute(); + + vector setParameters(); + string getCommandName() { return "cluster"; } + string getCommandCategory() { return "Clustering"; } + string getHelpString(); + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - GlobalData* globaldata; Cluster* cluster; SparseMatrix* matrix; ListVector* list; RAbundVector* rabund; RAbundVector oldRAbund; ListVector oldList; - - string method, fileroot, tag; + + bool abort, hard, sim; + + string method, fileroot, tag, outputDir, phylipfile, columnfile, namefile, format, distfile; double cutoff; + string showabund, timing; int precision, length; ofstream sabundFile, rabundFile, listFile; + + bool print_start; + time_t start; + unsigned long loops; void printData(string label); + vector outputNames; }; -#endif \ No newline at end of file +#endif