<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi All,<br><br>I want to map Uniprot IDs to Ensemble Gene IDs. I know how to do it when I know the species where the gene comes from and I do it with this code.<br><br>###########################<br>use strict;<br>use Bio::EnsEMBL::Registry;<br><br>my $reg = "Bio::EnsEMBL::Registry";<br><br>$reg->load_registry_from_db(<br>    -host => 'ensembldb.ensembl.org',<br>    -user => 'anonymous'<br>);<br><br>my $UniprotID='P04637';<br><br>my $ga = $reg->get_adaptor('Homo sapiens', 'core', 'Gene');<br>my $ma = $reg->get_adaptor('Multi', 'compara', 'Member');<br><br>foreach my $gene (@{$ga->fetch_all_by_external_name($UniprotID)}) {<br>my $member = $ma->fetch_by_source_stable_id('ENSEMBLGENE', $gene->stable_id); <br><br>next unless (defined $member);<br><br>print $member->stable_id(), "\n";<br>}<br><br>#####################################<br><br>Now well, I have a list of Uniprot IDs from several species and I'd like to know if there is any way to not tell the adaptor what specie the gene is from in the line<br><br>"my $ga = $reg->get_adaptor('Homo sapiens', 'core', 'Gene');"<br><br>Is there any way to do it generic?<br><br>Thanks in advance<br><br>Gonzalo<br>                                      </div></body>
</html>