[ensembl-dev] Fwd: Getting species name string from Ensembl ID?

Anne Parker ap5 at sanger.ac.uk
Tue Sep 6 15:30:13 BST 2011


Guess I should share this with the list :)

Begin forwarded message:

> From: Anne Parker <ap5 at sanger.ac.uk>
> Date: 6 September 2011 15:29:37 GMT+01:00
> To: Giuseppe G. <G.Gallone at sms.ed.ac.uk>
> Subject: Re: [ensembl-dev] Getting species name string from Ensembl ID?
> 
> Hi Giuseppe
> 
> We use this in the web code:
> 
> ($species, $object_type, $db_type) = Bio::EnsEMBL::Registry->get_species_and_object_type($stable_id);
> 
> Hope this helps
> 
> Anne
> 
> On 6 Sep 2011, at 15:10, Giuseppe G. wrote:
> 
>> Hi,
>> 
>> is there a way to query the API with an Ensembl ID, eg ENSG00000140350, and get back the organism name e.g. "Homo sapiens"? It would be nice if this could be done for a list of heterogeneous ids (mouse, fly, yeast, anything recognised by Ensembl, really).
>> 
>> Thanks,
>> G
>> -- 
>> The University of Edinburgh is a charitable body, registered in
>> Scotland, with registration number SC005336.
>> 
>> _______________________________________________
>> Dev mailing list    Dev at ensembl.org
>> List admin (including subscribe/unsubscribe): http://lists.ensembl.org/mailman/listinfo/dev
>> Ensembl Blog: http://www.ensembl.info/
> 
> Anne Parker
> Ensembl Web Production Manager
> http://www.ensembl.org
> 
> 
> 

Anne Parker
Ensembl Web Production Manager
http://www.ensembl.org







More information about the Dev mailing list