forked from abyzovlab/CNVnator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EXOnator.hh
69 lines (54 loc) · 1.19 KB
/
EXOnator.hh
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
58
59
60
61
62
63
64
65
66
67
68
69
#ifndef __EXONATOR_HH__
#define __EXONATOR_HH__
// C/C++ includes
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include <algorithm>
#include "TFile.h"
#include "TTree.h"
// ROOT includes
#include <TMath.h>
#include <TF1.h>
#include <TH1D.h>
using namespace std;
// genomic interval
class Interval {
public:
string ref, name, intv_str;
int start, end;
Interval(string ref, long start, long end, string name);
string toString() const;
bool operator<(const Interval& that) const;
};
// sample
class Sample {
public:
string sample, group, cov_file;
Sample(string sample, string group, string cov_file);
string toString() const;
};
// count data
class ReadCount {
public:
long rcnt, ndup_rcnt;
ReadCount(long rcnt, long ndup_rcnt);
};
class EXOnator
{
private:
static const string FIT_DESCRIPTION;
private:
string _root_file;
public:
EXOnator(string root_file) : _root_file(root_file) {}
public:
void makeTables(string bed_file = "", string conf_file = "");
void makeTables2(string bed_file = "", string conf_file = "");
void fit(string group_name,bool bimodal = false);
};
#endif /* __EXONATOR_HH__ */