X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustercommand.h;h=f70bb322c76cd3bf897fd5498333e5da379557fd;hb=159fd324dfecacb6617669246d85c787ae67f630;hp=bda61403ced8b4b7051edd69d22623c14184bc54;hpb=0e051b4cfda410b0d441da6ff2f96d4bbe1d9e5a;p=mothur.git diff --git a/clustercommand.h b/clustercommand.h index bda6140..f70bb32 100644 --- a/clustercommand.h +++ b/clustercommand.h @@ -14,7 +14,8 @@ #include "sabundvector.hpp" #include "listvector.hpp" #include "cluster.hpp" -#include "sparsematrix.hpp" +#include "sparsedistancematrix.h" +#include "counttable.h" /* The cluster() command: The cluster command outputs a .list , .rabund and .sabund files. @@ -34,14 +35,17 @@ public: vector setParameters(); string getCommandName() { return "cluster"; } string getCommandCategory() { return "Clustering"; } + string getOutputFileNameTag(string, string); 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: Cluster* cluster; - SparseMatrix* matrix; + SparseDistanceMatrix* matrix; ListVector* list; RAbundVector* rabund; RAbundVector oldRAbund; @@ -49,7 +53,7 @@ private: bool abort, hard, sim; - string method, fileroot, tag, outputDir, phylipfile, columnfile, namefile, format, distfile; + string method, fileroot, tag, outputDir, phylipfile, columnfile, namefile, format, distfile, countfile; double cutoff; string showabund, timing; int precision, length; @@ -61,6 +65,8 @@ private: void printData(string label); vector outputNames; + + int createRabund(CountTable*&, ListVector*&, RAbundVector*&); }; #endif