[ensembl-dev] Inconsistencies between Ensembl REST API and Ensembl website

Luebbert, Laura lauraluebbert at caltech.edu
Thu Apr 14 01:14:18 BST 2022


Hi,

I have a question about inconsistencies between the Ensembl website and the Ensembl REST API. I am querying from https://rest.ensembl.org/ using GET sequence/id/:id<https://rest.ensembl.org/documentation/info/sequence_id> without defining any optional arguments, but I often get results that differ from the website.

Here are two examples:

For Ensembl ID ENSTGUG00000006139, the REST API returns:
Description: primary_assembly:bTaeGut1_v1.p:1:107513786:107528106:-1
Sequence: CTCAGCACCGGCCAACATGGCGGCG…

However, the Ensembl website<https://uswest.ensembl.org/Taeniopygia_guttata/Gene/Sequence?db=core;g=ENSTGUG00000006139;r=1:107513786-107528106> finds:

Description: primary_assembly:bTaeGut1_v1.p:1:107513186:107528706:-1
Sequence: TTGAGCATCACAATACAAGAAACACATT…


For Ensembl ID ENSG00000239862, the REST API returns:
Description: chromosome:GRCh38:2:89297264:89297785:-1
Sequence: AGGCTGGTCACACCCCGTGCAGCAGTCAGT…

However, the Ensembl website<https://uswest.ensembl.org/Homo_sapiens/Gene/Sequence?db=core;g=ENSG00000239862;r=2:89297264-89297785;t=ENST00000465170> finds:
Description: chromosome:GRCh38:2:89296664:89298385:-1

Sequence: AAAAATATTCCCCTGGCTGGACGTGGTGGCTCAT…

Both the description and the sequence are inconsistent.
Do the website and the REST API source from different data bases?
Which one is correct?

Thank you!

With best regards,

Laura


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20220414/23d8e8ca/attachment.html>


More information about the Dev mailing list