-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGenomicWindows.h
More file actions
48 lines (32 loc) · 856 Bytes
/
GenomicWindows.h
File metadata and controls
48 lines (32 loc) · 856 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
47
48
/*
* GenomicWindows
* Date: Aug-17-2012
* Author : Gabriel Renaud gabriel.reno@gmail.com
*
*/
#ifndef GenomicWindows_h
#define GenomicWindows_h
#include <stdlib.h>
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <sys/time.h>
#include "libgab.h"
#include "GenomicRange.h"
#include "RandomGenomicCoord.h"
using namespace std;
class GenomicWindows{
private:
unsigned int genomeLength;
vector<chrinfo> chrFound;
bool allowSexChr;
public:
GenomicWindows(string sqLines,bool allowSexChr=false );
~GenomicWindows();
vector<GenomicRange> getGenomicWindows(int windowSize,int overlap=0);
vector<GenomicRange> getGenomicWindowsChr(string chrName, int windowSize,int overlap=0);
vector<GenomicRange> getGenomeWide();
vector<GenomicRange> getChr(string chrName);
};
#endif