-
Notifications
You must be signed in to change notification settings - Fork 1
/
gvar.h
60 lines (46 loc) · 1.26 KB
/
gvar.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
//////////////////////////////////////////////////////////////////
// //
// PLINK (c) 2005-2006 Shaun Purcell //
// //
// This file is distributed under the GNU General Public //
// License, Version 2. Please see the file COPYING for more //
// details //
// //
//////////////////////////////////////////////////////////////////
#ifndef __GVAR_H__
#define __GVAR_H__
#include <vector>
#include <set>
#include "plink.h"
using namespace std;
class Variant : public Locus {
public:
int nallele;
vector<string> alleles;
vector_t freqs;
map<string,int> acode;
bool allelicVariation;
bool copyNumberVariation;
bool integerDosage;
Variant()
{
nallele = 0;
integerDosage = true;
allelicVariation = copyNumberVariation = false;
}
};
class GVariant {
public:
GVariant()
{
missing = true;
allele1 = allele2 = -1;
dosage1 = dosage2 = 0;
}
bool missing;
int allele1;
int allele2;
float dosage1;
float dosage2;
};
#endif