]> git.donarmstrong.com Git - mothur.git/blobdiff - trimseqscommand.h
merged pat's trim seqs edits with sarah's major overhaul of global data; also added...
[mothur.git] / trimseqscommand.h
index 800ec3d047fac0221edde0dec47fb130058519ad..ee79d777a8d11ffaa2e279e69463314f9c3b8938 100644 (file)
 
 #include "mothur.h"
 #include "command.hpp"
-#include "globaldata.hpp"
 #include "sequence.hpp"
 
 class TrimSeqsCommand : public Command {
 public:
-       TrimSeqsCommand();
+       TrimSeqsCommand(string);
        ~TrimSeqsCommand();
        int execute();
+       void help();
        
 private:
-       void getOligos();
-       bool stripBarcode(Sequence&, string&);
+       void getOligos(vector<ofstream*>&, vector<ofstream*>&);
+       bool stripQualThreshold(Sequence&, ifstream&);
+       bool cullQualAverage(Sequence&, ifstream&);
+       bool stripBarcode(Sequence&, int&);
        bool stripForward(Sequence&);
        bool stripReverse(Sequence&);
        bool cullLength(Sequence&);
        bool cullHomoP(Sequence&);
        bool cullAmbigs(Sequence&);
-       
-       GlobalData* globaldata;
+       bool compareDNASeq(string, string);
 
-       bool oligos, flip;
-       int numFPrimers, numRPrimers, maxAmbig, maxHomoP, minLength, maxLength;
+       bool abort;
+       string fastaFile, oligoFile, qFileName;
+       
+       bool flip, allFiles;
+       int numFPrimers, numRPrimers, maxAmbig, maxHomoP, minLength, maxLength, qThreshold, qAverage;
        vector<string> forPrimer, revPrimer;
-       map<string, string> barcodes;
+       map<string, int> barcodes;
+       vector<string> groupVector;
 };
 
 #endif