defs.py 2.05 KB
Newer Older
1
2
3
4
5
6
7
8
###
### Vidjil server, main configuration file
### This file must be named 'modules/defs.py' to be taken into account
###

### Email notifications for server errors
SMTP_SERVER = 'localhost'
# SMTP_SERVER = 'logging' # no mail
Mathieu Giraud's avatar
Mathieu Giraud committed
9
FROM_EMAIL = 'notifications@vidjil.org'
10
11
12
13
14
15
ADMIN_EMAILS = ['notifications@vidjil.org']

### address for the sql database
###
DB_ADDRESS = 'sqlite://storage.sqlite'
DB_ADDRESS = 'mysql://vidjil:rootpass@mysql/vidjil'
16
DB_POOL_SIZE = 4
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

### Backup file
DB_BACKUP_FILE = 'backup.csv'

### Upload directory for .fasta/.fastq.
### Old sequences files could be thrown away.
### No regular backup.

DIR_SEQUENCES = '/mnt/upload/uploads/'

### Upload directory for .vidjil/.fused/.analysis
### Regularly backuped

DIR_RESULTS = '/mnt/result/results/'

### Temporary directory to store vidjil results, and basename of files in this directory
### Formatted with 'data_id' in models/task.py
DIR_OUT_VIDJIL_ID = '/mnt/result/tmp/out-%06d/'
DIR_PRE_VIDJIL_ID = '/mnt/result/tmp/pre/out-%06d/'
BASENAME_OUT_VIDJIL_ID = '%06d'

### Directory for program used in task.py
### relative path start from server/web2py
DIR_VIDJIL = '/usr/bin/'
DIR_FUSE = '../../tools'
DIR_MIXCR = '/usr/bin'
DIR_GERMLINE = '/usr/share/vidjil/germline'
### Port on which to run the fuse server
### Used in models/task.py and in /server/fuse_server.py
46
FUSE_SERVER = 'fuse'
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
PORT_FUSE_SERVER = 12789

### Log files
DIR_LOG = '/var/vidjil/'
LOG_INFO = DIR_LOG + 'vidjil.log'
LOG_DEBUG = DIR_LOG + 'vidjil-debug.log'

### Timeouts
# Delay in seconds before a task is considered in timeout
TASK_TIMEOUT = 2 * 60 * 60

### Reverse IP file
REVERSE_IP = '/home/vidjil/ips.txt'

### Locus (should be parsed from germlines.data)
LOCUS = ['TRA', 'TRA+D', 'TRB', 'TRG', 'TRD', 'TRD+',
         'IGH', 'IGH+', 'IGK', 'IGK+', 'IGL']
64
65
66
67
68

# Preventu upload and run when 1% space is left in target disk
FS_LOCK_THRESHHOLD = 1

SCHEDULER_HEARTBEAT = 5
69
70
71
72

# Directory to search for files
FILE_SOURCE = '/mnt/data/src'
FILE_TYPES = ['fasta', 'fastq', 'fastq.gz']
73
74
75
76

SET_TYPE_PATIENT = 'patient'
SET_TYPE_RUN= 'run'
SET_TYPE_GENERIC = 'generic'