Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHydeDartmouth committed Aug 9, 2022
1 parent c92deaa commit 56f81e4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions chp_look_up/trapi_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,9 @@ def _isGeneToPathwayWildcardQuery(query_graph:QueryGraph)->bool:
return True
@staticmethod
def getQueryType(query_graph:QueryGraph) -> QueryType:
print(query_graph)
if QueryIdentifier._isPathwayToGeneWildcardQuery(query_graph):
print('hi')
query_type:QueryType = QueryType.PATHWAY_TO_GENE_WILDCARD
elif QueryIdentifier._isGeneToPathwayWildcardQuery(query_graph):
print('yo')
query_type:QueryType = QueryType.GENE_TO_PATHWAY_WILDCARD
else:
raise UnidentifiedQueryType
Expand Down Expand Up @@ -151,7 +148,6 @@ def query_database(self, identified_query_tuple) -> Query:
subject_node_curie = subject_node.ids[0]
database_results:QuerySet = GeneToPathway.objects.all().filter(gene_curie=subject_node_curie)
elif query_identifier == QueryType.PATHWAY_TO_GENE_WILDCARD:
print('pathway query identified')
subject_node_ids:list = identified_query.message.query_graph.find_nodes(categories=[BIOLINK_PATHWAY_ENTITY])
subject_node_id = subject_node_ids[0]
subject_node:QNode = identified_query.message.query_graph.nodes[subject_node_id]
Expand Down

0 comments on commit 56f81e4

Please sign in to comment.