-
Notifications
You must be signed in to change notification settings - Fork 0
/
stmp_consts.py
44 lines (32 loc) · 1.14 KB
/
stmp_consts.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
#!/usr/bin/env python
'''
Author: Prag Batra ([email protected])
Purpose:
Provides a single place to keep track of all constants used in STMP.
Explanation:
See purpose above. Note: all column names should be lowercase
for comparison purposes.
Example:
For usage, see stmp2.py where these methods are all called.
'''
import collections
from collections import OrderedDict
# must exactly match the given column name
# NOTE: the standard VCF columns (chrom, start, id, ref, alt, qual, filter, info) are currently hardcoded so this dictinary is ignored for these values
col_table_types_absolute = {
'chr': 'varchar(10)',
'chrom': 'varchar(10)',
'start': 'int',
'stop': 'int',
'ref': 'varchar(512)',
'alt': 'varchar(512)',
'pop_freq_max': 'float',
'info': 'varchar(255)',
'format': 'varchar(255)'
}
# Only needs to match the beginning of the given column name.
# These are listed in search order (first match is the one used).
col_table_types_prefixes = OrderedDict([
('shuffle_wellderly', 'varchar(255)')
])
vcf_col_header_chrom = 'CHROM'