Skip to content

Commit

Permalink
Bug fix: Gene-Disease relationships
Browse files Browse the repository at this point in the history
- Bug fix: Removed accidental "causal" G2D restrictions being added when the corresponding D2G was not found to be definitively causal.
  • Loading branch information
joeflack4 committed Nov 4, 2024
1 parent ddec613 commit 1838e7e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions omim2obo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,9 @@ def omim2obo(use_cache: bool = False):

# Gene->Disease non-causal relationships
# - RO:0003302 docs: see MORBIDMAP_PHENOTYPE_MAPPING_KEY_PREDICATES
g2d_pred = MORBIDMAP_PHENOTYPE_MAPPING_KEY_PREDICATES[p_map_key] if len(assocs) == 1 else RO['0003302']
add_subclassof_restriction_with_evidence(graph, g2d_pred, OMIM[p_mim], OMIM[gene_mim], evidence)
if p_map_key != 3: # 3 = 'causal'. Handled separately below.
g2d_pred = MORBIDMAP_PHENOTYPE_MAPPING_KEY_PREDICATES[p_map_key] if len(assocs) == 1 else RO['0003302']
add_subclassof_restriction_with_evidence(graph, g2d_pred, OMIM[p_mim], OMIM[gene_mim], evidence)

# Disease->Gene & Gene->Disease: Causal relationships
# - Skip non-causal cases
Expand Down

0 comments on commit 1838e7e

Please # to comment.