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

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.

httr api ensembl • 130 views
ADD COMMENTlink modified 5 weeks ago by Ben_Ensembl1.6k • written 5 weeks ago by rubic200
2
gravatar for Ben_Ensembl
5 weeks ago by
Ben_Ensembl1.6k
EMBL-EBI
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): 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 COMMENTlink written 5 weeks ago by Ben_Ensembl1.6k
Please log in to add an answer.

Help
Access

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