<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=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@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;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.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-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.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><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dan and Guy, thanks for your answers and suggestions.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>>You can resolve to ENA subsequences in HTML using <a href="http://www.ebi.ac.uk/ena/data/view/GG666297&range=18707-20086">http://www.ebi.ac.uk/ena/data/view/GG666297&range=18707-20086</a><br><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>is there any way to rather end up at this [equivalent] URL: http://www.ebi.ac.uk/ena/data/view/ACGC01000047<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Dmitry.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> dev-bounces@ensembl.org [mailto:dev-bounces@ensembl.org] <b>On Behalf Of </b>Guy Cochrane EBI<br><b>Sent:</b> Friday, April 22, 2016 12:37<br><b>To:</b> Ensembl developers list<br><b>Cc:</b> Nicole Silvester<br><b>Subject:</b> Re: [ensembl-dev] Conversion of ENA xref ids into working URLs<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal>On 22 Apr 2016, at 10:27, Dan Staines <<a href="mailto:dstaines@ebi.ac.uk">dstaines@ebi.ac.uk</a>> wrote:<o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Hi Dimitry,<br><br><br><o:p></o:p></p><p class=MsoNormal>KE159678.1:CDS:7103..8458<br><br>GG666297.1:CDS:complement(18707..20086)<o:p></o:p></p><p class=MsoNormal><br>These are provided as tracking IDs to indicate the piece of INSDC annotation from which the Ensembl object was loaded. INSDC do not have feature level identifiers, so on the advice of ENA these strings are constructed to provide at least some way to find the original piece of data from which the Ensembl object was constructed.<br><br>These identifiers are of the form accession:feature_type:location e.g.<br>GG666297.1:CDS:complement(18707..20086)<br>which refers to this feature:<br>FT   CDS             complement(18707..20086)<br>FT                   /codon_start=1<br>FT                   /transl_table=11<br>FT                   /locus_tag="HMPREF0077_0851"<br>FT                   /product="ATPase/histidine kinase/DNA gyrase B/HSP90 domain<br>...<br>FT                   /protein_id="EEI83065.1"<br>...<br>from this expanded CON (i.e an entry composed of multiple sub-entries):<br><a href="http://www.ebi.ac.uk/ena/data/view/GG666297&display=text&expanded=true">http://www.ebi.ac.uk/ena/data/view/GG666297&display=text&expanded=true</a><br><br>I'm not aware of any way to resolve these automatically in ENA - there is a REST service which can return entire entries in text or XML but it would return the whole record, not just the feature.<o:p></o:p></p></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You can resolve to ENA subsequences in HTML using <a href="http://www.ebi.ac.uk/ena/data/view/GG666297&range=18707-20086">http://www.ebi.ac.uk/ena/data/view/GG666297&range=18707-20086</a> (see <a href="http://www.ebi.ac.uk/ena/browse/data-retrieval-rest#sequence_region_html">http://www.ebi.ac.uk/ena/browse/data-retrieval-rest#sequence_region_html</a>) Other formats available here. This doesn’t consider complement, rather it simply finds the sub-sequence and spanned features will be shown in complement if this is where they lie.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>If you're only interested in CDS features, you can also use the protein_id identifier (in this case EEI83065.1) which is an xref on the Ensembl transcript to link to ENA e.g.<br><a href="http://www.ebi.ac.uk/ena/data/view/EEI83065.1">http://www.ebi.ac.uk/ena/data/view/EEI83065.1</a><o:p></o:p></p></div></blockquote><div><p class=MsoNormal>Indeed - protein IDs can be used for this. For non-coding features, an addressing system is used that combines accession version, feature type and locations. E.g. <a href="http://www.ebi.ac.uk/ena/data/view/Non-coding:KT289404.1:11505..11592:tRNA">http://www.ebi.ac.uk/ena/data/view/Non-coding:KT289404.1:11505..11592:tRNA</a>. Note that the ‘domain’ of data is also used here (’Non-coding’) and can be considered part of the ID for the feature. Thinking of it this way allows you to consider the generic pattern to be <a href="http://www.ebi.ac.uk/ena/data/view/%3cENA_identifier%3e">http://www.ebi.ac.uk/ena/data/view/<ENA_identifier></a>.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You could also see these non-coding features by coordinates only (<a href="http://www.ebi.ac.uk/ena/data/view/KT289404&range=11505-11592">http://www.ebi.ac.uk/ena/data/view/KT289404&range=11505-11592</a>) as in the CDS example above.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>So - in all cases a little syntactic transformation to build these links, at least from your examples it seems that the information is there.<o:p></o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'>Regarding linking to ENA, my best advice is for you to contact ENA directly at <a href="mailto:datasubs@ebi.ac.uk">datasubs@ebi.ac.uk</a>.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Yes - broader documentation at <a href="http://www.ebi.ac.uk/ena/browse/data-retrieval-rest">http://www.ebi.ac.uk/ena/browse/data-retrieval-rest</a> and please do contact us at <a href="mailto:datasubs@ebi.ac.uk">datasubs@ebi.ac.uk</a>.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Guy.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal><br><br><o:p></o:p></p><div><p class=MsoNormal>Sorry I can't be of more help.<br><br>Dan.<br><br>-- <br>Dan Staines, PhD<br>Genomics Technology Infrastructure Coordinator<br>EMBL-EBI, Wellcome Trust Genome Campus<br>Cambridge CB10 1SD, UK<br>Tel: +44-(0)1223-492507<br><br>_______________________________________________<br>Dev mailing list    <a href="mailto:Dev@ensembl.org">Dev@ensembl.org</a><br>Posting guidelines and subscribe/unsubscribe info: <a href="http://lists.ensembl.org/mailman/listinfo/dev">http://lists.ensembl.org/mailman/listinfo/dev</a><br>Ensembl Blog: <a href="http://www.ensembl.info/">http://www.ensembl.info/</a><o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>------------------------------------------------------------------------------------<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>Guy Cochrane, PhD<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>European Nucleotide Archive Team Leader.<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>European Bioinformatics Institute (EMBL-EBI)<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>European Molecular Biology Laboratory<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>Wellcome Trust Genome Campus<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>Hinxton<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>Cambridge CB10 1SD<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>United Kingdom<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'><o:p> </o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'>Tel: +44 1223 494444. Fax: +44 1223 494472<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'><o:p> </o:p></span></p></div><p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:black'><br><a href="mailto:datasubs@ebi.ac.uk">datasubs@ebi.ac.uk</a> (data submissions and general enquiries), <br><br><a href="http://www.ebi.ac.uk/ena">http://www.ebi.ac.uk/ena</a> (submissions, updates, services, info)<br>------------------------------------------------------------------------------------<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p></div></body></html>