Skip to content

Commit

Permalink
embellishment of docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
leokim-l committed Jun 20, 2024
1 parent 572bbe1 commit a0bd2ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/malco/post_process/compute_mrr.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from malco.post_process.mondo_score_utils import score_grounded_result
from malco.post_process.mondo_score_utils import omim_mappings
from typing import List
from oaklib.interfaces import OboGraphInterface, MappingProviderInterface
from oaklib.interfaces import OboGraphInterface


from oaklib import get_adapter
Expand Down
6 changes: 3 additions & 3 deletions src/malco/post_process/mondo_score_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from oaklib.datamodels.vocabulary import IS_A
from oaklib.interfaces import MappingProviderInterface, OboGraphInterface
from oaklib import get_adapter
from oaklib.interfaces import MappingProviderInterface

from typing import List
from cachetools import cached, LRUCache
Expand All @@ -18,6 +17,7 @@ def omim_mappings(term: str, adapter) -> List[str]:
Example:
>>> from oaklib import get_adapter
>>> omim_mappings("MONDO:0007566", get_adapter("sqlite:obo:mondo"))
['OMIM:132800']
Expand All @@ -41,7 +41,7 @@ def score_grounded_result(prediction: str, ground_truth: str, mondo) -> float:
Score the grounded result.
Exact match:
>>> from oaklib import get_adapter
>>> score_grounded_result("OMIM:132800", "OMIM:132800", get_adapter("sqlite:obo:mondo"))
1.0
Expand Down

0 comments on commit a0bd2ee

Please sign in to comment.