Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Jan 16, 2025
1 parent c1e365b commit e93a1c6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gene/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,10 +422,11 @@ def _create_concept_mapping(
err_msg = f"Namespace prefix not supported: {source}"
raise ValueError(err_msg) from e

system = NAMESPACE_TO_SYSTEM_URI["source"]

return ConceptMapping(
coding=Coding(code=code(concept_id), system=system), relation=relation
coding=Coding(
code=code(concept_id), system=NAMESPACE_TO_SYSTEM_URI[source]
),
relation=relation,
)

gene_obj = MappableConcept(
Expand Down

0 comments on commit e93a1c6

Please sign in to comment.