-
Notifications
You must be signed in to change notification settings - Fork 21
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
Results not returning with UMLS identifiers #1127
Comments
ah, so one issue then is this line in the OP: In our KG, we still use chemical_substance from TRAPI 0.9.2. (ChemicalSubstance is proposed for TRAPI 1.0) But, also, if you specify a CURIE, then I suggest not specifying a type, in case the type is different. |
hmm - yeah, the query graph interpreter seems to hang at If I omit the type of
then the query makes it further, but it tries to use KG1, which doesn't have any results. if I force the query to use KG2 via a DSL version of the query:
a bunch of results are returned: https://arax.ncats.io/test/?m=3224 so maybe the query graph interpreter needs to be updated to use KG2 in this case? |
Hi Amy, thanks, just saw your reply now. Yes, I think we need an endpoint where the QG interpreter defaults to KG2. |
I got this DSL to return those 580 results:
add_qnode(id=n00,curie=UMLS:C0520909,is_set=false)
add_qnode(id=n01,is_set=false)
add_qedge(source_id=n01,target_id=n00)
expand(kp=ARAX/KG2,continue_if_no_results=false,enforce_directionality=false,use_synonyms=true)
resultify(ignore_edge_direction=true)
But somehow posting via JSON did not lead to expand or resultify being
called?
…On Thu, Nov 19, 2020 at 9:24 AM Stephen A. Ramsey ***@***.***> wrote:
OK, we can try using endpoint
https://arax.ncats.io/test/
and we can use the query JSON
{
"edges": [
{
"id": "e0",
"source_id": "n0",
"target_id": "n1"
}
],
"nodes": [
{
"curie": "UMLS:C0520909",
"id": "n0"
},
{
"id": "n1"
}
]
}
(note, for query node n1, we did not specify a type in this case). Then
we get a bunch of results:
[image: Screen Shot 2020-11-19 at 9 23 43 AM]
<https://user-images.githubusercontent.com/5562107/99701164-f0268400-2a48-11eb-9fa7-89fa634e0a49.png>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1127 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJAZIYAFYUTMYS2ITPSVYTTSQVIEDANCNFSM4T3USHUQ>
.
|
Good catch, @isbluis |
yeah, eventually I suppose we want to move to KG2 as our default for all queries. though one way the QG interpreter could easily tell it shouldn't use KG1 for this query is that KG1 doesn't even have a node type of |
Sure! |
Hey @edeutsch what's your take on how the ARS should tell ARAX (via the API) to use KG2? |
My take is: how could the ARS possibly decide which to use? It would be useful to discuss the original query_graph at the next AHM or mini-hackathon because there are several reasoning policies revealed by it that we should make decisions on. |
I'm in favor of making KG2 the default for the QueryGraphInterpreter at this point. I think that would be a good first step towards retiring KG1. the only way KG1 is still proving useful that I'm aware of is for its speed (since it's so much smaller); it's used a lot in our pytest suite for this reason. this of course isn't a reason to keep it around indefinitely, but it might be nice to phase it out rather than completely retire it off the bat. |
Good topic for the Dec. 2 mini-hackathon. Agree with @amykglen , maybe we could make KG2 the default in the meantime, as a stopgap and we could let MarkW know about it. |
Shall I push the current master branch to production and everywhere and then switch the QueryGraphInterperter to use kg2 always in /beta? Would someone have time to try that out? |
sounds good to me! I have time to try it out. |
okay, latest master is rolled out everywhere now. All tests are passing. I will now break stuff in /test |
looks like Mark's JSON query runs smoothly now on
|
@MarkDWilliams - we believe this issue is fixed on production now. your original query graph (unmodified) is returning results in testing. can you verify from your end? |
Appears to be resolved on my end as well. Thanks everyone! |
In attempting to recreate the results of the TIDBIT regarding cyclic vomiting, I sent out several queries for connections to various identifiers related to vomiting, nausea, etc. There are connections to these identifiers present in SemMedDB, but no results are returned from ARAX. This query graph was submitted to ARAX through the ARS.
The following identifiers were also used without results being returned:
UMLS:C0027497
UMLS:C0027498
UMLS:C0718572
UMLS:C0722001
UMLS:C0520904
UMLS:C0520909
The text was updated successfully, but these errors were encountered: