X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=qualityscores.h;h=500d3e98db79b934effee830b65f54afb0023af3;hb=372fb21ea66ced432b109225851a1b80ef0491a3;hp=5ae5e0ab754a9147106e859ce29e7046b37a32c0;hpb=74d3aaf0f85080ea3cfb1f1871e706bab9f48392;p=mothur.git diff --git a/qualityscores.h b/qualityscores.h index 5ae5e0a..500d3e9 100644 --- a/qualityscores.h +++ b/qualityscores.h @@ -10,6 +10,8 @@ * */ +//DataStructure for a quality file. + #include "mothur.h" #include "mothurout.h" @@ -22,6 +24,8 @@ public: QualityScores(); QualityScores(ifstream&); string getName(); + int getLength(){ return (int)qScores.size(); } + vector getQualityScores() { return qScores; } void printQScores(ofstream&); void trimQScores(int, int); void flipQScores(); @@ -32,6 +36,9 @@ public: void updateQScoreErrorMap(map >&, string, int, int, int); void updateForwardMap(vector >&, int, int, int); void updateReverseMap(vector >&, int, int, int); + void setName(string n); + void setScores(vector qs) { qScores = qs; seqLength = qScores.size(); } + vector getScores() { return qScores; } private: @@ -41,6 +48,8 @@ private: string seqName; int seqLength; + + string getSequenceName(ifstream&); }; /**************************************************************************************************/