X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=binsequencecommand.h;h=1fb5664b0c018c4120881055014ec08a4e6d5559;hb=5a4ac4f954c4b4445bcee272f1f8220ddcc9c1e4;hp=22847dce9b45604515c97fab55a2673813324ec2;hpb=f18d75f9c996cb619a5051a7664620c0c5ae05fb;p=mothur.git diff --git a/binsequencecommand.h b/binsequencecommand.h index 22847dc..1fb5664 100644 --- a/binsequencecommand.h +++ b/binsequencecommand.h @@ -9,34 +9,47 @@ * */ +/* The bin.seqs command outputs a .fasta file for each distance you specify appending the OTU number to each name. */ #include "command.hpp" #include "inputdata.h" #include "listvector.hpp" -#include "readmatrix.hpp" #include "fastamap.h" - - -class GlobalData; +#include "groupmap.h" class BinSeqCommand : public Command { public: - BinSeqCommand(); + BinSeqCommand(string); + BinSeqCommand(); ~BinSeqCommand(); - int execute(); + + vector setParameters(); + string getCommandName() { return "bin.seqs"; } + string getCommandCategory() { return "Sequence Processing"; } + string getOutputFileNameTag(string, string); + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Bin.seqs"; } + string getDescription() { return "maps sequences to otus"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - GlobalData* globaldata; + ListVector* list; - ReadMatrix* read; InputData* input; FastaMap* fasta; - string filename, fastafile, namesfile; + GroupMap* groupMap; + bool abort, allLines; + set labels; //holds labels to be used + string filename, fastafile, listfile, namesfile, groupfile, label, outputDir; ofstream out; ifstream in, inNames; + vector outputNames; void readNamesFile(); + int process(ListVector*); }; #endif