This is a test version of Biostars. For the public version, visit https://www.biostars.org.
STRING's REST-API doesn't return the same info with the Web interface

Hi,

I want to create a script that will check if specific pairs of genes have an interaction. So let's say for example that we want to check if these genes/proteins ACTA1, TNNC2 interact each other.

Through STRING's WEB interface, and by choosing multiple proteins on the left menu, the results show that these two proteins might interact.

Since that the web interface is not accessible through a script, I tried to use the REST API to retrieve this info but without any success. REST-API always returns a NULL table when trying

http://string-db.org/api/tsv/interactionsList?species=9606&identifiers=ACTA1%TNNC2

OR

http://string-db.org/api/tsv/interactorsList?species=9606&identifiers=ACTA1%TNNC2

Am I doing something wrong?

stringdb rest-api

1 answer

The STRING API works with STRING identifiers, e.g.:

http://string-db.org/api/tsv/interactionsList?identifiers=9606.ENSP00000304895%0D9606.ENSP00000303830

And is there any way to automatically retrieve these identifiers for a list of gene/protein names?

I realized that some genes/proteins have more than one string identifier. Should check for every one of them if there is a result of interaction with the other identifier or checking one identifier is enough?

You have a list of genes and a gene can produce more than one protein. The question is what level of resolution do you need: gene level or protein isoform level ? If all you need is check if a given gene pair interacts via any of their proteins then you can stop as soon as you've found an interacting protein pair.

Thank you very much Jean.

Log in to answer this question.