<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:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-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;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello Felix et al,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I used to mirror Ensembl locally and found the best way to “<span style="color:black">retrieve lists of available species and genome builds</span> “ is to take advantage of the fact that that the ensemble employs a consistent naming convention
 for the mysql databases allowing you to determine the species and builds by querying the
<a href="https://dev.mysql.com/doc/refman/5.7/en/schemata-table.html">The INFORMATION_SCHEMA SCHEMATA Table</a>.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For other purposes, the main disadvantage of using direct SQL is that the schema might change and your query is not protected from such change.  Nominally, a published API should protect your source code from such a change.   In practice,
 such changes rarely happen, and limiting yourself to the Perl API you are probably trading one problem for another.  I found the schema to be well documented, quite stable, worth learning, and the most efficient way to access Ensembl, whether my local mirror,
 or remotely (at some point Ensembl introduced US mirrors making such querying even faster).  I don’t know all the pertinent characteristics of your project, but I would probably go the direct access route in most cases.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Good luck,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">~Malcolm<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Dev [mailto:dev-bounces@ensembl.org] <b>On Behalf Of
</b>Felix Krueger<br>
<b>Sent:</b> Wednesday, January 3, 2018 2:25 PM<br>
<b>To:</b> dev@ensembl.org<br>
<b>Subject:</b> [ensembl-dev] Accessing sequence information without using the Perl API<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="color:black">Dear all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">I am looking to use the Ensembl API to retrieve lists of available species and genome builds, as well as potentially large numbers of sequence information for sets of coordinates of various genomes. For this Java-based
 project we cannot use the Perl API, but could potentially use the REST or direct MySQL access. Would anyone be able to give me a pointer to what is likely the best way for me going forward?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Many thanks and a Happy New Year!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Kind regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Felix<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black"> <o:p></o:p></span></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-autospace:none">
<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:#2F5496">Registered Charity No. 1053902.</span></i><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;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:#2F5496">Full conditions at:
</span><a href="http://www.babraham.ac.uk/terms"><span style="font-size:8.0pt;font-family:"Arial",sans-serif;color:#2F5496">www.babraham.ac.uk</span></a><o:p></o:p></p>
</div>
</body>
</html>