-
Notifications
You must be signed in to change notification settings - Fork 0
/
read.hpp
40 lines (32 loc) · 1.21 KB
/
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
35
36
37
38
39
40
// $Author: benine $
// $Date$
// $Log$
// This contains the read class for afin
#ifndef READ_HPP
#define READ_HPP
#include <string>
//////////////////////////////////////\
// Read Class: ///////////////////////>
//////////////////////////////////////
// Contains one read and information about that read in reference to the piece of the contig it matched to
class Read{
private:
int start; // position of read where match starts in reference to the contig it matches
// for instance:
// match: aaaattta
// read: tttatt
// start: 4
int misses; // counts the number of characters that don't match other reads
std::string read; // contains the read or rev compliment, whichever is found
bool rev; // indicates if the read is a reverse compliment of the matched string
public:
// constructor.. default rev will be false
Read( std::string read, int match, bool rev );
Read( std::string read, int match );
// returns character at pos where pos is the nth postion of the match
char get_pos( int pos, bool back );
};
////////////////////
// End Read Class //
////////////////////
#endif