X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustersplitcommand.h;h=c4b236cb12dbfc535c1de5da7840b39f21176fb7;hb=8c8acb6218f58f662466e4111ab8aa4da0caf93c;hp=dc46f9904a594919d3789c4c98f06ec7a7c159d7;hpb=cad05a21b084833b07808c1586e755be48fe7e1a;p=mothur.git diff --git a/clustersplitcommand.h b/clustersplitcommand.h index dc46f99..c4b236c 100644 --- a/clustersplitcommand.h +++ b/clustersplitcommand.h @@ -16,22 +16,29 @@ #include "listvector.hpp" #include "cluster.hpp" #include "sparsematrix.hpp" -#include "globaldata.hpp" class ClusterSplitCommand : public Command { public: ClusterSplitCommand(string); - ~ClusterSplitCommand(); - int execute(); - void help(); + ClusterSplitCommand(); + ~ClusterSplitCommand() {} + vector setParameters(); + string getCommandName() { return "cluster.split"; } + 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.split"; } + string getDescription() { return "splits your sequences by distance or taxonomy then clusters into OTUs"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: - GlobalData* globaldata; vector processIDS; //processid vector outputNames; - + string method, fileroot, tag, outputDir, phylipfile, columnfile, namefile, distfile, format, showabund, timing, splitmethod, taxFile, fastafile; double cutoff, splitcutoff; int precision, length, processors, taxLevelCutoff; @@ -44,6 +51,7 @@ private: vector cluster(vector< map >, set&); int mergeLists(vector, map, ListVector*); map completeListFile(vector, string, set&, ListVector*&); + int createMergedDistanceFile(vector< map >); }; #endif