Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions biolink-model.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2739,10 +2739,10 @@ slots:
range: gene

active in:
is_a: located in
description: >-
Holds between a gene or gene product and a cellular component in which it carries out its
molecular function.
is_a: related to at instance level
domain: gene or gene product
range: cellular component
annotations:
Expand All @@ -2751,7 +2751,7 @@ slots:
- RO:0002432

has active component:
is_a: related to at instance level
is_a: location of
inverse: active in
domain: cellular component
range: gene or gene product
Expand Down
8 changes: 7 additions & 1 deletion tests/test_canonical_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ def test_protein_accepts_ncit_prefix(load_biolink_model):
assert protein is not None
assert "NCIT" in protein.id_prefixes

def test_active_in_is_a_located_in(load_biolink_model):
"""Ensure active in is modeled as a specialization of located in."""
model = SchemaView(load_biolink_model)

assert model.get_slot("active in").is_a == "located in"
assert model.get_slot("has active component").is_a == "location of"

def test_macromolecular_complex_accepts_iuphar_target_prefix(load_biolink_model):
"""Ensure GtoPdb target identifiers are valid for macromolecular complexes."""
Expand All @@ -52,4 +58,4 @@ def test_macromolecular_complex_accepts_iuphar_target_prefix(load_biolink_model)
assert (
model.schema.prefixes["IUPHARobj"].prefix_reference
== "https://www.guidetopharmacology.org/GRAC/ObjectDisplayForward?objectId="
)
)