X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=trimseqscommand.h;h=137cb735719fba42f0d103af842de80c9930cc3e;hb=2bb9267aa4b4ecdf8488b06605cc9f3f36fa4332;hp=21a5d41e759c761a3302340319c857544ffc313e;hpb=fe5bbb79f9434df947347881c47b430112f4253e;p=mothur.git diff --git a/trimseqscommand.h b/trimseqscommand.h index 21a5d41..137cb73 100644 --- a/trimseqscommand.h +++ b/trimseqscommand.h @@ -20,40 +20,37 @@ class TrimSeqsCommand : public Command { public: TrimSeqsCommand(string); TrimSeqsCommand(); - ~TrimSeqsCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~TrimSeqsCommand(){} + + vector setParameters(); + string getCommandName() { return "trim.seqs"; } + string getCommandCategory() { return "Sequence Processing"; } + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Trim.seqs"; } + string getDescription() { return "provides the preprocessing features needed to screen and sort pyrosequences"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: GroupMap* groupMap; struct linePair { - unsigned long int start; - unsigned long int end; - linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {} + unsigned long long start; + unsigned long long end; + linePair(unsigned long long i, unsigned long long j) : start(i), end(j) {} }; - - void getOligos(vector&, vector&); - int stripBarcode(Sequence&, QualityScores&, int&); - int stripForward(Sequence&, QualityScores&, int&); - bool stripReverse(Sequence&, QualityScores&); + + bool getOligos(vector >&, vector >&, vector >&); bool keepFirstTrim(Sequence&, QualityScores&); bool removeLastTrim(Sequence&, QualityScores&); - bool cullLength(Sequence&); bool cullHomoP(Sequence&); bool cullAmbigs(Sequence&); - bool compareDNASeq(string, string); - int countDiffs(string, string); - map > outputTypes; - bool abort; - string fastaFile, oligoFile, qFileName, groupfile, outputDir; + bool abort, createGroup; + string fastaFile, oligoFile, qFileName, groupfile, nameFile, outputDir; bool flip, allFiles, qtrim; int numFPrimers, numRPrimers, maxAmbig, maxHomoP, minLength, maxLength, processors, tdiffs, bdiffs, pdiffs, comboStarts; @@ -66,15 +63,18 @@ private: map primers; map combos; map groupToIndex; - + vector primerNameVector; //needed here? + vector barcodeNameVector; //needed here? + map groupCounts; + map nameMap; + vector processIDS; //processid vector lines; vector qLines; - int driverCreateTrim(string, string, string, string, string, string, string, vector, vector, linePair*, linePair*); - int createProcessesCreateTrim(string, string, string, string, string, string, string, vector, vector); - int setLines(string, string, vector&, vector&); - + int driverCreateTrim(string, string, string, string, string, string, string, string, string, vector >, vector >, vector >, linePair*, linePair*); + int createProcessesCreateTrim(string, string, string, string, string, string, string, string, string, vector >, vector >, vector >); + int setLines(string, string, vector&, vector&); }; #endif