<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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Sorry, I forgot that “load_registry()” was a subroutine in my own code.  The full code is:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal">my $version = software_version();<o:p></o:p></p>
<p class="MsoNormal">my $registry = load_registry();<o:p></o:p></p>
<p class="MsoNormal">my $GO_adapter =   $registry->get_adaptor( 'Multi', 'Ontology', 'GOTerm' );<o:p></o:p></p>
<p class="MsoNormal">die "Couldn't get GO adaptor from $version" unless ($GO_adapter);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">sub load_registry {<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  my $registry = 'Bio::EnsEMBL::Registry';<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  $registry->load_registry_from_db(<o:p></o:p></p>
<p class="MsoNormal">                                 -host => 'ensembldb.ensembl.org',<o:p></o:p></p>
<p class="MsoNormal">                                 -user => 'anonymous'<o:p></o:p></p>
<p class="MsoNormal">                                );<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">  return $registry;<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">}<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">I had a similar problem with ensemblgenomes before (should be in the list archives) and was given a work round by directly connecting to a different database to get the GO DBA, but hopefully this can be fixed
 in the main registry.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Simon. </span><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> Simon Andrews
<br>
<b>Sent:</b> 27 September 2018 09:07<br>
<b>To:</b> dev@ensembl.org<br>
<b>Subject:</b> Can't get GO adapter from latest registry<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’ve just updated our code to the latest API release and one of our processing scripts is now failing.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">You can reproduce this with:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">my $version = software_version();<o:p></o:p></p>
<p class="MsoNormal">my $registry = load_registry();<o:p></o:p></p>
<p class="MsoNormal">my $GO_adapter =   $registry->get_adaptor( 'Multi', 'Ontology', 'GOTerm' );<o:p></o:p></p>
<p class="MsoNormal">die "Couldn't get GO adaptor from $version" unless ($GO_adapter);<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">..where I get:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Couldn't get GO adaptor from 93<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Can this be fixed at the Ensembl end, or is there a more immediate work round I can apply locally?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Simon.<o:p></o:p></p>
</div>
<p class="MsoNormal" style="text-autospace:none"><o:p></o:p><o:p></o:p><span style="font-size:8.0pt;
font-family:"Arial","sans-serif";color:#1F497D">The Babraham Institute, Babraham Research Campus, Cambridge CB22 3AT
</span><i><span style="font-size:
8.0pt;font-family:"Arial","sans-serif";color:#365F91;mso-themecolor:accent1;
mso-themeshade:191">Registered Charity No. 1053902.</span></i><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:8.0pt;
font-family:"Arial","sans-serif";color:#1F497D">The information transmitted in this email is directed only to the addressee. If you received this in error, please contact the sender
 and delete this email from your system. The contents of this e-mail are the views of the sender and do not necessarily represent the views of the Babraham Institute.
</span><span style="font-size:8.0pt;
font-family:"Arial","sans-serif";color:#365F91;mso-themecolor:accent1;
mso-themeshade:191">Full conditions at:
</span><a href="http://www.babraham.ac.uk/terms"><span style="font-size:8.0pt;font-family:"Arial","sans-serif";
color:#365F91;mso-themecolor:accent1;mso-themeshade:191">www.babraham.ac.uk</span></a><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#365F91;
mso-themecolor:accent1;mso-themeshade:191"><o:p></o:p></span></p>
</body>
</html>