<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Dear Michael,<br>
      <br>
      Which version of VEP 93 have you installed ?<br>
      We put a fix about this NANS gene issue in the version 93.4
      (<a class="moz-txt-link-freetext" href="https://github.com/Ensembl/ensembl-vep/releases/tag/release%2F93.4">https://github.com/Ensembl/ensembl-vep/releases/tag/release%2F93.4</a>).<br>
      <br>
    </p>
    <p>For the transcript IDs which are an ID, we will have a look at
      try to force it as a string.<br>
      <br>
      Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">Laurent</pre>
    <div class="moz-cite-prefix">On 18/12/2018 23:46, Michael Yourshaw
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANcs_J++-eOf=YZCw5=Hkqx8dEOh=f8-GLwjyDk1e10XdwPnXQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">I'm using VEP version 93, locally
                        installed with the cache.</div>
                      <div dir="ltr"><br>
                      </div>
                      <div>This VCF input in the NANS gene:</div>
                      <div dir="ltr">
                        <div>        chr9 98056788 rs3199064 T G ...</div>
                        <div><br>
                        </div>
                        <div>yields the VEP json output:</div>
                        <div>        ...,"gene_symbol":NaN,...</div>
                        <div><br>
                        </div>
                        <div>and fails a python script, which expects a
                          string, because an unquoted NaN is treated as
                          a float and casts to the string "nan".</div>
                        <div><br>
                        </div>
                        <div>A similar problem can happen when the
                          transcript_id looks like a number:</div>
                        <div>        chr9 98056788 rs3199064 T G<br>
                        </div>
                        <div>yields</div>
                        <div>        ...,"transcript_id":3494,...<br>
                          <div>In this latter case,
                            casting transcript_id as a string works, but
                            the need to cast is a trap for the unwary.</div>
                          <div><br>
                          </div>
                          <div>The json writer seems to be too clever
                            for its own good, as values that don't look
                            like numbers, such as "ENST00000495319" and
                            "IGHA2" have the expected double-quoting in
                            the json.</div>
                          <div><br>
                          </div>
                          <div>Indeed it seems odd that NANS becomes
                            float NaN, whereas NANP and other NAN* genes
                            remain proper json strings.</div>
                          <div><br clear="all">
                            <div>
                              <div dir="ltr" class="gmail_signature">
                                <div dir="ltr">
                                  <div>ॐ<br>
                                    Michael Yourshaw<br>
                                    <a href="mailto:myourshaw@ucla.edu"
                                      target="_blank"
                                      moz-do-not-send="true">myourshaw@gmail.com</a><br>
                                    <br>
                                    This message is intended only for
                                    the use of the addressee and may
                                    contain information that is
                                    PRIVILEGED and CONFIDENTIAL, and/or
                                    may contain ATTORNEY WORK PRODUCT.
                                    If you are not the intended
                                    recipient, you are hereby notified
                                    that any dissemination of this
                                    communication is strictly
                                    prohibited. If you have received
                                    this communication in error, please
                                    erase all copies of the message and
                                    its attachments and notify us
                                    immediately. Thank you.</div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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>
  </body>
</html>