rna.h
1.01 KB
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
56
57
#ifndef DEF_RNA
#define DEF_RNA
#include <vector>
#include <string>
#include "Extract_data/fa.h"
class Rna{
public:
Rna();
Rna (const std::string &name, const std::string &seq);
Rna (const std::string &name, const std::string &seq, unsigned int id);
~Rna();
unsigned int get_n_() const;
std::string get_name_() const;
std::string get_seq_() const;
unsigned int get_id_() const;
std::vector < float > get_probingData_() const;
void set_name_(const std::string &name);
void set_id_(unsigned int id);
void set_probingData_(const std::vector < float > &probingData);
void init(unsigned int id);
static bool check_seq(const std::string &seq);
static std::string format(std::string seq);
std::string chg_seq_sens();
private:
std::string name_; /*name of the rna given by the user*/
std::string seq_;
unsigned int n_; /*length of the rna*/
unsigned int id_;
std::vector < float > probingData_; // No valid data = -1.0
};
#endif