File: QualityValueProfile.hpp

package info (click to toggle)
pbseqlib 0~20161219-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,924 kB
  • ctags: 5,123
  • sloc: cpp: 82,727; makefile: 305; python: 239; sh: 8
file content (23 lines) | stat: -rw-r--r-- 623 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _BLASR_QUALITY_VALUE_PROFILE_HPP_
#define _BLASR_QUALITY_VALUE_PROFILE_HPP_

#include "../tuples/DNATuple.hpp"
#include "../tuples/TupleMetrics.hpp"
#include <fstream>
#include "../../pbdata/qvs/QualityValue.hpp"
#include "../../pbdata/matrix/FlatMatrix.hpp"

class QualityValueProfile {
	int wordSize;
	int numQualityValues;
	FlatMatrix2D<int> profile;
	int nWords;
	TupleMetrics tm;
public:
	static const int CDF_GRANULARITY = 10000;
	QualityValueProfile(int _wordSize, int _numQualityValues);
	void Update(Nucleotide *seq, QualityValue qv);
   	void Print(std::ofstream &out);
   	void ProfileToCDF();
};
#endif