-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.py
28 lines (25 loc) · 815 Bytes
/
common.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DIR_DATA = "/Users/lp2/data/projects/wildsupp"
DIR_AFS = "%s/seq/Joint-call/afs"%DIR_DATA
DIR_META = "%s/paper/meta"%DIR_DATA
DIR_TABLE = "%s/paper/tables"%DIR_DATA
DIR_PLOT = "%s/paper/plots"%DIR_DATA
DIR_QTL = "%s/paper/tables/qtls"%DIR_DATA
DIR_QTLPLOT = "%s/paper/plots/qtls"%DIR_DATA
SQTL_VERSION = "0.1"
STR_HEADER_CALL_REGIONS = """#sQTL version %s - call QTL regions output
#==========================================
# out_file=%s
# vcf_file=%s
# test sample=%s
# control sample=%s
# af_lenient=%.2f
# sd_lenient=%.1f
# af_stringent=%.2f
# sd_stringent=%.1f
# length_cutoff=%d
#==========================================
"""
import logging
import cPickle
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s: %(levelname)-8s %(message)s')
LOG = logging.getLogger("Wild suppressors")