[ensembl-dev] Getting primary annotation data via the API

Andy Yates ayates at ebi.ac.uk
Mon May 26 18:25:08 BST 2014


Hi Joshua

If you are referring to our ensembl_id field in the object_xref table then it's any one of a number of fields. Ensembl id refers to the primary key from

- gene
- transcript
- translation
- operon
- operon_transcript

The ensembl_object_type indicates the source of the identifier e.g. An object type of Gene means ensembl_id is equivalent to gene_id in the gene table.

I will urge a lot of caution of using the SQL schema directly. The relations are not the easiest to follow and we can make large changes. However if you want a lot of different types of annotation data linked to the central objects (especially genes and variants) have you taken a look at biomart our data warehouse tool? You can access the tool from http://www.ensembl.org/biomart and a video from http://www.ensembl.org/Multi/Help/Movie?db=core;id=189

Hope this helps you get to the data you need quickly

Best regards

Andy

Sent from my mobile.

> On 26 May 2014, at 14:20, Joshua Orvis <jorvis at gmail.com> wrote:
> 
> Is there any chance you could give an example of an annotation attribute keyed on the ensembl_id?  I looked around the schema docs before I wrote this e-mail, specifically for the gene product name, and couldn't find it.
> 
> JO
> 
> 
>> On Mon, May 26, 2014 at 1:19 AM, Manuel Alfonso López Rourich <alfonso.lopez at cenits.es> wrote:
>> Hi, 
>> 
>> Getting annotations for Ensembl IDs it's easy with a Perl script by using the Ensembl Perl API. Have a look at the database schema  to see what information you can get for your different types of data through this link http://www.ensembl.org/info/docs/api/index.html.
>> 
>> Regards, 
>> 
>>            Manuel Alfonso López Rourich
>>           Técnico de Apoyo
>>             alfonso.lopez at cenits.es
>>               
>> C\ Sola, 1 (Conventual San Francisco)
>> 10200 Trujillo. Extremadura. Spain
>> Tel.  +34 927 659 317  
>> Fax: +34 927 323 237
>> Web: www.cenits.es
>> 
>>     
>> Carretera Nacional 521, km 41.8
>> 10071 Cáceres. Extremadura. Spain
>> Tel.  +34 927 659 317  
>> Fax: +34 927 323 237
>> Web: www.computaex.es
>> 
>> En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, de Protección de Datos de Carácter Personal, conforme art. 5 relativo al derecho de la información en la recogida de datos, se le informa de que los datos de carácter personal de los que disponemos, son incorporados en un fichero automatizado propiedad de la Fundación COMPUTAEX, responsable del tratamiento y destinatario de los datos, con domicilio en Carretera Nacional 521, km 41.8, 10071 Cáceres. Podrá ejercitar los derechos de acceso, rectificación, cancelación y oposición dirigiéndose al responsable del fichero a la dirección indicada. 
>> 
>> 
>> 
>> 2014-05-26 4:15 GMT+02:00 Joshua Orvis <jorvis at gmail.com>:
>>> I have a list of several thousand ENSEMBL IDs, such as ENSMUSG00000039372, and I want to automate a way to get whatever associated annotation attributes from them that I can, such as gene product name, gene symbol, GO terms, etc.  From pages like this I see that I can get at least the product name, labeled as "Description":
>>> 
>>> http://uswest.ensembl.org/Mus_musculus/Gene/Summary?db=core;g=ENSMUSG00000039372
>>> 
>>> For this one, it would be "membrane-associated ring finger (C3HC4) 4".  
>>> 
>>> I tried connecting to the MySQL database but couldn't find where this is stored.  What is the best way to get this sort of information for a lot of IDs?  MySQL, Perl, Python, whatever solution is fine.
>>> 
>>> Thanks!
>>> 
>>> Joshua
>>> 
>>> _______________________________________________
>>> Dev mailing list    Dev at ensembl.org
>>> Posting guidelines and subscribe/unsubscribe info: http://lists.ensembl.org/mailman/listinfo/dev
>>> Ensembl Blog: http://www.ensembl.info/
>> 
>> 
>> _______________________________________________
>> Dev mailing list    Dev at ensembl.org
>> Posting guidelines and subscribe/unsubscribe info: http://lists.ensembl.org/mailman/listinfo/dev
>> Ensembl Blog: http://www.ensembl.info/
> 
> _______________________________________________
> Dev mailing list    Dev at ensembl.org
> Posting guidelines and subscribe/unsubscribe info: http://lists.ensembl.org/mailman/listinfo/dev
> Ensembl Blog: http://www.ensembl.info/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ensembl.org/pipermail/dev_ensembl.org/attachments/20140526/1ac96ddc/attachment.html>


More information about the Dev mailing list