X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustercommand.h;h=268ec315a81e1bbbcbd80051986703f3e02f03d4;hb=b86361f726a0d1dfc9f2e91b795e402d97c46f9d;hp=5c57b69d1bd5dc0495925cb452df908ff5cb5b81;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0;p=mothur.git diff --git a/clustercommand.h b/clustercommand.h index 5c57b69..268ec31 100644 --- a/clustercommand.h +++ b/clustercommand.h @@ -10,7 +10,6 @@ */ #include "command.hpp" -#include "globaldata.hpp" #include "rabundvector.hpp" #include "sabundvector.hpp" #include "listvector.hpp" @@ -18,7 +17,6 @@ #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). @@ -30,12 +28,20 @@ class ClusterCommand : public Command { public: ClusterCommand(string); + ClusterCommand(); ~ClusterCommand(); - int execute(); - void help(); + + vector setParameters(); + string getCommandName() { return "cluster"; } + string getCommandCategory() { return "Clustering"; } + string getHelpString(); + string getCitation() { return "Schloss PD, Westcott SL (2011). Assessing and improving methods used in OTU-based approaches for 16S rRNA gene sequence analysis. Appl Environ Microbiol. \nhttp://www.mothur.org/wiki/Cluster"; } + string getDescription() { return "cluster your sequences into OTUs using a distance matrix"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - GlobalData* globaldata; Cluster* cluster; SparseMatrix* matrix; ListVector* list; @@ -43,9 +49,9 @@ private: RAbundVector oldRAbund; ListVector oldList; - bool abort; + bool abort, hard, sim; - string method, fileroot, tag, outputDir; + string method, fileroot, tag, outputDir, phylipfile, columnfile, namefile, format, distfile; double cutoff; string showabund, timing; int precision, length;