libStatGen Software  1
Constant.h
00001 /*
00002  *  Copyright (C) 2010  Regents of the University of Michigan
00003  *
00004  *   This program is free software: you can redistribute it and/or modify
00005  *   it under the terms of the GNU General Public License as published by
00006  *   the Free Software Foundation, either version 3 of the License, or
00007  *   (at your option) any later version.
00008  *
00009  *   This program is distributed in the hope that it will be useful,
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *   GNU General Public License for more details.
00013  *
00014  *   You should have received a copy of the GNU General Public License
00015  *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
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 // Constants for older haplotype handling programs
00046 // Constants for HAPLOXT
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 // Simwalk Haplotype Vectors
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 // Simwalk Summary Files
00056 #define HT_TABLE_SIZE   1000
00057 #define HT_SKIP_LINES   9
00058 
00059 #endif
00060 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends