-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBasicDefinitions.h
93 lines (80 loc) · 2.5 KB
/
BasicDefinitions.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// BasicDefinitions.h: constants and enumerations for GERMLINE
#ifndef BASICDEFINITIONS_H
#define BASICDEFINITIONS_H
// #define VERBOSE
#include <vector>
#include <fstream>
#include <iostream>
#include <string.h>
#include<math.h>
#include<map>
using namespace std;
//extern unsigned long long globalcount;
extern unsigned long long mem_all_matches;
extern unsigned long long mem_bufferchr; //stores in bits, but displays in bytes
extern unsigned long long mem_chromosome;
extern unsigned long long mem_ind;
extern unsigned long long mem_inds;
extern unsigned long long mem_matchfactory;
extern unsigned long long mem_markers;
extern unsigned long long mem_snps;
extern unsigned long long mem_window;
extern unsigned long long mem_expected_data;
extern unsigned short mem_one_markerset;
// where we are in the sequence (markerset & physical)
extern unsigned int position_marker;
extern int position_ms;
extern unsigned int num_sets;
extern size_t num_samples;
extern unsigned long num_matches;
extern unsigned int ALL_SNPS_CURRENT_SIZE;
extern unsigned int MAX_WINDOW_SIZE;
extern unsigned int MIN_WINDOW_SIZE;
extern unsigned long long MEM_BOUND;
extern int WINDOW_FACTOR;
extern bool LAST_SET;
// parameters
extern double MIN_MATCH_LEN;
extern int MARKER_SET_SIZE;
extern float MAX_ERR_HOMp;
extern float MAX_ERR_HETp;
extern int MAX_ERR_HOM;
extern int MAX_ERR_HET;
extern bool PRINT_MATCH_HAPS;
extern bool ROI;
extern bool HAPLOID;
extern bool HAP_EXT;
extern bool WIN_EXT;
extern bool ALLOW_HOM;
extern bool HOM_ONLY;
extern bool SILENT;
extern bool DEBUG;
extern bool BINARY_OUT;
class SNPs;
class Individuals;
class WindowsList;
extern SNPs ALL_SNPS;
extern Individuals ALL_SAMPLES;
extern ofstream MATCH_FILE;
extern WindowsList WINDOWS_LIST;
enum ErrorType{RECOMB=0,MI=1};
const int HET=2;
const int MIS=9;
const short PAR_M = 0;
const short PAR_F = 1;
// type for file format
enum FileFormat{HAPS,PED,HM};
// type for families
enum FamilyType{NOPARENT,SINGLEPARENT,TWOPARENT};
// type for sex
enum Sex{MALE,FEMALE,UNKNOWN};
// type for nucleotides
enum Nucleotide{A=1,C=2,G=3,T=4};
// type for chromosomes types
enum ChromosomeType{TRANS=0,UNTRANS=1,MISSING=-1};
// type for chromosome ids
enum ChromosomeID{ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, ELEVEN, TWELVE,
THIRTEEN, FOURTEEN, FIFTEEN, SIXTEEN, SEVENTEEN, EIGHTEEN, NINETEEN, TWENTY,
TWENTYONE, TWENTYTWO, X, Y};
#endif
// end of BasicDefinitions.h