-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBed.h
More file actions
executable file
·46 lines (34 loc) · 962 Bytes
/
Copy pathBed.h
File metadata and controls
executable file
·46 lines (34 loc) · 962 Bytes
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
#ifndef BED_H
#define BED_H
#include "common.h"
#include <string>
#include <sstream>
class Bed {
public:
Bed (const std::string & s);
~Bed();
void read (const std::string & s);
std::string ref () const { return _ref; }
size_t start () const { return _start; }
size_t end () const { return _end; }
std::string name () const { return _name; }
std::string score () const { return _score; }
std::string repeat_element () const { return name(); } // alias for name()
std::string repeat_family () const { return score(); } // alias for score()
bool is_reverse () const { return _strand == '-'; }
private:
std::string _ref;
size_t _start;
size_t _end;
std::string _name;
std::string _score;
char _strand;
size_t _thickStart;
size_t _thickEnd;
std::string _itemRgb;
size_t _blockCount;
size_t _blockSizes;
size_t _blockStarts;
size_t _num_blocks;
};
#endif