libStatGen Software 1
Loading...
Searching...
No Matches
Constant.h
1/*
2 * Copyright (C) 2010 Regents of the University of Michigan
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef _CONSTANT_H_
19#define _CONSTANT_H_
20
21#define COMPAREFUNC (int (*)(const void *, const void *))
22
23#define BUFSIZE 1024
24#define FILENAMELEN 100
25#define IDLEN 20
26
27#define SEPARATORS " \t\n\r\f/"
28#define WHITESPACE " \t\n\r\f"
29
30#define SWTABLESKIP 9
31#define SWTABLEMAX 10000
32
33#define _NAN_ ((double) (6.66666e-66))
34
35#define QTDTDATA "qtdt.dat"
36#define QTDTPED "qtdt.ped"
37#define QTDTIBD "qtdt.ibd"
38#define QTDTRAW "regress.tbl"
39#define GENIHDATAIN "genih.dat"
40
41#ifndef _WIN32
42#define stricmp strcasecmp
43#endif
44
45// Constants for older haplotype handling programs
46// Constants for HAPLOXT
47#define XT_MAX_ALLELES 50 // Maximum alleles for crosstabulation
48#define XT_VECTORSIZE 10000 // Total haplotypes in population
49#define XT_POOLTRESH 7 // Threshold for pooling rare alleles
50// Simwalk Haplotype Vectors
51#define HV_MAXSIZE 100 // Haplotypes in single SimWalk pedigree
52#define HV_INFOTRESH 75 // Percentage of loci typed
53#define HV_STATELENGTH 100 // Markers per haplotype
54#define HV_SKIPLINES 4 // lines to skip at bottom of family tree
55// Simwalk Summary Files
56#define HT_TABLE_SIZE 1000
57#define HT_SKIP_LINES 9
58
59#endif
60