<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Dear Daniel,<br>
    <br>
    Thank you for reporting this, it is definitely not expected
    behaviour.<br>
    We will investigate the problem and let you know when a fix is
    available.<br>
    <br>
    <br>
    Kind regards,<br>
    Magali<br>
    <br>
    <div class="moz-cite-prefix">On 16/06/2017 13:50, Daniel Suveges
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:33354162-EB01-41C9-9520-4735BC0DA471@sanger.ac.uk">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Title" content="">
      <meta name="Keywords" content="">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Courier New";
        panose-1:2 7 3 9 2 2 5 2 4 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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:Calibri;
        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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:Courier;
        mso-fareast-language:EN-US;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Courier;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:Calibri;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:Calibri;
        color:windowtext;}
span.msoIns
        {mso-style-type:export-only;
        mso-style-name:"";
        text-decoration:underline;
        color:teal;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:595.0pt 842.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt">Ok, I have
            to adjust my question: apparently sometimes the query
            returns the expected coordinates, but mostly the return is
            empty. I hope this helps.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">(On the
            attached screenshot you can see that the response to the
            same query sometimes empty, sometimes not.)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">Best,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt">Daniel<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
        <div style="border:none;border-top:solid #B5C4DF
          1.0pt;padding:3.0pt 0cm 0cm 0cm">
          <p class="MsoNormal"><b><span style="color:black">From: </span></b><span
              style="color:black">Dev <a class="moz-txt-link-rfc2396E" href="mailto:dev-bounces@ensembl.org"><dev-bounces@ensembl.org></a> on
              behalf of Daniel Suveges <a class="moz-txt-link-rfc2396E" href="mailto:ds26@sanger.ac.uk"><ds26@sanger.ac.uk></a><br>
              <b>Reply-To: </b>Ensembl developers list
              <a class="moz-txt-link-rfc2396E" href="mailto:dev@ensembl.org"><dev@ensembl.org></a><br>
              <b>Date: </b>Friday, 16 June 2017 at 13:16<br>
              <b>To: </b>Ensembl developers list
              <a class="moz-txt-link-rfc2396E" href="mailto:dev@ensembl.org"><dev@ensembl.org></a><br>
              <b>Subject: </b>[ensembl-dev] REST - map endpoint</span><span
              style="color:black;mso-fareast-language:EN-GB"><o:p></o:p></span></p>
        </div>
        <div>
          <p class="MsoNormal"><span style="font-family:"Times New
              Roman""><o:p> </o:p></span></p>
        </div>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Hi
            Guys,</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">I’m
            trying to use the map endpoint of the REST service (to map
            between the human GRCh37 and 38 build) and I’m encountering
            some unexpected behavior:</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Let’s
            take the variant rs11553699 for example:
          </span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">it’s
            GRCh37 coordinates:
          </span><span style="font-size:11.0pt">12:122216910</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">it’s
            GRCh38 coordinates:
          </span><span style="font-size:11.0pt">12:121779004</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">If
            I want to map it’s GRCh37 coordinates to the newer build it
            works:</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><a
href="http://rest.ensembl.org/map/human/GRCh37/12:122216910..122216910:1/GRCh38?content-type=application/json"
              moz-do-not-send="true">http://rest.ensembl.org/map/human/GRCh37/12:122216910..122216910:1/GRCh38?content-type=application/json</a></span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">But
            when I’m trying to do the same in the opposite direction,
            the ‘mappings’ array is empty in the returned json:</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"><a
href="http://rest.ensembl.org/map/human/GRCh38/12:121779004..121779004:1/GRCh37?content-type=application/json"
              moz-do-not-send="true">http://rest.ensembl.org/map/human/GRCh38/12:121779004..121779004:1/GRCh37?content-type=application/json</a></span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">For
            other GRCh38 coordinates mapping works, this position has
            coordinates in both build, so it is not clear to me why the
            second query seemingly fails.</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Thank
            you very much for your help!</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US"> </span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Best,</span><o:p></o:p></p>
        <p class="MsoNormal"><span style="font-size:11.0pt" lang="EN-US">Daniel</span><o:p></o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Dev mailing list    <a class="moz-txt-link-abbreviated" href="mailto:Dev@ensembl.org">Dev@ensembl.org</a>
Posting guidelines and subscribe/unsubscribe info: <a class="moz-txt-link-freetext" href="http://lists.ensembl.org/mailman/listinfo/dev">http://lists.ensembl.org/mailman/listinfo/dev</a>
Ensembl Blog: <a class="moz-txt-link-freetext" href="http://www.ensembl.info/">http://www.ensembl.info/</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>