Constant.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef _CONSTANT_H_
00019 #define _CONSTANT_H_
00020
00021 #define COMPAREFUNC (int (*)(const void *, const void *))
00022
00023 #define BUFSIZE 1024
00024 #define FILENAMELEN 100
00025 #define IDLEN 20
00026
00027 #define SEPARATORS " \t\n\r\f/"
00028 #define WHITESPACE " \t\n\r\f"
00029
00030 #define SWTABLESKIP 9
00031 #define SWTABLEMAX 10000
00032
00033 #define _NAN_ ((double) (6.66666e-66))
00034
00035 #define QTDTDATA "qtdt.dat"
00036 #define QTDTPED "qtdt.ped"
00037 #define QTDTIBD "qtdt.ibd"
00038 #define QTDTRAW "regress.tbl"
00039 #define GENIHDATAIN "genih.dat"
00040
00041 #ifndef __WIN32__
00042 #define stricmp strcasecmp
00043 #endif
00044
00045
00046
00047 #define XT_MAX_ALLELES 50 // Maximum alleles for crosstabulation
00048 #define XT_VECTORSIZE 10000 // Total haplotypes in population
00049 #define XT_POOLTRESH 7 // Threshold for pooling rare alleles
00050
00051 #define HV_MAXSIZE 100 // Haplotypes in single SimWalk pedigree
00052 #define HV_INFOTRESH 75 // Percentage of loci typed
00053 #define HV_STATELENGTH 100 // Markers per haplotype
00054 #define HV_SKIPLINES 4 // lines to skip at bottom of family tree
00055
00056 #define HT_TABLE_SIZE 1000
00057 #define HT_SKIP_LINES 9
00058
00059 #endif
00060