<div>Hi All,</div><div>Sorry to bother you all on this topic but I can really use some advice.</div><div> </div><div>Based on an example I found in the email archive <a href="http://lists.ensembl.org/pipermail/dev/2010-September/005130.html">http://lists.ensembl.org/pipermail/dev/2010-September/005130.html</a></div>
<div>I put together the following code to retrieve the EntrezGene IDs based on Ensembl $gene. However, no result was returned. </div><div>The database I accessed was homo_sapiens_rnaseq_68_37, and logic_name is ovary_rnaseq.</div>
<div>Can anyone provide some pointer on how I can get this data?</div><div> </div><div>foreach my $slice (@$slices) {<br> # fetch genes from rnaseq<br> my $genes = $slice->get_all_Genes($logic_name);<br> foreach my $gene (@$genes) {<br>
foreach my $dbes ($gene->get_all_DBLinks("EntrezGene")){<br> foreach my $dbe (@{$dbes}){<br> print $dbe->primary_id(), "\t";<br> }<br> }</div><div>
}</div><div>}<br><br></div><div> </div><div>Thanks,</div><div>Jerry<br></div>