-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phase 1: processing TRAPI-1.4 KP sub-query responses (aux-graph/result.analyses refactor) #614
Comments
Specifically interested in @tokebe's view of this idea of dropping results when the analyses.edge_binding edges reference aux-graphs...
|
Note that COHD's dev instance seems to be on TRAPI 1.4 (we can access it through the registration we currently use, but they also registered a separate yaml for TRAPI 1.4) However, I haven't checked their From my post here: #597 (comment) |
don't deploy this until #614 is addressed aka BTE can handle TRAPI 1.4 KP responses other code may be needed as well
text-mining targeted and multiomics clinicaltrials. to support trapi 1.4 sources data ingest
Deleted the previous comment (oops? should have edited or hidden it instead?). @tokebe and I agreed to adjust the API_LIST config file rather than use SmartAPI overrides, because the names of the APIs were different between registrations. The adjustments are in this branch main...trapi1-4-overrides and include...
|
Above linked PR currently drops all KP result edges that have support graphs, per 1-on-1 discussion with @colleenXu. This might change if there's a good case in which we'd want to keep support graphs. Note that support graphs on the result analysis are also not kept, but not used as criteria for dropping a result edge (these support graphs would typically explain result scoring, which we also don't use from TRAPI KPs). |
Note that I'm not sure that CHP's TRAPI 1.4 instance is working (dev only; BTE log example:
query 1
response to query 1: empty KG/results
query 2uses an ID they list in the example response of the /curies endpoint
query 2 response: malformed errorvery long, only including snippets that seem useful
EDIT: I found a query that works. However, (a) BTE wouldn't send a sub-query like this (where the ID is the object) and (b) BTE may not be able to process the response (only 1 result that contains all 30 "answers", as if query that worksThis is the example given for their /query endpoint
query response: |
Marking this one as done -- we'll treat the above as a new issue (tracked in #685) |
Note that other tools in Translator aren't doing subclassing w/ aux-graphs right now (it's an after-Sept goal). So...we'll open a new issue if we notice any issues processing their KP responses or we want to change our behavior... |
Background
analyses.support_graphs
should be related to its scoring, we can ignore itresult.analyses.resource_id
Overview
I use this sub-query for my example results below
Our sub-queries to TRAPI KPs are 1-hop Predict "style" TRAPI queries with batches of IDs sent in each request.
We expect two kinds of results in the TRAPI-1.4 responses (mirrors the two scenarios of #603)...
no ID/node-expansion was involved
result.analyses
, so BTE can take that object'sedge_bindings
and they should be just like theresult.edge_bindings
in TRAPI 1.3attributes
array where theattribute_type_id
is "biolink:support_graphs")example result
This is a "fake" expected result that isn't based on a real response from a TRAPI-1.4 KP...
ID/node-expansion was involved
READ THIS FIRST:
Notes:
result.analyses
. But the edge(s)? in that object'sedge_bindings
may reference an auxiliary graph. When this happens, we expect 1 element in theattributes
array where theattribute_type_id
is "biolink:support_graphs". Thevalue
of that Attribute object should be 1 or more keys for auxiliary-graphs...auxiliary_graphs
section of our TRAPI responseknowledge_graph.edges
section of our TRAPI responseresult.analyses.edge_bindings
. So we'd basically ignore the nested auxiliary-graphs and their edges...Examples:
The text was updated successfully, but these errors were encountered: