Skip to content

Commit

Permalink
Fixing Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kvnthomas98 committed Aug 6, 2024
1 parent f8eecfb commit 030c38a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions code/ARAX/ARAXQuery/Infer/scripts/infer_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def genrete_treat_subgraphs(self, response: ARAXResponse, top_drugs: pd.DataFram
node_info = xdtdmapping.get_node_info(node_id=drug_canonical_id)
except:
continue
if not node_info:
continue
drug_categories = [node_info.category]
# add the node to the knowledge graph
drug_name = node_info.name
Expand Down
2 changes: 1 addition & 1 deletion code/ARAX/test/test_ARAX_expand.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ def test_xdtd_curie_not_in_db():
"t_edge": {
"object": "disease",
"subject": "chemical",
"predicates": ["biolink:affects"],
"predicates": ["biolink:treats"],
"knowledge_type": "inferred"
}
}
Expand Down

0 comments on commit 030c38a

Please sign in to comment.