X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=trimseqscommand.h;h=a904a10b683ce3fd04784e9ac1a60d02e293c368;hb=0fb6d165c8dc8dc7153a101513a05f457431d0bc;hp=ab692d3ee0dbd3ce77ce158ab9a0e82aca7719e6;hpb=956cdff34f2d609a7736838b1631cd7957580b8b;p=mothur.git diff --git a/trimseqscommand.h b/trimseqscommand.h index ab692d3..a904a10 100644 --- a/trimseqscommand.h +++ b/trimseqscommand.h @@ -13,6 +13,7 @@ #include "mothur.h" #include "command.hpp" #include "sequence.hpp" +#include "qualityscores.h" class TrimSeqsCommand : public Command { public: @@ -29,23 +30,23 @@ private: linePair(unsigned long int i, int j) : start(i), num(j) {} }; - void getOligos(vector&); - bool stripQualThreshold(Sequence&, ifstream&); - bool cullQualAverage(Sequence&, ifstream&); - int stripBarcode(Sequence&, int&); - int stripForward(Sequence&, int&); - bool stripReverse(Sequence&); + void getOligos(vector&, vector&); + int stripBarcode(Sequence&, QualityScores&, int&); + int stripForward(Sequence&, QualityScores&, int&); + bool stripReverse(Sequence&, QualityScores&); bool cullLength(Sequence&); bool cullHomoP(Sequence&); bool cullAmbigs(Sequence&); bool compareDNASeq(string, string); - int countDiffs(string, string);//, int, int&, int); + int countDiffs(string, string); bool abort; string fastaFile, oligoFile, qFileName, outputDir; bool flip, allFiles, qtrim; - int numFPrimers, numRPrimers, maxAmbig, maxHomoP, minLength, maxLength, qThreshold, qAverage, processors, tdiffs, bdiffs, pdiffs, comboStarts; + int numFPrimers, numRPrimers, maxAmbig, maxHomoP, minLength, maxLength, processors, tdiffs, bdiffs, pdiffs, comboStarts; + int qWindowSize, qWindowStep; + double qRollAverage, qThreshold, qWindowAverage, qAverage; vector revPrimer, outputNames; set filesToRemove; map barcodes; @@ -57,8 +58,8 @@ private: vector lines; vector qLines; - int driverCreateTrim(string, string, string, string, string, vector, linePair*, linePair*); - int createProcessesCreateTrim(string, string, string, string, string, vector); + 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, vector&); };