X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mgclustercommand.h;h=b5b295f1edb4495d321a7e614db1e8309d8bc481;hb=159fd324dfecacb6617669246d85c787ae67f630;hp=c23534f9dfd375cb34cc8c85963d17e8dbfee23d;hpb=0e051b4cfda410b0d441da6ff2f96d4bbe1d9e5a;p=mothur.git diff --git a/mgclustercommand.h b/mgclustercommand.h index c23534f..b5b295f 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,8 +31,11 @@ public: vector setParameters(); string getCommandName() { return "mgcluster"; } string getCommandCategory() { return "Clustering"; } + string getOutputFileNameTag(string, string); 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()); } @@ -43,11 +46,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; @@ -58,6 +63,7 @@ private: ListVector* mergeOPFs(map, float); void sortHclusterFiles(string, string); vector getSeqs(ifstream&); + void createRabund(CountTable*&, ListVector*&, RAbundVector*&); };