[ensembl-dev] Convert ENSEMBL ID to Uniprot ID by REST

Luo Hao hluo at tju.edu.cn
Wed Dec 2 09:57:24 GMT 2015


Dear all,
I have a list of ensemble id and want to get Uniprot ID by ENSEMBL ID with ENSEMBL REST API, and use python ensemblrest module.


But when I used xrefs/id/:id/ apt, I am not clear short name of external_db parameter for uniprot.
For example, the url for uniprot gene name is ok, http://rest.ensembl.org/xrefs/id/ENSG00000135334?content-type=application/json;external_db=uniprot_gn.
But the result of the url of "http://rest.ensembl.org/xrefs/id/ENST00000288602?content-type=application/json;external_db=uniprot;all_levels=1" is None.


---------------------------------------------------------------------
The code of ensenblrest module
from ensemblrest import EnsemblRest
ensRest = EnsemblRest()
ensRest.getXrefsById(id = 'ENSG00000135334', external_db = 'uniprot', all_levels=1)
---------------------------------------------------------------------



Could someone tell me the short names of external_db parameters or send me a more detail instruction for REST APT?


Best regards


Hao Luo
Tianjin University
Tianjin, China
Email: hluo at tju.edu.cn
 





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


More information about the Dev mailing list