X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=qualityscores.h;h=49034b8ecb2a2b937901c9cfda132c00bcd5c4c4;hb=035f86272c776e1cccaa47021e26782e49cd41e7;hp=5db43113f1b4aedea7761cd4ad7bcc3575542919;hpb=e0fbf58358a72f20352cf2a43922ab6b5bdf0cf8;p=mothur.git diff --git a/qualityscores.h b/qualityscores.h index 5db4311..49034b8 100644 --- a/qualityscores.h +++ b/qualityscores.h @@ -10,6 +10,8 @@ * */ +//DataStructure for a quality file. + #include "mothur.h" #include "mothurout.h" @@ -20,8 +22,10 @@ class QualityScores { public: QualityScores(); - QualityScores(ifstream&, int); + QualityScores(ifstream&); string getName(); + + vector getQualityScores() { return qScores; } void printQScores(ofstream&); void trimQScores(int, int); void flipQScores(); @@ -29,6 +33,13 @@ public: bool stripQualRollingAverage(Sequence&, double); bool stripQualWindowAverage(Sequence&, int, int, double); bool cullQualAverage(Sequence&, double); + void updateQScoreErrorMap(map >&, string, int, int, int); + void updateForwardMap(vector >&, int, int, int); + void updateReverseMap(vector >&, int, int, int); + void setName(string n) { seqName = n; } + void setScores(vector qs) { qScores = qs; seqLength = qScores.size(); } + + private: double calculateAverage();