Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating biolink 4.1.4 #161

Merged
merged 2 commits into from
Mar 1, 2024
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bmt/toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Url = str
Path = str

LATEST_BIOLINK_RELEASE = "4.0.0"
LATEST_BIOLINK_RELEASE = "4.1.4"

REMOTE_PATH = f"https://raw.githubusercontent.com/biolink/biolink-model/v{LATEST_BIOLINK_RELEASE}/biolink-model.yaml"
PREDICATE_MAP = f"https://raw.githubusercontent.com/biolink/biolink-model/v{LATEST_BIOLINK_RELEASE}/predicate_mapping.yaml"
Expand Down
4 changes: 1 addition & 3 deletions tests/unit/test_toolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,7 @@ def test_is_mixin(toolkit):


def test_is_translator_canonical_predicate(toolkit):
assert toolkit.is_translator_canonical_predicate("treats")
assert not toolkit.is_translator_canonical_predicate("treated by")
assert toolkit.is_translator_canonical_predicate("studied to treat")
assert not toolkit.is_translator_canonical_predicate("this_does_not_exist")
assert not toolkit.is_translator_canonical_predicate("completed by")
assert toolkit.is_translator_canonical_predicate("regulates")
Expand Down Expand Up @@ -952,7 +951,6 @@ def test_mapping(toolkit):


def test_get_slot_domain(toolkit):
assert NAMED_THING in toolkit.get_slot_domain("ameliorates")
assert "biological process" in toolkit.get_slot_domain(ENABLED_BY)
assert "biological process or activity" in toolkit.get_slot_domain(ENABLED_BY)
assert "pathway" in toolkit.get_slot_domain(
Expand Down