Skip to content

Commit

Permalink
filtering semmeddb only when run in ARAX
Browse files Browse the repository at this point in the history
  • Loading branch information
kvnthomas98 committed Aug 10, 2023
1 parent ed205fe commit 03b9b45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/ARAX/ARAXQuery/ARAX_expander.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,9 @@ def apply(self, response, input_parameters, mode: str = "ARAX"):

# Map canonical curies back to the input curies in the QG (where applicable) #1622
self._map_back_to_input_curies(message.knowledge_graph, query_graph, log)
eu.remove_semmeddb_edges_and_nodes_with_low_publications(message.knowledge_graph, response)
overarching_kg = eu.convert_standard_kg_to_qg_organized_kg(message.knowledge_graph)
if mode != "RTXKG2":
eu.remove_semmeddb_edges_and_nodes_with_low_publications(message.knowledge_graph, response)
overarching_kg = eu.convert_standard_kg_to_qg_organized_kg(message.knowledge_graph)
# Return the response and done
kg = message.knowledge_graph
log.info(f"After Expand, the KG has {len(kg.nodes)} nodes and {len(kg.edges)} edges "
Expand Down

0 comments on commit 03b9b45

Please sign in to comment.