X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getoturepcommand.h;fp=getoturepcommand.h;h=d8f8f0905ba3c3e8c09dfb8ec83ec34f817db89e;hb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;hp=7a17c9de22a4c08b8d44a6e59ea3c6f07f18430a;hpb=36a867cbd85d9c276d3c8d13f25a150bbbe2466b;p=mothur.git diff --git a/getoturepcommand.h b/getoturepcommand.h index 7a17c9d..d8f8f09 100644 --- a/getoturepcommand.h +++ b/getoturepcommand.h @@ -12,10 +12,8 @@ /* The get.oturep command outputs a .fastarep file for each distance you specify, selecting one OTU representative for each bin. */ #include "command.hpp" -#include "globaldata.hpp" #include "listvector.hpp" #include "inputdata.h" -#include "readotu.h" #include "fastamap.h" #include "groupmap.h" #include "readmatrix.hpp" @@ -40,18 +38,19 @@ class GetOTURepCommand : public Command { public: GetOTURepCommand(string); GetOTURepCommand(); - ~GetOTURepCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); - + ~GetOTURepCommand(){} + + vector setParameters(); + string getCommandName() { return "get.oturep"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + string getHelpString(); + + int execute(); + void help() { m->mothurOut(getHelpString()); } + + private: - GlobalData* globaldata; ListVector* list; - ReadOTUFile* read; InputData* input; FastaMap* fasta; GroupMap* groupMap; @@ -72,7 +71,6 @@ private: vector seqVec; // contains maps with sequence index and distance // for all distances related to a certain sequence vector rowPositions; - map > outputTypes; void readNamesFile(); void readNamesFile(bool); @@ -80,8 +78,6 @@ private: SeqMap getMap(int); string findRep(vector); // returns the name of the "representative" sequence of given bin or subset of a bin, for groups int processNames(string, string); - - }; #endif