-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdata.cpp
50 lines (47 loc) · 1.27 KB
/
data.cpp
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
// STEAK Specific Transposable Element Aligner (HERV-K)
// Copyright (C) 2015 Cindy Santander, Philippe Gambron
// Distributed under the GNU General Public License version 3 (GPLv3.txt or https://www.gnu.org/licenses/gpl-3.0.html)
#include <math.h>
#include <iostream>
#include "data.hpp"
using namespace std;
int Read::set(const SAMData& samData){
name=samData.name;
chromosome=samData.chromosome;
position=samData.position;
quality=samData.quality;
cigarValue=samData.cigarValue;
cigarString=samData.cigarString;
sequence=samData.sequence;
phred=samData.phred;
return 0;
}
/*
int Read::set(const std::string& i_chromosome, const std::string& i_name, const int i_position, const int i_quality, const std::string& i_sequence, const std::string& i_phred){
chromosome=i_chromosome;
name=i_name;
position=i_position;
quality=i_quality;
sequence=i_sequence;
phred=i_phred;
return 0;
}
*/
int Read::set(const std::string& i_name, const std::string& i_sequence, const std::string& i_phred){
chromosome="";
name=i_name;
position=0;
quality=0;
cigarString="";
sequence=i_sequence;
phred=i_phred;
return 0;
}
/*
int Pair::set(const SAMData& samData1, const SAMData& samData2){
name=samData1.name;
reads[0].set(samData1);
reads[1].set(samData2);
return 0;
}
*/