-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
37 lines (32 loc) · 854 Bytes
/
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
from typing import List
from pydantic import BaseSettings, Field
from sources import *
from util import get_release_tag
class Settings(BaseSettings):
debug: bool = Field(True, env="DEBUG")
port: int = Field(8080, env="PORT")
release_tag: str = Field(get_release_tag())
sources: List[type] = [
Alamut,
dbSNP,
COSMIC,
ClinVar,
Franklin,
CKB,
LOVD,
OncoKB,
cBioPortal,
Varsome,
HMF,
Mutalyzer,
Mastermind,
TP53,
# is_hidden()=True sources should be at the end, to not leave gaps in source layout
Clingen,
Ensembl,
# GnomAD,
]
def __init__(self):
super().__init__()
self.sources = [source for source in self.sources if source.is_complete(source)]
settings = Settings()