annotate mrcanavar-0.34/globals.h @ 0:86522a0b5f59 default tip

Uploaded source code for mrCaNaVaR
author calkan
date Tue, 21 Feb 2012 10:44:13 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
1
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
2 #ifndef __GLOBALS
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
3 #define __GLOBALS
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
4
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
5
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
6 #define MAX_STR 256
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
7 #define GC_BIN 1000
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
8
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
9 #define VERSION "0.34"
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
10 #define LAST_UPDATE "December 7, 2011"
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
11
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
12
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
13 enum MODETYPE {NONE, PREP, READSAM, CALL};
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
14
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
15 enum WINDOWTYPE {LW, SW, CW};
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
16
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
17 enum GENDERTYPE {AUTODETECT, MALE, FEMALE};
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
18
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
19 enum GENDERTYPE GENDER;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
20
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
21 enum MODETYPE RUNMODE;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
22
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
23 int num_chrom;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
24 int MULTGC;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
25 float MAX_GC_CORR;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
26 float MIN_GC_CORR;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
27 int VERBOSE;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
28 int CHECKSAM;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
29
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
30 static const int magicNum = 3111696;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
31
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
32 char *GENOME_FASTA;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
33 char *GENOME_GAPS;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
34 char *GENOME_CONF;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
35
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
36 int LW_SIZE;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
37 int SW_SIZE;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
38 int CW_SIZE;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
39 int LW_SLIDE;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
40 int SW_SLIDE;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
41
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
42 float LW_MEAN;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
43 float LW_STD;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
44 float LW_MEAN_X;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
45 float LW_STD_X;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
46
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
47 float SW_MEAN;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
48 float SW_STD;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
49 float SW_MEAN_X;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
50 float SW_STD_X;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
51
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
52 float CW_MEAN;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
53 float CW_STD;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
54 float CW_MEAN_X;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
55 float CW_STD_X;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
56
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
57 int CONT_WINDOW;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
58 int CUT_WINDOW;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
59
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
60 typedef struct window{
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
61 int start;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
62 int end;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
63 float gc;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
64 float depth;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
65 char isControl;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
66 }_window;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
67
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
68 typedef struct chrom{
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
69 char *name;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
70 int length;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
71 int lw_cnt;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
72 int sw_cnt;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
73 int cw_cnt;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
74 struct window *sw;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
75 struct window *lw;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
76 struct window *cw;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
77 }_chrom;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
78
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
79 struct chrom **chromosomes;
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
80
86522a0b5f59 Uploaded source code for mrCaNaVaR
calkan
parents:
diff changeset
81 #endif