X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=mgclustercommand.h;h=008bd222a0a91869e14895738ea852b383c0395f;hp=6ad1855ad007a36907e0c63d89b8d3d249ee2939;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=8f7f4fc08b8c70d9ef0f79607813dba4e926e102 diff --git a/mgclustercommand.h b/mgclustercommand.h index 6ad1855..008bd22 100644 --- a/mgclustercommand.h +++ b/mgclustercommand.h @@ -12,12 +12,12 @@ #include "command.hpp" #include "readblast.h" -#include "sparsematrix.hpp" #include "nameassignment.hpp" #include "cluster.hpp" #include "hcluster.h" #include "rabundvector.hpp" #include "sabundvector.hpp" +#include "counttable.h" /**********************************************************************/ @@ -31,9 +31,12 @@ public: vector setParameters(); string getCommandName() { return "mgcluster"; } string getCommandCategory() { return "Clustering"; } + string getHelpString(); + string getOutputPattern(string); 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()); } @@ -44,11 +47,13 @@ private: Cluster* cluster; HCluster* hcluster; ListVector* list; + CountTable* ct; ListVector oldList; + RAbundVector rav; vector overlapMatrix; vector outputNames; - string blastfile, method, namefile, overlapFile, distFile, outputDir; + string blastfile, method, namefile, countfile, overlapFile, distFile, outputDir; ofstream sabundFile, rabundFile, listFile; double cutoff; float penalty; @@ -59,6 +64,7 @@ private: ListVector* mergeOPFs(map, float); void sortHclusterFiles(string, string); vector getSeqs(ifstream&); + void createRabund(CountTable*&, ListVector*&, RAbundVector*&); };