Sending multiple REST commands over the same URL connection
3
0
Entering edit mode
8.2 years ago
yaronore • 0

Hello,

I am using Ensemble REST API to retrieve genomic coordinates based on positions in CDNA transcripts. The retrieval works, but it is very slow since I am doing it for thousands and millions of positions.

Is there an easy way to speed it up? can i send multiple requests over the same REST command or URL connection?

I am using JAVA and following the example given in Ensemble REST API documentation.

Thanks, Yaron

REST API ensembl • 4.0k views
ADD COMMENT
0
Entering edit mode
8.2 years ago
sndrtj ▴ 180

Generally, you can't, unless the specific API endpoint provides a method for such bulk requests. For some endpoints, the Ensembl REST API provides a POST method that allows such bulk queries. However, that's actually not very RESTful, since POST requests should usually result in the creation of some entity.

ADD COMMENT
0
Entering edit mode

Thanks for the reply.

So, is there another efficient way to convert cDNA positions to genomic coordinates?

ADD REPLY
0
Entering edit mode
8.2 years ago

Instead of using remote REST requests, you might look at tools like BLAT or similar to do alignments in bulk on your own system. I think you can do multiple requests to a local BLAT server, using UCSC's server as a test. If that works, you can set up a local server and run the searches you need with fewer restrictions.

ADD COMMENT
0
Entering edit mode
8.2 years ago

The best solution in my view would be to use a local copy of the EnsEMBL MySQL database and query it with the perl API.

ADD COMMENT

Login before adding your answer.

Traffic: 1400 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6