File: QualitySample.hpp

package info (click to toggle)
pbseqlib 5.3.1%2Bdfsg-2.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,136 kB
  • sloc: cpp: 77,246; python: 570; makefile: 312; sh: 111; ansic: 9
file content (30 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _SIMULATOR_QUALITY_SAMPLE_HPP_
#define _SIMULATOR_QUALITY_SAMPLE_HPP_

#include <iostream>

#include <pbdata/Types.h>
#include <pbdata/SMRTSequence.hpp>
#include <pbdata/qvs/QualityValue.hpp>

#define NQV 4
#define NFV 3
#define NT 2

class QualitySample
{
public:
    QualityValue qv[NQV];
    HalfWord frameValues[NFV];
    Nucleotide tags[NT];

    void CopyFromSequence(SMRTSequence &seq, int pos);

    void Write(std::ofstream &out);

    void Read(std::ifstream &in);

    void CreateFromRead(SMRTSequence &seq, DNALength pos);
};

#endif