X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=binsequencecommand.h;h=c93041f348505d7482e9a18d2658d29919eae309;hb=250e3b11b1c9c1e1ad458ab6c7e71ac2e67e11d9;hp=df7ea7593dd266c71a3a1b7a49c03c70596a368f;hpb=8bc3e5b38c2317a1715f53be22fa96455868c281;p=mothur.git diff --git a/binsequencecommand.h b/binsequencecommand.h index df7ea75..c93041f 100644 --- a/binsequencecommand.h +++ b/binsequencecommand.h @@ -14,12 +14,9 @@ #include "command.hpp" #include "inputdata.h" #include "listvector.hpp" -#include "readotu.h" #include "fastamap.h" #include "groupmap.h" - - -class GlobalData; +#include "counttable.h" class BinSeqCommand : public Command { @@ -27,27 +24,31 @@ public: BinSeqCommand(string); BinSeqCommand(); ~BinSeqCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + + 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; - ReadOTUFile* read; InputData* input; FastaMap* fasta; GroupMap* groupMap; bool abort, allLines; set labels; //holds labels to be used - string filename, fastafile, namesfile, groupfile, label, outputDir; + string filename, fastafile, listfile, namesfile, groupfile, countfile, label, outputDir; ofstream out; ifstream in, inNames; vector outputNames; - map > outputTypes; void readNamesFile(); int process(ListVector*);