Question: GET Ensembl xrefs for multiple queries
gravatar for rubic
5 weeks ago by
United States
rubic200 wrote:


I'm using Ensembl's rest to obtain xrefs. The example shows how to do this.(I'm using the R option) for a single Ensembl gene ID query, but I'd like to obtain xrefs for all the gene IDs in the GTF.

Is there a way to use the httr GET function that in the example with multiple queries? I see this example for doing so for sequence-related data rather than xref, but changing:

ext <- "/sequence/id"


ext <- "/xrefs/id"

doesn't work.

Any idea if this is possible? Or alternatively, how can I obtain xref data (I'm specifically interested in the EntrezGene and RefSeq xrefs for genes and transcripts, respectively.

httr api ensembl • 130 views
ADD COMMENTlink modified 5 weeks ago by Ben_Ensembl1.6k • written 5 weeks ago by rubic200
gravatar for Ben_Ensembl
5 weeks ago by
Ben_Ensembl1.6k wrote:

Hi Rubic,

I suggest using the the files available on the Ensembl FTP site that provide mappings between Ensembl genes/transcripts and translations and specific external references (e.g RefSeq):

Alternatively, you can use MySQL to query the database directly:

Best wishes


ADD COMMENTlink written 5 weeks ago by Ben_Ensembl1.6k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1613 users visited in the last hour