forked from psnehal/encore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flask_config.py.example
50 lines (48 loc) · 1.53 KB
/
flask_config.py.example
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python3
import os
DEFAULT_CONFIG = {
'SERVER_NAME': 'encore.sph.umich.edu',
'JOB_DATA_FOLDER': './',
# SLURM_ACCOUNT': 'encore',
'JOB_MEM_PER_CPU': 6500,
'JOB_CPUS_PER_TASK': 56,
'JOB_TIME': '14-0',
'QUEUE_PARTITION': 'encore',
'PHENO_DATA_FOLDER': './',
'GENO_DATA_FOLDER': './',
'EPACTS_BINARY': 'epacts',
'QUEUE_JOB_BINARY': 'sbatch',
'SQUEUE_JOB_BINARY': '/usr/cluster/bin/squeue',
'CANCEL_JOB_BINARY': 'scancel',
'MANHATTAN_BINARY': 'make_manhattan_json.py',
'QQPLOT_BINARY': 'make_qq_json.py',
'TOPHITS_BINARY': 'make_tophits_json.py',
'NEAREST_GENE_BED': 'data/nearest-gene.bed',
'VCF_FILE': '',
'MYSQL_HOST': 'localhost',
'MYSQL_DB': 'my_db',
'MYSQL_USER': 'my_user',
'MYSQL_PASSWORD': 'my_pwd',
'SECRET_KEY': os.urandom(24),
'JWT_SECRET_KEY': None,
'GOOGLE_LOGIN_CLIENT_ID': None,
'GOOGLE_LOGIN_CLIENT_SECRET': None,
'UMICH_LOGIN_CLIENT_ID':'',
'UMICH_LOGIN_CLIENT_SECRET' : '',
'HELP_EMAIL': '[email protected]',
'LD_SERVER': 'https://portaldev.sph.umich.edu/ld/',
'BUILD_REF': {
'GRCh37': {
'fasta': '/data/ref/hs37d5.fa',
'nearest_gene_bed': '/data/ref/nearest-gene.GRCh37.bed'
},
'GRCh38': {
'fasta': '/data/ref/hs38DH.fa',
'nearest_gene_bed': '/data/ref/nearest-gene.GRCh38.bed'
}
}
}
for key in DEFAULT_CONFIG.keys():
if os.getenv(key):
DEFAULT_CONFIG[key] = os.environ[key]
globals()[key] = DEFAULT_CONFIG[key]