<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:x="urn:schemas-microsoft-com:office:excel" 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 12 (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";}
h1
{mso-style-priority:9;
mso-style-link:"Heading 1 Char";
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:24.0pt;
font-family:"Times New Roman","serif";}
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;}
span.Heading1Char
{mso-style-name:"Heading 1 Char";
mso-style-priority:9;
mso-style-link:"Heading 1";
font-family:"Times New Roman","serif";
font-weight:bold;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.summary-subhead
{mso-style-name:summary-subhead;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:583879744;
mso-list-template-ids:-658741542;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;
mso-ansi-font-size:10.0pt;
font-family:Symbol;}
@list l0:level2
{mso-level-tab-stop:72.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-tab-stop:108.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level4
{mso-level-tab-stop:144.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-tab-stop:180.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-tab-stop:216.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level7
{mso-level-tab-stop:252.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-tab-stop:288.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-tab-stop:324.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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>Dear developers<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a question regarding the use of the methods “fetch_all_by_display_label” and “fetch_all_by_external_name”<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Consider this snippet of code:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>my $query_gene = “MT-TG”;<o:p></o:p></p><p class=MsoNormal>my @fetched_genes = @{$gene_adaptor->fetch_all_by_display_label($query_gene)};<o:p></o:p></p><p class=MsoNormal>unless (@fetched_genes){<o:p></o:p></p><p class=MsoNormal style='text-indent:36.0pt'>@fetched_genes = @{ $gene_adaptor->fetch_all_by_external_name($query_gene) };<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal>foreach my $a (@fetched_genes) {<o:p></o:p></p><p class=MsoNormal> [do something]...<o:p></o:p></p><p class=MsoNormal>}<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Although, MT-TG is the approved HGNC symbol for this gene ( <a href="http://www.genenames.org/data/hgnc_data.php?hgnc_id=7486">http://www.genenames.org/data/hgnc_data.php?hgnc_id=7486</a> ), I am unable to retrieve data for it from the ensemble database.<o:p></o:p></p><h1 style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.85pt;margin-left:0cm;background:white'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";font-weight:normal'>In ensembl this gene is called J01415.16 with the ENSGID: ENSG00000210164 (<a href="http://www.ensembl.org/Homo_sapiens/Gene/Summary?g=ENSG00000210164;r=MT:9991-10058;t=ENST00000387429">http://www.ensembl.org/Homo_sapiens/Gene/Summary?g=ENSG00000210164;r=MT:9991-10058;t=ENST00000387429</a> )<o:p></o:p></span></h1><h1 style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:10.85pt;margin-left:0cm;background:white'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";font-weight:normal'>Can you tell me what I am doing wrong and how to change my code so I can retrieve is particular gene of interest?<o:p></o:p></span></h1><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Best regards<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Duarte Molha</span><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>