X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=seqerrorcommand.h;h=cb715ce05bc1edad8f2790cd78b67a356eafd7c3;hb=f06fdb807822f8e06db003ed809c87250905cfc8;hp=19fcd4731d22edc39383003b62c796242b7a4363;hpb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;p=mothur.git diff --git a/seqerrorcommand.h b/seqerrorcommand.h index 19fcd47..cb715ce 100644 --- a/seqerrorcommand.h +++ b/seqerrorcommand.h @@ -49,33 +49,58 @@ public: string getCommandName() { return "seq.error"; } string getCommandCategory() { return "Sequence Processing"; } string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Seq.error"; } int execute(); void help() { m->mothurOut(getHelpString()); } private: bool abort; + + struct linePair { + unsigned long int start; + unsigned long int end; + linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {} + }; + + vector processIDS; //processid + vector lines; + vector qLines; + vector rLines; void getReferences(); map getWeights(); Compare getErrors(Sequence, Sequence); - void printErrorHeader(); - void printErrorData(Compare, int); + void printErrorHeader(ofstream&); + void printErrorData(Compare, int, ofstream&, ofstream&); void printSubMatrix(); void printErrorFRFile(map >, map >); void printErrorQuality(map >); void printQualityFR(vector >, vector >); + + int setLines(string, string, string, vector&, vector&, vector&); + int driver(string, string, string, string, string, string, linePair, linePair, linePair); + int createProcesses(string, string, string, string, string, string); string queryFileName, referenceFileName, qualFileName, reportFileName, namesFileName, outputDir; double threshold; - bool ignoreChimeras; - int numRefs; - int maxLength; - ofstream errorSummaryFile, errorSeqFile; + bool ignoreChimeras, filter; + int numRefs, processors; + int maxLength, totalBases, totalMatches; + //ofstream errorSummaryFile, errorSeqFile; vector outputNames; vector referenceSeqs; vector > substitutionMatrix; + vector > qualForwardMap; + vector > qualReverseMap; + vector misMatchCounts; + map > qScoreErrorMap; + map > errorForward; + map > errorReverse; + map weights; + vector megaAlignVector; + }; #endif