Skip to content

Commit

Permalink
Change disease mode of inheritance query to only look at direct assoc…
Browse files Browse the repository at this point in the history
…iations (#432)

This is causing some pages to not render, I specifically saw the error
for MONDO:0017314 in the logs
  • Loading branch information
kevinschaper authored Oct 23, 2023
1 parent caa6ed7 commit 5df6275
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def get_entity(self, id: str, extra: bool) -> Optional[Union[Node, Entity]]:
node = Node(**solr_document)
if "biolink:Disease" in node.category:
mode_of_inheritance_associations = self.get_associations(
subject=id, predicate="biolink:has_mode_of_inheritance", offset=0
subject=id, predicate="biolink:has_mode_of_inheritance", direct=True, offset=0
)
if mode_of_inheritance_associations is not None and len(mode_of_inheritance_associations.items) == 1:
node.inheritance = self._get_associated_entity(mode_of_inheritance_associations.items[0], node)
Expand Down

0 comments on commit 5df6275

Please sign in to comment.