-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcnv.h
72 lines (52 loc) · 1.67 KB
/
cnv.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//////////////////////////////////////////////////////////////////
// //
// PLINK (c) 2005-2009 Shaun Purcell //
// //
// This file is distributed under the GNU General Public //
// License, Version 2. Please see the file COPYING for more //
// details //
// //
//////////////////////////////////////////////////////////////////
#ifndef __CNV_H__
#define __CNV_H__
class CNVIndivReport {
public:
CNVIndivReport()
{
n = count = count_baseline = 0;
segCount = 0;
t1 = t2 = t3 = t4 = t5 = t6 = t7 = t8 = 0;
}
void calculateResults();
// Total number of individuals looked at
int n;
// Number of individuals with an event
int count;
// Number of individuals with a baseline-region event
int count_baseline;
// Number of segments in this group
int segCount;
// Test results
// 1) # segs; 2) #inds w 1+; 3) total kb; 4) mean seg kb, 5) gene-count,
// 6) gene-count-1+, 7) base-line gene-count
double t1;
double t2;
double t3;
double t4;
double t5;
double t6;
double t7;
double t8;
// if needed...
double t9;
double t10;
double t11;
double t12;
};
// Helper functions
bool intersects(set<Range>&,set<Range>&,int,int,int);
int count_intersects(set<Range>&,int,int,int);
double weighted_count_intersects(set<Range>&,int,int,int);
vector<int> segmentCountCaseControls(Plink*,bool);
set<Segment> allSegmentsIntersecting(Range &);
#endif