X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustercommand.h;h=96b7c08861f216862de0c1e600d07fed463eb56a;hb=bd27c2b0612942815b7417c79f7ee41f669a2a34;hp=368760ac9465c231674b84de2ffffa5b714382f2;hpb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;p=mothur.git diff --git a/clustercommand.h b/clustercommand.h index 368760a..96b7c08 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. @@ -32,16 +33,20 @@ public: ~ClusterCommand(); vector setParameters(); - string getCommandName() { return "cluster"; } - string getCommandCategory() { return "OTU-Based Approaches"; } + string getCommandName() { return "cluster"; } + string getCommandCategory() { return "Clustering"; } + string getHelpString(); + string getOutputPattern(string); + 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 77:3219.\nSchloss PD, Handelsman J (2005). Introducing DOTUR, a computer program for defining operational taxonomic units and estimating species richness. Appl Environ Microbiol 71: 1501-6.\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 +54,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 +66,8 @@ private: void printData(string label); vector outputNames; + + int createRabund(CountTable*&, ListVector*&, RAbundVector*&); }; #endif