<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi, <o:p></o:p></p><p class=MsoNormal><br>I am wondering what the quickest way to get from an Ensembl gene ID to a corresponding chromosomal band is with the core API?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I can get all the karyotype bands for the slice as follows:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>my $gene = $gene_adaptor->fetch_by_stable_id($geneid);<o:p></o:p></p><p class=MsoNormal>my @{$slicekaryo} = $gene->slice->get_all_KaryotypeBands;<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Arial","sans-serif";mso-fareast-language:EN-GB'><o:p> </o:p></span></p><p class=MsoNormal>But I want to know the most succinct way to retrieve only the band the gene corresponds to.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best, <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Gavin<o:p></o:p></p></div><FONT face=Tahoma size=2>
<P class=MsoNormal><STRONG><B><SPAN style="COLOR: blue; FONT-SIZE: 12pt"><FONT face="Times New Roman">  </FONT></P>
<P class=MsoNormal><FONT color=#000000><SPAN lang=EN-GB style="FONT-FAMILY: 'Times New Roman'">The contents of this message and any attachments to it are confidential and may be legally privileged. If you have received this message in error, you should delete it from your system immediately and advise the sender.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="mso-layout-grid-align: none"><FONT color=#0000ff><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: 'Times New Roman'">Almac Group (UK) Limited, registered no. NI061368.<SPAN style="mso-spacerun: yes">  </SPAN>Almac Sciences Limited, registered no. NI041550.<SPAN style="mso-spacerun: yes">  </SPAN>Almac Discovery Limited, registered no. NI046249. <SPAN style="mso-spacerun: yes"> </SPAN>Almac Pharma Services Limited, registered no. NI045055.<SPAN style="mso-spacerun: yes">  </SPAN>Almac Clinical Services Limited, registered no. NI041905.<SPAN style="mso-spacerun: yes">  </SPAN>Almac Clinical Technologies Limited, registered no. NI061202. <SPAN style="mso-spacerun: yes"> </SPAN>Almac Diagnostics Limited, registered no. NI043067.<SPAN style="mso-spacerun: yes">  </SPAN>All preceding companies are registered in <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:country-region w:st="on">Northern Ireland</st1:country-region> with a registered office address of Almac House, 20 Seagoe Industrial Estate, <st1:place w:st="on"><st1:City w:st="on">Craigavon</st1:City>, <st1:PostalCode w:st="on">BT63 5QD</st1:PostalCode>, <st1:country-region w:st="on">UK</st1:country-region></st1:place>. <SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: 'Times New Roman'">Almac Sciences (<st1:country-region w:st="on">Scotland</st1:country-region>) Limited, registered in <st1:country-region w:st="on"><st1:place w:st="on">Scotland</st1:place></st1:country-region> no. SC154034. <o:p></o:p></SPAN></P>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="mso-layout-grid-align: none"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: 'Times New Roman'">Almac Clinical Services LLC, Almac Clinical Technologies LLC and Almac Diagnostics LLC are <st1:State w:st="on"><st1:place w:st="on">Delaware</st1:place></st1:State> limited liability companies and Almac Group Incorporated is a Delaware Corporation.<SPAN style="mso-spacerun: yes">  </SPAN>More information on the Almac Group can be found on the Almac website: www.almacgroup.com<o:p></o:p></SPAN></P></SPAN></B></STRONG></FONT>
</body></html>