GET Ensembl xrefs for multiple queries
1
0
Entering edit mode
4.3 years ago
rubic ▴ 270

Hi,

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"

with:

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.

ensembl httr api • 1.3k views
ADD COMMENT
2
Entering edit mode
4.3 years ago
Ben Moore ★ 2.4k

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): http://ftp.ensembl.org/pub/release-100/tsv/homo_sapiens/

Alternatively, you can use MySQL to query the database directly: https://www.ensembl.org/info/docs/api/core/core_schema.html

Best wishes

Ben

ADD COMMENT

Login before adding your answer.

Traffic: 2344 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