X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treegroupscommand.h;fp=treegroupscommand.h;h=6bb35f26056ea14873b3b8d76773c207ab83243b;hb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;hp=c61c9fbfa63bf84a2482955ca20aa914f89b9400;hpb=36a867cbd85d9c276d3c8d13f25a150bbbe2466b;p=mothur.git diff --git a/treegroupscommand.h b/treegroupscommand.h index c61c9fb..6bb35f2 100644 --- a/treegroupscommand.h +++ b/treegroupscommand.h @@ -13,7 +13,6 @@ #include "command.hpp" #include "inputdata.h" #include "groupmap.h" -#include "readotu.h" #include "validcalculator.h" #include "tree.h" #include "treemap.h" @@ -27,7 +26,6 @@ The user can select the lines or labels they wish to use as well as the groups they would like included. They can also use as many or as few calculators as they wish. */ -class GlobalData; typedef list::iterator MatData; @@ -37,12 +35,14 @@ public: TreeGroupCommand(string); TreeGroupCommand(); ~TreeGroupCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + + vector setParameters(); + string getCommandName() { return "tree.shared"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + string getHelpString(); + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: int createTree(); @@ -50,8 +50,6 @@ private: int makeSimsShared(); int makeSimsDist(); - GlobalData* globaldata; - ReadOTUFile* read; ReadMatrix* readMatrix; SparseMatrix* matrix; NameAssignment* nameMap; @@ -62,14 +60,12 @@ private: vector< vector > simMatrix; map index; //maps row in simMatrix to vector index in the tree InputData* input; - ValidCalculators* validCalculator; vector lookup; string lastLabel; - string format, outputFile, groupNames, filename; + string format, outputFile, groupNames, filename, sharedfile, inputfile; int numGroups; ofstream out; float precision, cutoff; - map > outputTypes; bool abort, allLines; set labels; //holds labels to be used