-
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
Bug: DGIdb not being queried correctly #362
Comments
@andrewsu looks like the x-bte annotations group all of the associations in this api into 1 relationship with the predicate "physically_interacts_with". It looks like whoever made the parser for this api mapped the relationships in dgidb to biolink predicates (likely an old version of biolink-model). It looks like there are a LOT of possible meta-triples in this api...I'm not sure if we want to create separate operations for each one... Notes:
My review of the API (70,248 documents) + components of meta-triples:
|
Should be addressed by NCATS-Tangerine/translator-api-registry@a3aabc0 However, the query in the original post still won't return the desired data. I think this is alright after looking at the direction of the data. It looks like To return this triple, the query would have to be |
@colleenXu so would you agree that the data presented in https://biothings.ncats.io/dgidb/query?q=subject.NCBIGene:7979%20AND%20object.name:BORTEZOMIB (shown below) is actually backward of what is shown in https://dgidb.org/interactions/a0d25cdf-c8b8-49c6-95ef-88572080f885#_summary and https://www.ebi.ac.uk/chembl/compound_report_card/CHEMBL325041/, and therefore this seems to indicate a bug in the dgidb parser?
|
@andrewsu I agree that the biothings API would better match the data (chembl / dgidb links) if the subject was the chemical + the object is the gene. This link is also useful for understanding the relations....it looks like the subject is often the drug and the relations can be organized by "their effect" (inhibitory, activating). I can edit the current dgidb x-bte annotation with this in mind, let me know.... |
@colleenXu can you do some spot checking to see if it seems to be universally true that the subject/object should be reversed (or the predicate reversed)? If so, then yes, I think let's just edit the dgidb x-bte annotation to reflect that, including a prominently-placed comment to note that in an ideal world, the parser should be updated. (I'd normally also suggest creating an issue to update the parser, but given that the file hasn't been updated since May 2021 (https://dgidb.org/downloads) and the source of the parser isn't clear between https://github.com/ravila4/DGIdb and https://github.com/kevinxin90/dgidb, I think the quick and dirty solution here is warranted...) |
@andrewsu there is an issue for updating the API / parser open biothings/pending.api#40 |
noting current parser issues:
|
Fix made here: NCATS-Tangerine/translator-api-registry@159866b |
@andrewsu the original query should work as intended now...I realized that it's stated as SEM1 <-(predicates)- SmallMolecule. We now get this record back in knowledge_graph.edges
|
Here's the response I'm getting now to the original query (SEM1): |
In NCATSTranslator/testing#151, the query (pasted below) asks for compounds related to
NCBIGene:7979
via several predicates, includingbiolink:decreases_activity_of
, with bortezimib as a positive control. the BioThings API for DGIdb contains this link (see https://biothings.ncats.io/dgidb/query?q=subject.NCBIGene:7979, snippet below) but it is not being returned when posting to either https://api.bte.ncats.io/v1/query or https://api.bte.ncats.io/v1/smartapi/e3edd325c76f2992a111b43a907a4870/query. I assume this has to do with the smartAPI x-bte annotations for DGIdb?Query:
DGIdb snippet:
The text was updated successfully, but these errors were encountered: