forked from sungsooha/multisciview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
52 lines (43 loc) · 1.29 KB
/
config.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
CONFIG = {
# data directory to monitor (recursively)
# It is safe not to inlcude the last back-slash
'DATA_DIR': '/Users/scott/Desktop/test3',
# File path web server will use to store file system information
'FSMAP': './fsmap.json',
# mongo db set-up
'DB': {
#'HOST': 'visws.csi.bnl.gov',
'HOST': 'localhost',
'PORT': 27017
},
# parsing xml file
'XML': {
# rood id field
'ROOTID': 'name',
# sample name split
# now, user can select seperator or sample name per folder from font-end
'SAMPLE_SPLIT': ['_th', '_thresh'],
# protocol id field
'PID': 'name',
# for same protocol, use COMPARE field (use only the latest one)
'TIMESTAMP': 'save_timestamp',
# result id field
'RID': 'name', # id
'RVAL': 'value', # value
# fields that will be excluded in a result
'R_EXCLUDE': [
'filebase',
'file_access_time',
'sample_name',
'file_ctime',
'file_size',
'infile',
'filepath',
'filename',
'fileext',
'file_modification_time'
],
# fields whose value will be considered as string
'R_STRING': [],
}
}