-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBowtieEntry.h
55 lines (44 loc) · 1014 Bytes
/
BowtieEntry.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* BowtieEntry.h
*
* Created on: Mar 3, 2010
* Author: marcus
*/
#ifndef BOWTIEENTRY_H_
#define BOWTIEENTRY_H_
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include "Read.h"
#include "Utils.h"
using namespace std;
class BowtieEntry {
private:
vector<int> get_indices(string mismatchstring);
string _mapped_gene;
string _mapped_transcript;
void parse_mapping();
public:
BowtieEntry (int);
BowtieEntry (string read_id, string mapping, string strand, int position, string seq,
string qual, string mismatches, int offset);
virtual ~BowtieEntry();
string read_id;
string base_read_id;
string mapping;
string strand;
int position;
Read * read;
vector<int> mismatch_indices;
int offset;
friend istream &operator>>(istream &stream, BowtieEntry &bt);
long double mapping_probability();
string mapped_gene();
string mapped_transcript();
};
#endif /* BOWTIEENTRY_H_ */