-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathread.h
34 lines (28 loc) · 786 Bytes
/
read.h
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
31
32
33
34
#ifndef READ_H_INCLUDED
#define READ_H_INCLUDED
#include "str.h"
#include "strUtil.h"
#include "general.h"
#include <vector>
immutable_class Read {
private:
const Str ident;
const Str seq;
Str revComp;
const Str qual;
public:
Read(const Str& ident, const Str& seq, const Str& qual);
private:
static const char* inverse; // points to inverse character of every allowed character, for non-allowed 0
public:
static void setAlphabet(std::vector<char> alphabet);
friend class ReadMatch;
friend class Sam;
void info() {
StrUtil::sample(ident, 3, std::cout);
StrUtil::sample(seq, 3, std::cout);
StrUtil::sample(revComp, 3, std::cout);
StrUtil::sample(qual, 3, std::cout);
}
};
#endif // READ_H_INCLUDED