X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mgclustercommand.h;h=df0c526f2071636e87b0c2a403d2410324a8b89d;hb=36a6b02cf7f09d2bc34376b588944a9ca73429c5;hp=f16a8f0c5ebc75bf07039a54d910d266e418b94e;hpb=8bc3e5b38c2317a1715f53be22fa96455868c281;p=mothur.git diff --git a/mgclustercommand.h b/mgclustercommand.h index f16a8f0..df0c526 100644 --- a/mgclustercommand.h +++ b/mgclustercommand.h @@ -14,9 +14,10 @@ #include "readblast.h" #include "sparsematrix.hpp" #include "nameassignment.hpp" -#include "globaldata.hpp" #include "cluster.hpp" #include "hcluster.h" +#include "rabundvector.hpp" +#include "sabundvector.hpp" /**********************************************************************/ @@ -25,16 +26,20 @@ class MGClusterCommand : public Command { public: MGClusterCommand(string); MGClusterCommand(); - ~MGClusterCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~MGClusterCommand(){} + + vector setParameters(); + string getCommandName() { return "mgcluster"; } + string getCommandCategory() { return "Clustering"; } + string getHelpString(); + string getCitation() { return "Schloss PD, Handelsman J (2008). A statistical toolbox for metagenomics. BMC Bioinformatics 9: 34. \nhttp://www.mothur.org/wiki/Mgcluster"; } + string getDescription() { return "cluster your sequences into OTUs using a blast file"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: - GlobalData* globaldata; ReadBlast* read; NameAssignment* nameMap; Cluster* cluster; @@ -43,7 +48,6 @@ private: ListVector oldList; vector overlapMatrix; vector outputNames; - map > outputTypes; string blastfile, method, namefile, overlapFile, distFile, outputDir; ofstream sabundFile, rabundFile, listFile;