]> git.donarmstrong.com Git - mothur.git/blobdiff - qualityscores.h
added classify.shared command and random forest files. added count file to pcr.seqs...
[mothur.git] / qualityscores.h
index 710200a8db096239d873083c9fa7fce7a9cbc6f8..49034b8ecb2a2b937901c9cfda132c00bcd5c4c4 100644 (file)
@@ -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();
+       
+       vector<int> 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<char, vector<int> >&, string, int, int, int);
+       void updateForwardMap(vector<vector<int> >&, int, int, int);
+       void updateReverseMap(vector<vector<int> >&, int, int, int);
+    void setName(string n) { seqName = n; }
+    void setScores(vector<int> qs) { qScores = qs; seqLength = qScores.size(); }
+    
+       
 private:
        
        double calculateAverage();