[ensembl-dev] resolving gene identifiers via REST API v5
Mihai Glonț
mglont at ebi.ac.uk
Fri May 19 19:30:47 BST 2017
Dear Ensembl developers,
I am trying to programmatically retrieve basic information (gene name &
description) about a set of Ensembl genes.
The tool works for most cases, such as ENSMUSG00000021620.4[1], but for
accessions like ENSMMUG00000022535.2[2] the request returns status code
400 and the error message is
"No object found for ID ENSMMUG00000022535.2"
The client is written in Groovy and Java, but I saw the API behaving in
the same way for curl as well, so there's something wrong with my
general approach, rather than a programming bug.
I noticed that I can work around the problem by stripping the version
suffix, but I would really like to avoid this, if possible, since the
dataset is generated externally.
I'd be grateful to hear if there is a fix for this issue.
Best wishes,
Mihai.
[1] curl "http://rest.ensembl.org/lookup/id/ENSMUSG00000021620.4" -H
"Accept: application/json"
[2] curl "http://rest.ensembl.org/lookup/id/ENSMMUG00000022535.2" -H
"Accept: application/json"
More information about the Dev
mailing list