[ensembl-dev] getting the entrez gene id from an ensembl record

Andy Jenkinson andy.jenkinson at ebi.ac.uk
Thu Dec 2 09:36:42 GMT 2010


On 2 Dec 2010, at 07:51, Patrick Meidl wrote:

> On Thu, Dec 02 2010, ian Longden <ianl at ebi.ac.uk> wrote:
> 
>> Use $gene->get_all_DBLinks as this gets the external database
>> references on the transcripts and translations of the gene too.
>> 
>> DBEntries only gets the ones attached to the gene directly.
> 
> I'm not sure if there are any stats, but this misunderstanding must rank
> in the top 10 of the most frequently asked questions about the Ensembl
> core API.
> 
> in combination with the fact that these methods are also among the very
> few where there is no naming consistency between the database tables and
> the model object names (xref vs DBEntry), it might be a good idea to
> think about more expressive names for the methods (and possibly the
> models as well). the old names could be deprecated but kept as
> aliases/proxies for backward compatibility.

Also, whether something is attached to a gene or transcript is not always intuitive: as I understand it, it depends on how the mapping was done, not the logical data model relationships. You have to know the internal data model before you can use it. For example, why is an EntrezGene not a gene-related record?

> just my 2c...

And mine :)

> 
>    patrick
> 
> -- 
> Patrick Meidl, Mag.
> Bioinformatician
> 
> Ce-M-M-
> Research Centre for Molecular Medicine
> of the Austrian Academy of Science
> 
> Lazarettgasse 14 / AKH BT 25.3
> Vienna, Austria
> 
> room 02.205
> phone +43 1 40160 70016
> email pmeidl at cemm.oeaw.ac.at
> web http://www.cemm.at/
> 
> 
> _______________________________________________
> Dev mailing list
> Dev at ensembl.org
> http://lists.ensembl.org/mailman/listinfo/dev





More information about the Dev mailing list