forked from NIAGADS/niagads-pylib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.py
36 lines (28 loc) · 891 Bytes
/
constants.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
""" constants used by the API wrapper"""
from enum import auto
from strenum import StrEnum
from niagads.utils.enums import CustomStrEnum
PAGE_SIZES = [50, 100, 200, 300, 400, 500]
class RecordTypes(CustomStrEnum, StrEnum):
"""
StrEnum - values can used as strings
auto() sets enum value = ENUM
"""
VARIANT = auto()
GENE = auto()
SPAN = auto()
COLLECTION = auto()
TRACK = auto()
class Databases(CustomStrEnum, StrEnum):
GENOMICS = auto()
FILER = auto()
ADVP = auto()
class FileFormats(CustomStrEnum, StrEnum):
TABLE = auto()
JSON = auto()
class VariantConsequenceTypes(CustomStrEnum, StrEnum):
MOST_SEVERE = 'most_severe_consequence'
REGULATORY = 'regulatory_feature_consequences'
ALL = 'ranked_consequences'
TRANSCRIPT = 'transcript_consequences'
MOTIF = 'motif_feature_consequences'