-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathread.hpp
34 lines (28 loc) · 949 Bytes
/
read.hpp
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
#define READ_H
#include <string>
#include <vector>
#include <stdio.h>
typedef std::pair<int, int> Interval;
class Read
{ // read class
public:
int id; // id, start from 0
std::string name; // read name
std::string bases; // read bases
int len;
int start_pos;
int end_pos;
std::string align;
std::string chr;
std::vector<std::pair<int, int>> long_repeats;
Read(int id, int length, std::string name, std::string bases, int start_pos, int end_pos, std::string align, std::string chr) : id(id), bases(bases), name(name), len(length), start_pos(start_pos), end_pos(end_pos), align(align), chr(chr){};
Read(int id, int length, std::string name, std::string bases) : id(id), bases(bases), name(name), len(length){};
void showRead()
{
std::cout << "read " << id << "\n";
std::cout << ">" << name << "\n";
std::cout << bases << "\n";
}
};
#endif