X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=binsequencecommand.h;h=c93041f348505d7482e9a18d2658d29919eae309;hp=22847dce9b45604515c97fab55a2673813324ec2;hb=615301e57c25e241356a9c2380648d117709458d;hpb=f18d75f9c996cb619a5051a7664620c0c5ae05fb diff --git a/binsequencecommand.h b/binsequencecommand.h index 22847dc..c93041f 100644 --- a/binsequencecommand.h +++ b/binsequencecommand.h @@ -9,34 +9,49 @@ * */ +/* 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" +#include "counttable.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 getHelpString(); + string getOutputPattern(string); + 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; + CountTable ct; 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, countfile, label, outputDir; ofstream out; ifstream in, inNames; + vector outputNames; void readNamesFile(); + int process(ListVector*); }; #endif