-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from RobokopU24/signor_development_1
SIGNOR 3.0 parser. Updated to map SIGNOR phenotypes to GO terms when …
- Loading branch information
Showing
7 changed files
with
803 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
graphs: | ||
|
||
- graph_id: SIGNOR | ||
graph_name: 'SIGNOR 3.0: The SIGnaling Network Open Resource' | ||
graph_description: 'SIGNOR is a repository of manually annotated causal relationships between human proteins, chemicals of biological relevance, stimuli and phenotypes.' | ||
graph_url: https://signor.uniroma2.it | ||
output_format: neo4j | ||
sources: | ||
- source_id: SIGNOR |
Large diffs are not rendered by default.
Oops, something went wrong.
223 changes: 223 additions & 0 deletions
223
parsers/SIGNOR/src/signor_mechanism_predicate_mapping.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,223 @@ | ||
from Common.biolink_constants import * | ||
|
||
ptm_dict = { | ||
"acetylation": "increased", | ||
"ADP-ribosylation": "increased", | ||
"carboxylation": "increased", | ||
"deacetylation": "decreased", | ||
"degradation": "increased", # cleavage | ||
"deglycosylation": "decreased", | ||
"demethylation": "decreased", | ||
"dephosphorylation": "decreased", | ||
"desumoylation": "decreased", | ||
"deubiquitination": "decreased", | ||
"glycosylation": "increased", | ||
"hydroxylation": "increased", | ||
"lipidation": "increased", | ||
"methylation": "increased", | ||
"monoubiquitination": "increased", | ||
"neddylation": "increased", | ||
"oxidation": "increased", | ||
"palmitoylation": "increased", | ||
"phosphorylation": "increased", | ||
"polyubiquitination": "increased", | ||
"s-nitrosylation": "increased", | ||
"sumoylation": "increased", | ||
"trimethylation": "increased", | ||
"tyrosination": "increased", | ||
"ubiquitination": "increased" | ||
} | ||
|
||
mechanism_map = { | ||
"binding": { | ||
"predicate": f"RO:0002436", # directly_physically_interacts_with | ||
}, | ||
|
||
"catalytic activity": { | ||
"predicate": f"RO:0002327", # catalyzes | ||
}, | ||
|
||
"chemical activation": { | ||
"edge_properties": { | ||
CAUSAL_MECHANISM_QUALIFIER: "chemical activation" | ||
} | ||
}, | ||
|
||
"chemical inhibition": { | ||
"edge_properties": { | ||
CAUSAL_MECHANISM_QUALIFIER: "chemical inhibition" | ||
} | ||
}, | ||
|
||
"chemical modification": { | ||
"predicate": f"biolink:affects", | ||
"edge_properties": { | ||
QUALIFIED_PREDICATE: f"RO:0003303", # causes | ||
OBJECT_ASPECT_QUALIFIER: "chemical modification", | ||
} | ||
}, | ||
"destabilization": { | ||
"predicate": f"biolink:affects", | ||
"edge_properties": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
OBJECT_DIRECTION_QUALIFIER: "decreased", | ||
OBJECT_ASPECT_QUALIFIER: "stability" | ||
} | ||
}, | ||
|
||
# This probably needs to be a node property. "is_a" | ||
"gtpase - activating protein": { | ||
}, | ||
|
||
# This probably needs to be a node property. | ||
"guanine nucleotide exchange factor": { | ||
}, | ||
|
||
"post transcriptional modification": { | ||
"predicate": f"biolink:affects", | ||
"edge_properties": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
OBJECT_ASPECT_QUALIFIER: "post transcriptional modification" | ||
} | ||
}, | ||
|
||
"post translational modification": { | ||
"predicate": f"biolink:affects", | ||
"edge_properties": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
OBJECT_ASPECT_QUALIFIER: "post translation modification" | ||
} | ||
}, | ||
|
||
# new predicate? | ||
"precursor of": { | ||
}, | ||
|
||
"relocalization": { | ||
"predicate": f"biolink:affects", | ||
"edge_properties": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
OBJECT_ASPECT_QUALIFIER: "relocation" | ||
} | ||
}, | ||
|
||
"small molecule catalysis": { | ||
"predicate": "RO:0002327", # catalyses | ||
}, | ||
|
||
"transcriptional regulation": { | ||
"predicate": f"biolink:affects", | ||
"edge_properties": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
CAUSAL_MECHANISM_QUALIFIER: "transcriptional_regulation" | ||
} | ||
}, | ||
|
||
"translation regulation": { | ||
"predicate": f"biolink:affects", | ||
"edge_properties": { | ||
OBJECT_ASPECT_QUALIFIER: "translation" | ||
} | ||
}, | ||
|
||
} | ||
|
||
# Effect to Predicate Mapping | ||
effect_mapping = { | ||
"form complex": { | ||
"biolink:in_complex_with": {}, | ||
"RO:0002436": {} | ||
}, | ||
|
||
"down-regulates": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "downregulates" | ||
} | ||
}, | ||
|
||
"down-regulates activity": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "downregulates", | ||
OBJECT_ASPECT_QUALIFIER: "activity" | ||
} | ||
}, | ||
|
||
"down-regulates quantity": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "downregulates", | ||
OBJECT_ASPECT_QUALIFIER: "abundance" | ||
} | ||
}, | ||
|
||
"down-regulates quantity by destabilization": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "downregulates", | ||
OBJECT_ASPECT_QUALIFIER: "abundance" | ||
}, | ||
|
||
"biolink:affects": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
OBJECT_DIRECTION_QUALIFIER: "decreased", | ||
OBJECT_ASPECT_QUALIFIER: "stability" | ||
} | ||
}, | ||
|
||
"down-regulates quantity by repression": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "downregulates", | ||
OBJECT_ASPECT_QUALIFIER: "abundance" | ||
}, | ||
|
||
"biolink:affects": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
OBJECT_DIRECTION_QUALIFIER: "decreased", | ||
OBJECT_ASPECT_QUALIFIER: "expression" | ||
} | ||
}, | ||
|
||
"up-regulates": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "upregulates" | ||
} | ||
}, | ||
|
||
"up-regulates activity": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "upregulates", | ||
OBJECT_ASPECT_QUALIFIER: "activity" | ||
} | ||
}, | ||
|
||
"up-regulates quantity": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "upregulates", | ||
OBJECT_ASPECT_QUALIFIER: "abundance" | ||
} | ||
}, | ||
|
||
"up-regulates quantity by stabilization": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "upregulates", | ||
OBJECT_ASPECT_QUALIFIER: "abundance" | ||
}, | ||
|
||
"biolink:affects": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
OBJECT_DIRECTION_QUALIFIER: "increased", | ||
OBJECT_ASPECT_QUALIFIER: "stability" | ||
} | ||
}, | ||
|
||
"up-regulates quantity by expression": { | ||
"RO:0002448": { | ||
OBJECT_DIRECTION_QUALIFIER: "upregulates", | ||
OBJECT_ASPECT_QUALIFIER: "abundance" | ||
}, | ||
|
||
"biolink:affects": { | ||
QUALIFIED_PREDICATE: "RO:0003303", | ||
OBJECT_DIRECTION_QUALIFIER: "increased", | ||
OBJECT_ASPECT_QUALIFIER: "expression" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
PREDICATE_MAPPING = { | ||
"down-regulates":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"", | ||
"object_direction_qualifier":"downregulated", | ||
"object_aspect_qualifier":"", | ||
}, | ||
"up-regulates quantity":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"increased", | ||
"object_aspect_qualifier":"abundance", | ||
}, | ||
"down-regulates quantity by repression":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"decreased", | ||
"object_aspect_qualifier":"expression", | ||
}, | ||
"up-regulates":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"", | ||
"object_direction_qualifier":"upregulated", | ||
"object_aspect_qualifier":"", | ||
}, | ||
"down-regulates quantity by destabilization":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"decreased", | ||
"object_aspect_qualifier":"stability", | ||
}, | ||
"up-regulates quantity by expression":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"increased", | ||
"object_aspect_qualifier":"expression", | ||
}, | ||
"down-regulates quantity":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"decreased", | ||
"object_aspect_qualifier":"abundance", | ||
}, | ||
"up-regulates activity":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"increased", | ||
"object_aspect_qualifier":"activity", | ||
}, | ||
"down-regulates activity":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"decreased", | ||
"object_aspect_qualifier":"activity", | ||
}, | ||
"form complex":{ | ||
"predicate":"biolink:in_complex_with", | ||
"qualified_predicate":"", | ||
"object_direction_qualifier":"", | ||
"object_aspect_qualifier":"", | ||
}, | ||
"up-regulates quantity by stabilization":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"increased", | ||
"object_aspect_qualifier":"stability", | ||
}, | ||
"down-regulates quantity by repression":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"biolink:causes", | ||
"object_direction_qualifier":"decreased", | ||
"object_aspect_qualifier":"expression", | ||
}, | ||
"unknown":{ | ||
"predicate":"biolink:regulates", | ||
"qualified_predicate":"", | ||
"object_direction_qualifier":"", | ||
"object_aspect_qualifier":"", | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters