[ensembl-dev] Ensembl REST API | link. diseq. using genomic range with other species?

Ramiro Magno ramiro.magno at gmail.com
Thu Jul 18 12:04:42 BST 2019


Hi

What should I expect when using this endpoint with other species than human:

http://rest.ensembl.org/documentation/info/ld_region_get

The returned errors do not seem to be consistent. Some expose internal
errors even. I was expecting some error more specifically related to the
invalid parameter.

Here's some examples:

*Example 1*

* Endpoint:
https://rest.ensembl.org/ld/gorilla/rs1042779/1000GENOMES:phase_3:CEU?window_size=50;d_prime=0;r2=0
* Status code:    400
* Error message: "Can't call method "max_snp_distance" on an undefined
value at
/nfs/public/release/ensweb/live/rest/www_97/ensembl-rest/lib/EnsEMBL/REST/Model/LDFeatureContainer.pm
line 50.

*Example 2*

* Endpoint:
https://rest.ensembl.org/ld/gorilla/region/1:1..10000/1000GENOMES:phase_3:CEU?d_prime=0;r2=0
* Status code:    400
* Error message: "Can't call method "db" on an undefined value at
/nfs/public/release/ensweb/live/rest/www_97/ensembl-rest/lib/EnsEMBL/REST/Model/LDFeatureContainer.pm
line 92.

*Example 3*

* Endpoint:
https://rest.ensembl.org/ld/fly/region/1:1..10000/1000GENOMES:phase_3:CEU?d_prime=0;r2=0
* Status code: 500
* Error message:  Error: lexical error: invalid char in json text.
                                       <!DOCTYPE html>    <html lang="
                     (right here) ------^

Cheers,
RM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20190718/6c867fe4/attachment.html>


More information about the Dev mailing list