Skip to content

Commit 9e1596c

Browse files
committed
strength is mappable concept, not coding
1 parent 1d1c2bb commit 9e1596c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/metakb/load_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,8 +451,8 @@ def _add_statement(tx: ManagedTransaction, statement_in: dict) -> None:
451451
if v:
452452
statement[f"coding_{k}"] = v
453453

454-
match_line += f"MERGE (c:Coding {{ {strength_keys} }})\n"
455-
rel_line += "MERGE (s) -[:HAS_STRENGTH] -> (c)\n"
454+
match_line += f"MERGE (mc:MappableConcept {{ {strength_keys} }})\n"
455+
rel_line += "MERGE (s) -[:HAS_STRENGTH] -> (mc)\n"
456456

457457
variant_id = proposition["subjectVariant"]["id"]
458458
match_line += f"MERGE (v:Variation {{ id: '{variant_id}' }})\n"

tests/unit/database/test_database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ def test_statement_rules(
547547
check_relation_count("Statement", "CategoricalVariant", "HAS_VARIANT")
548548
check_relation_count("Statement", "Condition", "HAS_TUMOR_TYPE")
549549
check_relation_count("Statement", "Therapy", "HAS_THERAPEUTIC", min_rels=0)
550-
check_relation_count("Statement", "Coding", "HAS_STRENGTH")
550+
check_relation_count("Statement", "MappableConcept", "HAS_STRENGTH")
551551
check_relation_count("Statement", "Method", "IS_SPECIFIED_BY", max_rels=None)
552552
check_relation_count("Statement", "Gene", "HAS_GENE_CONTEXT", max_rels=None)
553553

0 commit comments

Comments
 (0)