Merge pull request #363 from taoliu/fix_test_bdgopt
[MACS.git] / MACS2 / Constants.py
blobb22a5311eb656e9670e0b6e6b5073137c584f5fd
1 MACS_VERSION = "2.2.6"
2 FILTERDUP_VERSION = "1.0.0 20140616"
3 RANDSAMPLE_VERSION = "1.0.0 20120703"
4 MAX_PAIRNUM = 1000
5 MAX_LAMBDA = 100000
6 FESTEP = 20
7 BUFFER_SIZE = 100000 # np array will increase at step of 1 million items
9 from array import array
11 if array('h',[1]).itemsize == 2:
12 BYTE2 = 'h'
13 else:
14 raise Exception("BYTE2 type cannot be determined!")
16 if array('H',[1]).itemsize == 2:
17 UBYTE2 = 'H'
18 else:
19 raise Exception("UBYTE2 (unsigned short) type cannot be determined!")
21 if array('i',[1]).itemsize == 4:
22 BYTE4 = 'i'
23 elif array('l',[1]).itemsize == 4:
24 BYTE4 = 'l'
25 else:
26 raise Exception("BYTE4 type cannot be determined!")
28 if array('f',[1]).itemsize == 4:
29 FBYTE4 = 'f'
30 elif array('d',[1]).itemsize == 4:
31 FBYTE4 = 'd'
32 else:
33 raise Exception("FBYTE4 type cannot be determined!")