Using EBI protein API with uniprot isoforms
1
0
Entering edit mode
4.8 years ago
vkkodali_ncbi ★ 3.8k

I am trying to use the EBI Proteins REST API described here. Specifically, I would like to use the coordinates API to fetch genomic coordinates of a UniProt accession. While using an accession with range such as (Q93077:47-72) works, specifying the UniProt isoform, P84550-3:474-484 for example, does not. Does anyone know if there is a way to query the API with a specific UniProt isoform?

$ curl -X GET --header 'Accept:application/json' 'https://www.ebi.ac.uk/proteins/api/coordinates/location/Q93077:47-72'
{"locations":[{"accession":"Q93077","taxid":9606,"chromosome":"6","ensemblTranslationId":"ENSP00000321389","proteinStart":47,"geneStart":26138280,"proteinEnd":72,"geneEnd":26138357},{"accession":"Q93077","taxid":9606,"chromosome":"6","ensemblTranslationId":"ENSP00000367022","proteinStart":47,"geneStart":26138280,"proteinEnd":72,"geneEnd":26138357},{"accession":"Q93077","taxid":9606,"chromosome":"6","ensemblTranslationId":"ENSP00000473534","proteinStart":47,"geneStart":26138222,"proteinEnd":72,"geneEnd":26138299}]}

$ curl -X GET --header 'Accept:application/json' 'https://www.ebi.ac.uk/proteins/api/coordinates/location/P84550-3:474-484'
{"requestedURL":"https://www.ebi.ac.uk/proteins/api/coordinates/location/P84550-3:474-484","errorMessage":["Can not find coordinates for accession: {P84550-3}"]}
ebi uniprot swiss-prot • 1.0k views
ADD COMMENT
0
Entering edit mode
4.8 years ago
JC 13k

I believe that API only features the main protein, so https://www.uniprot.org/uniprot/P84550-3 became:

$ curl -X GET --header 'Accept:application/json' 'https://www.ebi.ac.uk/proteins/api/coordinates/location/P84550:474-484'
{"locations":[{"accession":"P84550","taxid":9606,"chromosome":"15","ensemblTranslationId":"ENSP00000369374","proteinStart":474,"geneStart":67827248,"proteinEnd":484,"geneEnd":67827280}]}
ADD COMMENT

Login before adding your answer.

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