Skip to content

Commit

Permalink
Update Reactome ingests to use Reactome as a prefix rather than `RE…
Browse files Browse the repository at this point in the history
…ACT`
  • Loading branch information
kevinschaper committed Dec 13, 2023
1 parent cc17873 commit 0ea8bbb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/monarch_ingest/ingests/reactome/chemical_to_pathway.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
if taxon_id:

chemical_id = "CHEBI:" + row["component"]
pathway_id = "REACT:" + row["pathway_id"] # pathways themselves are an independent ingest now...
pathway_id = "Reactome:" + row["pathway_id"] # pathways themselves are an independent ingest now...

go_evidence_code = row["go_ecode"]
evidence_code_term = koza_app.translation_table.resolve_term(go_evidence_code)
Expand Down
2 changes: 1 addition & 1 deletion src/monarch_ingest/ingests/reactome/gene_to_pathway.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
if taxon_id:

gene_id = 'NCBIGene:' + row["component"]
pathway_id = "REACT:" + row["pathway_id"] # pathways themselves are an independent ingest now...
pathway_id = "Reactome:" + row["pathway_id"] # pathways themselves are an independent ingest now...

go_evidence_code = row["go_ecode"]
evidence_code_term = koza_app.translation_table.resolve_term(go_evidence_code)
Expand Down
2 changes: 1 addition & 1 deletion src/monarch_ingest/ingests/reactome/pathway.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# We only continue of the species is in our local reactome_id_mapping table
if taxon_id:
pathway = Pathway(
id="REACT:" + row["ID"],
id="Reactome:" + row["ID"],
name=row["Name"],
in_taxon=[taxon_id],
provided_by=["infores:reactome"]
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/reactome/test_reactome_chemical_to_pathway.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def test_association(basic_g2p):
assert association
assert association.subject == "CHEBI:10033"
assert association.predicate == "biolink:participates_in"
assert association.object == "REACT:R-RNO-6806664"
assert association.object == "Reactome:R-RNO-6806664"
assert "ECO:0000501" in association.has_evidence
assert association.primary_knowledge_source == "infores:reactome"
assert "infores:monarchinitiative" in association.aggregator_knowledge_source
2 changes: 1 addition & 1 deletion tests/unit/reactome/test_reactome_gene_to_pathway.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_association(basic_g2p):
assert association
assert association.subject == "NCBIGene:8627890"
assert association.predicate == "biolink:participates_in"
assert association.object == "REACT:R-DDI-73762"
assert association.object == "Reactome:R-DDI-73762"
assert "ECO:0000501" in association.has_evidence
assert association.primary_knowledge_source == "infores:reactome"
assert "infores:monarchinitiative" in association.aggregator_knowledge_source
2 changes: 1 addition & 1 deletion tests/unit/reactome/test_reactome_pathway.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ def basic_g2p(mock_koza, source_name, basic_row, script, global_table, local_tab

def test_pathway_id(basic_g2p):
pathway = basic_g2p[0]
assert pathway.id == "REACT:R-BTA-73843"
assert pathway.id == "Reactome:R-BTA-73843"
assert "infores:reactome" in pathway.provided_by

0 comments on commit 0ea8bbb

Please sign in to comment.