]> git.donarmstrong.com Git - mothur.git/blobdiff - mgclustercommand.h
fixed bug with dist.shared subsampling. added mode parameter to dist.shared so...
[mothur.git] / mgclustercommand.h
index 4ef0bd90de3de904e51556e87e31163f4d08d0c7..df0c526f2071636e87b0c2a403d2410324a8b89d 100644 (file)
 #include "readblast.h"
 #include "sparsematrix.hpp"
 #include "nameassignment.hpp"
-#include "globaldata.hpp"
 #include "cluster.hpp"
 #include "hcluster.h"
+#include "rabundvector.hpp"
+#include "sabundvector.hpp"
 
 /**********************************************************************/
 
@@ -24,12 +25,21 @@ class MGClusterCommand : public Command {
 
 public:
        MGClusterCommand(string);
-       ~MGClusterCommand();
-       int execute();
-       void help();
+       MGClusterCommand();
+       ~MGClusterCommand(){}
+       
+       vector<string> 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;
@@ -37,6 +47,7 @@ private:
        ListVector* list;
        ListVector oldList;
        vector<seqDist> overlapMatrix;
+       vector<string> outputNames;
        
        string blastfile, method, namefile, overlapFile, distFile, outputDir;
        ofstream sabundFile, rabundFile, listFile;