X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=consensusseqscommand.h;h=a69ddbf9197f6ca0264d467ff4c7428c79f56f02;hp=1459b43d25bd54b525459721b5de55a5a1d6d9f6;hb=615301e57c25e241356a9c2380648d117709458d;hpb=49d2b7459c5027557564b21e9487dadafbbbdc96 diff --git a/consensusseqscommand.h b/consensusseqscommand.h index 1459b43..a69ddbf 100644 --- a/consensusseqscommand.h +++ b/consensusseqscommand.h @@ -13,6 +13,7 @@ #include "command.hpp" #include "listvector.hpp" +#include "counttable.h" class ConsensusSeqsCommand : public Command { public: @@ -23,8 +24,9 @@ public: vector setParameters(); string getCommandName() { return "consensus.seqs"; } string getCommandCategory() { return "Sequence Processing"; } - string getOutputFileNameTag(string, string); + string getHelpString(); + string getOutputPattern(string); string getCitation() { return "http://www.mothur.org/wiki/Consensus.seqs"; } string getDescription() { return "create a consensus sequence for each OTU or for a fasta file"; } @@ -34,19 +36,20 @@ public: private: + CountTable ct; bool abort, allLines; - string fastafile, listfile, namefile, label, outputDir; + string fastafile, listfile, namefile, countfile, label, outputDir; set labels; vector outputNames; map fastaMap; map nameMap; - map nameFileMap; - int cutoff; + map nameFileMap; + int cutoff, seqLength; int readFasta(); int readNames(); int processList(ListVector*&); - string getConsSeq(string, ofstream&, string&, int); + string getConsSeq(string, ofstream&, int); char getBase(vector, int); };