-
Notifications
You must be signed in to change notification settings - Fork 2
/
GenomicRange.h
49 lines (34 loc) · 962 Bytes
/
GenomicRange.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
/*
* GenomicRange
* Date: Aug-17-2012
* Author : Gabriel Renaud gabriel.reno [at sign here ] gmail.com
*
*/
#ifndef GenomicRange_h
#define GenomicRange_h
#include <iostream>
#include <string>
#include <stdlib.h>
#include "libgab.h"
using namespace std;
class GenomicRange{
private:
string chrName;
unsigned int startCoord;
unsigned int endCoord;
public:
GenomicRange();
GenomicRange(string chrName,unsigned int startCoord);
GenomicRange(string chrName,unsigned int startCoord,unsigned int endCoord);
~GenomicRange();
string getChrName() const;
unsigned int getStartCoord() const;
unsigned int getEndCoord() const;
void setChrName(string chrName);
void setStartCoord(unsigned int startCoord);
void setEndCoord(unsigned int endCoord);
string asBed() const ;
unsigned int getLength() const;
friend std::ostream & operator<<(std::ostream & os, const GenomicRange & ct);
};
#endif