-
Notifications
You must be signed in to change notification settings - Fork 13
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
Data source: RaMP #69
Comments
From https://rampdb.nih.gov/about, I'm wondering if we already get many/most of these resources from the primary source? |
@colleenXu pointed out that RaMP has an API. Given Translator interest in this data source, let's look at generating a SmartAPI annotation... |
With earlier post in that issue biothings/biothings_explorer#372 (comment) |
InfoRaMP's github repo has two SmartAPI yamls; it's not clear which one we'd want to edit.
Also there's an older (alpha-version??) version of RaMP that was registered: http://smart-api.info/registry?q=3bfd9cecbcf799f800539ce24df1d754. Perhaps that registration needs removing / adjusting? Other endpointsThere are also endpoints that look interesting, but we can't annotate them because they don't use IDs as inputs or as outputs
|
Issues writing x-bte annotationThere are endpoints that meet our criteria (relationships between entities, entities have IDs), but we encounter issues parsing their responses. I think these issues can be addressed with post-query processing, perhaps with the api-response-transform module (custom handler) or JQ (which hasn't been incorporated into BTE yet... )
|
I have the work I've done so far in this fork: https://github.com/colleenXu/RaMP-Client/blob/x-bte-annotation/libs/features/ramp/ramp-api/src/assets/data/ramp_openapi_with_extensions.yml I annotated the
walking through the batch-query processing issue
BTE query
BTE correctly sets up the sub-query; these are the console logs I see
That sub-query will return pathways linked to both IDs. When I query RaMP directly for each ID, I can see that there are 12 pathways linked to Creatine ( Example of objects in the response, one linked to creatine and the other to glutamate
But BTE's response has 234 edges (not 243 = 12 to creatine + 231 to glutamate) and all edges say their input ID is creatine ( I think there are fewer edges than expected because some pathways were linked to both chemicals, but after the records for glutamate were incorrectly assigned to creatine, those records were merged (notice how the portion of the console logs:
|
My fork's yaml has been registered https://smart-api.info/registry?q=ac9c2ad11c5c442a1a1271223468ced1, so RaMP is accessible through BTE using an api-specific endpoint. For now, sending POST-queries to the dev/ci instances of BTE is preferred (for the node label support). To query specifically RaMP through dev-BTE, POST to this url: Example query for Chemical -> PathwayIn the request-body:
The response will have 242 results. Some nodes will have some incorrect curies (will have the REACT prefix but the ID is actually KEGG.PATHWAY or WIKIPATHWAYS) Correct prefix (this is a REACT ID) Incorrect prefix (this is actually a WIKIPATHWAYS ID but has the wrong prefix) Example query for Gene -> PathwayIn the request-body:
The response will have 114 results. Some nodes will have some incorrect curies (will have the REACT prefix but the ID is actually KEGG.PATHWAY or WIKIPATHWAYS) like Notes:
|
Note that I've updated this post because I figured out how to get BTE to generate batch-queries and I was able to test how BTE processed the responses (the yaml was updated colleenXu/RaMP-Client@456c022) |
More info below from the RaMP developers:
|
Closing in favor of biothings/biothings_explorer#705, because (1) we seem to have decided to NOT make a pending BioThings API from this data and (2) it's easier to track this effort using the BioThings Explorer repo's tags. However, the info in this issue are the basis of that issue. |
name: RaMP (Relational database of Metabolomic Pathways)
url: https://rampdb.nih.gov/
download:
https://rampdb.nih.gov/about
https://figshare.com/articles/dataset/RaMP_Database_MySQL_Dump_v2_0_7_20220428/19674540
license: GPL v2
The text was updated successfully, but these errors were encountered: