ExposuresProvider / cam-kp-api

Web service API for the NCATS Data Translator CAM-KP
MIT License
3 stars 2 forks source link

Use case: use CAM-KP to "explode" an edge #537

Open gaurav opened 2 years ago

gaurav commented 2 years ago

Given an edge, can CAM-KP provide a graph that replaces that edge with a series of edges and nodes that describes how that edge is defined in one or more pathways.

Benefits:

gaurav commented 2 years ago

Chris things "[X] upregulates/downregulates [geneX]" might be a templated query later this year, so that's what we should be focusing on.

karafecho commented 2 years ago

Here are two different ARAX queries that you can pull gene-chemical edges or just genes from, as described on slide 8 in this deck:

https://arax.ncats.io/?r=44679 https://arax.ncats.io/?r=52713

gaurav commented 2 years ago

Unless I'm misunderstanding how TRAPI works (which is very, very likely), there's no way to return what we need to via TRAPI to meet this need, since what we effectively want to ask is, "Is there any connection between [X] and [Y] in any CAM, no matter how many hops".

karafecho commented 2 years ago

I'm not sure I'm fully understanding your comment, but essentially, I'm seeking a way to invoke CAMs to better explain the chemical - gene edges in the workflow below. For instance, the current predicate linking biolink:Gene to biolink:ChemicalEntity (or biolink:Drug, Small Molecule) in Paths A and B is biolink:affects, which isn't terribly informative. Can we construct a TRAPI query that targets CAM and returns more informative information, e.g., biolink:ChemicalEntity - biolink:up/downregulates - biolink:Gene? The tissue/cell specificity is not an issue in Path A, but in Path B, you could use the output from the first hop to biolink:GrossAnatomicalStructure to anchor the results, if that makes sense.

image

karafecho commented 2 years ago

Gaurav, is this issue worth a short meeting to discuss?

gaurav commented 1 year ago

Hi Kara! I think it's okay to wait until we get the other use case (#536) sorted out before we need to dive deeply into this. However, if you'd like to meet to go over what I've been working on, that would be fine! I'm hoping to have the lookup endpoint (#572) done and backend issues (https://github.com/ExposuresProvider/cam-pipeline/issues/80) fixed by early next week, so sometime next week might be a good time to meeting. Let me know!

karafecho commented 1 year ago

I agree that this can wait, now that I better understand the plan. Sure, let's meet after the lookup endpoint is active. Thanks!