8 * Created by Pat Schloss on 7/12/10.
9 * Copyright 2010 Schloss Lab. All rights reserved.
13 //DataStructure for a quality file.
17 #include "mothurout.h"
18 #include "sequence.hpp"
20 /**************************************************************************************************/
25 QualityScores(string n, vector<int> qs);
26 QualityScores(ifstream&);
28 int getLength(){ return (int)qScores.size(); }
29 vector<int> getQualityScores() { return qScores; }
30 void printQScores(ofstream&);
31 void trimQScores(int, int);
33 bool stripQualThreshold(Sequence&, double);
34 bool stripQualRollingAverage(Sequence&, double, bool);
35 bool stripQualWindowAverage(Sequence&, int, int, double, bool);
36 bool cullQualAverage(Sequence&, double, bool);
37 void updateQScoreErrorMap(map<char, vector<int> >&, string, int, int, int);
38 void updateForwardMap(vector<vector<int> >&, int, int, int);
39 void updateReverseMap(vector<vector<int> >&, int, int, int);
40 void setName(string n);
41 void setScores(vector<int> qs) { qScores = qs; seqLength = qScores.size(); }
42 vector<int> getScores() { return qScores; }
46 double calculateAverage(bool);
53 string getSequenceName(ifstream&);
56 /**************************************************************************************************/