Finding shortest path between any two genes/proteins

21 views
Skip to first unread message

Abel Jansma

unread,
Nov 5, 2021, 6:13:42 AM11/5/21
to pathway-commons-help
I am trying to find the shortest path between any two genes/proteins by querying the API, but am confused about the PATHSFROMTO field. What exactly does this return? For example: FOXP1 and FOXP2 have a binding reaction (https://apps.pathwaycommons.org/interactions?source=FOXP1%2CFOXP2), but the following query return an empty string:


Should I be using another field to find the shortest path between two genes/proteins? The GRAPH field is described in the docs as being able to find "the shortest path between two proteins" (https://www.pathwaycommons.org/pc2/#graph

Thanks!

Özgün Babur

unread,
Nov 5, 2021, 10:15:18 AM11/5/21
to pathway-co...@googlegroups.com
Hi Abel, 

The paths-from-to query is the directed version of paths-between query. It takes a source set and a target set, and it traverses directed edges. The "interacts-with" edge is undirected, hence it is not traversed by this query. 

Ozgun

--
You received this message because you are subscribed to the Google Groups "pathway-commons-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pathway-commons-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pathway-commons-help/fbebc422-325e-46df-b27d-aed910342b91n%40googlegroups.com.

Abel Jansma

unread,
Nov 5, 2021, 10:18:47 AM11/5/21
to pathway-commons-help
Thanks for your response, Ozgun, that makes sense. Still, the query https://www.pathwaycommons.org/pc2/graph?source=FOXP1&target=FOXP2&kind=PATHSBETWEEN&format=SIF also returns an empty string. What would be the correct query to find the shortest path between these two proteins?

Abel

Özgün Babur

unread,
Nov 5, 2021, 10:48:30 AM11/5/21
to pathway-co...@googlegroups.com
Oh, this is because you used the wrong API. The API at https://www.pathwaycommons.org/pc2/graph works on BioPAX graphs, then the results are converted to SIF format. The querying framework here is specifically designed to traverse over directed relationships in BioPAX. It does not traverse the MolecularInteraction objects which encode the most protein-protein interactions.

It may make more sense for you to use the API at https://www.pathwaycommons.org/sifgraph/v1 because that skips BioPAX and directly searches the SIF graphs. The below query brings the interaction that you are looking for.

https://www.pathwaycommons.org/sifgraph/v1/pathsbetween?directed=false&limit=1&source=FOXP1&source=FOXP2&pattern=INTERACTS_WITH


Abel Jansma

unread,
Nov 5, 2021, 11:20:55 AM11/5/21
to pathway-commons-help

Ahhh ok right, thanks! I'll have a look at that one. Thanks for your help!

Abel
Reply all
Reply to author
Forward
0 new messages