-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
117 lines (105 loc) · 3.25 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
"""Constants"""
WIKIPATHWAYS_SUBFOLDER = 'wikipathways_graphs'
WIKIPATHWAYS_METADATA_FILESTRING = '_datanodeDF.csv'
WIKIPATHWAYS_PREFIX = 'WikiPathways'
NODE_PREFIX_MAPPINGS = {
'Ensembl' : 'Ensembl',
'HMDB' : 'HMDB',
'Entrez Gene' : 'NCBIGene',
'KEGG Compound' : 'KEGG.COMPOUND',
'PubChem-compound' : 'PUBCHEM.COMPOUND',
'Uniprot-TrEMBL' : 'UniProtKB',
'HGNC' : 'HGNC',
'ChEBI' : 'CHEBI'
}
WIKIPATHWAYS_UNKNOWN_PREFIXES = ['Unknown',WIKIPATHWAYS_PREFIX,'Pfam','Wikidata','InterPro','Enzyme Nomenclature']
NODE_NORMALIZER_URL = 'https://nodenormalization-sri.renci.org/1.4/get_normalized_nodes?curie='
PKL_PREFIXES = ['NCBIGene','CHEBI']
PKL_GENE_URI = 'http://www.ncbi.nlm.nih.gov/gene/'
PKL_OBO_URI = 'http://purl.obolibrary.org/obo/'
"""Constants for prefix mappings."""
#PKL
PKL_SUBSTRINGS = {
'gene':'/gene/',
'mondo':'/MONDO_',
'chebi':'/CHEBI_',
'pr':'/PR_',
'pw':'/PW_',
'hp':'/HP_',
'vo':'/VO_',
'efo':'/EFO_',
'ncbitaxon':'/NCBITaxon_',
'go':'/GO_',
'nbo':'/NBO_',
'so':'/SO_',
'chr':'/CHR_',
'reactome':'/R-HSA-',
'uberon':'/UBERON_',
'mpath':'/MPATH_',
'pato':'/PATO_',
'snp':'/snp/',
'ncit':'/NCIT_',
'caro':'/CARO_',
'ecto':'/ECTO_',
'cl':'/CL_',
'ensembl':'ensembl.org/',
}
#KG-Covid19
KGCOVID19_SUBSTRINGS = {
'gene':'/hgnc/',
'mondo':'MONDO:',
'chebi':'CHEBI:',
'pr':'PR:',
'hp':'HP:',
'ncbitaxon':'/NCBITaxon_',
'go':'GO:',
'uberon':'UBERON:',
'caro':'CARO:',
'cl':'CL:',
'bspo':'BSPO:',
'bto':'BTO:',
'fma':'FMA:',
'ma':'MA:',
'mpo':'MPO:',
'oba':'OBA:',
'pato':'PATO:',
'plana':'PLANA:',
'uberon':'UBERON:',
'upheno':'UPHENO:',
'wbbt':'WBbt:',
'zp':'ZP:',
'ensembl':'ENSEMBL:',
'chembl':'CHEMBL:',
'ecocore':'ECOCORE:',
'mfomd':'MFOMD:',
'bfo':'BFO:'
}
ALL_WIKIPATHWAYS = ['WP4532', 'WP4533', 'WP4534', 'WP4535', 'WP4537', 'WP4538', 'WP4539', 'WP4540','WP4541', 'WP4542', 'WP4553', 'WP4562', 'WP4564', 'WP4565', 'WP4760', 'WP4829', 'WP4856', 'WP5283', 'WP5358', 'WP5368', 'WP5372', 'WP5373', 'WP5382', 'WP5385']
LITERATURE_SEARCH_TYPES = ["abstract","full_text"]
# PHEKNOWLATOR_BROAD_NODES_DICT = {
# 'protein_coding_gene': 'http://purl.obolibrary.org/obo/SO_0001217',
# 'Gene expression (Transcription)': 'https://reactome.org/content/detail/R-HSA-74160',
# 'Generic Transcription Pathway': 'https://reactome.org/content/detail/R-HSA-212436',
# 'Metabolism': 'https://reactome.org/content/detail/R-HSA-1430728',
# 'Developmental Biology': 'https://reactome.org/content/detail/R-HSA-1266738',
# 'gene': 'http://purl.obolibrary.org/obo/SO_0000704',
# 'Metabolism of proteins': 'https://reactome.org/content/detail/R-HSA-392499',
# 'tag': 'http://purl.obolibrary.org/obo/SO_0000324',
# 'engineered': 'http://purl.obolibrary.org/obo/SO_0000783',
# 'transcript': 'http://purl.obolibrary.org/obo/SO_0000673',
# 'protein binding': 'http://purl.obolibrary.org/obo/GO_0005515',
# 'Homo sapiens protein': 'http://purl.obolibrary.org/obo/PR_000029067',
# }
FILTER_ONTOLOGIES_BY_INFORMATION_CONTENT = [
"SO",
"GO",
"HP",
"PR",
"MONDO",
"CHEBI",
"VO",
"UBERON",
"CLO",
"PW",
"RO",
]