<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Will—<div class=""><br class=""></div><div class="">I suspect this is an issue for many others, as well. For one thing, in a database table the dash requires what should be a numerical field to be treated like text.</div><div class=""><br class=""></div><div class=""> I deal with the dashes in post-processing, but as G says this can be a pain. Rather than users having to patch each new version of VEP, could you consider adding a new parameter so your code would look like</div><div class=""><br class=""></div><div class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class=""><div class="">        $output = join "\t", map {</div><div class="">            (defined $line->{$_} ? $line->{$_} : (defined $extra{$_} ? $extra{$_} : $config->{empty_field_char}))</div><div class="">        } @{$config->{fields}};</div></div></div></blockquote><div class=""><div dir="ltr" class=""><div class=""><div class=""><br class=""></div><div class="">and allow -- empty_field_char with no argument to yield ‘’.</div></div></div></div><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Lucida Grande'; border-spacing: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Lucida Grande'; font-size: 10px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><p class="MsoNormal"><font class="Apple-style-span" face="'Devanagari MT'" size="7"><span class="Apple-style-span" style="font-size: 27px;"><font class="Apple-style-span" face="'Lucida Grande'" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br class="Apple-interchange-newline"></span></font><font class="Apple-style-span" size="5"><span class="Apple-style-span" style="font-size: 18px;">ॐ</span></font></span></font></p></span><p class=""></p><p style="margin: 0px 0px 6px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16px; line-height: normal; font-family: Helvetica;" class=""><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 10px;">Michael Yourshaw, PhD</span></p><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-family: 'Lucida Grande';" class=""><span style="letter-spacing: 0px;" class="">UCLA Geffen School of Medicine</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-family: 'Lucida Grande';" class=""><span style="letter-spacing: 0px;" class="">Department of Pediatrics</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-family: 'Lucida Grande';" class=""><span style="letter-spacing: 0px;" class="">695 Charles E Young Drive S</span></div><div style="margin: 0px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-family: 'Lucida Grande';" class=""><span style="letter-spacing: 0px;" class="">Gonda 5554</span></div><p style="margin: 0px 0px 3px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-family: 'Lucida Grande';" class=""><span style="letter-spacing: 0px;" class="">Los Angeles CA 90095-8348 USA</span></p><p style="margin: 0px 0px 3px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-family: 'Lucida Grande'; color: rgb(0, 0, 153);" class=""><span style="text-decoration: underline; letter-spacing: 0px;" class=""><a href="mailto:myourshaw@ucla.edu" class="">myourshaw@ucla.edu</a></span></p><p style="margin: 0px 0px 6px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10px; line-height: normal; font-family: 'Lucida Grande';" class=""><span style="letter-spacing: 0px;" class="">970.691.8299</span></p><p style="margin: 0px 0px 6px; font-style: normal; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-family: 'Lucida Grande';" class=""><span style="letter-spacing: 0px;" class="">This message (including any attachments) is intended only for the use of the addressee(s) and may contain information that is PRIVILEGED and CONFIDENTIAL, and/or may constitute ATTORNEY WORK PRODUCT. If you are not an intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this message in error, please</span> do not read, copy, or forward this message or any attachments. Please permanently<span style="letter-spacing: 0px;" class=""> delete all copies of the message and any attachments and notify the sender immediately by sending an email to <a href="mailto:myourshaw@yourshaw.org" class="">myourshaw@yourshaw.org</a>. Thank you. As part of our </span>commitment<span style="letter-spacing: 0px;" class=""> to the environment, this </span>message was manufactured with 100% recycled electrons.</p><div class=""><font class="Apple-style-span" size="1"><span class="Apple-style-span" style="font-size: 9px;"><br class=""></span></font></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline"></span></div></span></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 3Dec, 2014, at 08:23, Will McLaren <<a href="mailto:wm2@ebi.ac.uk" class="">wm2@ebi.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi G,<div class=""><br class=""></div><div class="">The print_line() subroutine in <a href="http://variant_effect_predictor.pl/" class="">variant_effect_predictor.pl</a> has the following code:</div><div class=""><br class=""></div><div class=""><div class="">        $output = join "\t", map {</div><div class="">            (defined $line->{$_} ? $line->{$_} : (defined $extra{$_} ? $extra{$_} : '-'))</div><div class="">        } @{$config->{fields}};</div></div><div class=""><br class=""></div><div class="">So to do as you intend you could change this to</div><div class=""><br class=""></div><div class=""><div class="">        $output = join "\t", map {</div><div class="">            (defined $line->{$_} ? $line->{$_} : (defined $extra{$_} ? $extra{$_} : ''))</div><div class="">        } @{$config->{fields}};</div></div><div class=""><br class=""></div><div class="">Regards</div><div class=""><br class=""></div><div class="">Will McLaren</div><div class="">Ensembl Variation</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 3 December 2014 at 16:17, Genomeo Dev <span dir="ltr" class=""><<a href="mailto:genomeodev@gmail.com" target="_blank" class="">genomeodev@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">Current VEP script puts dash in empty fields in the default output. Could you please point me to the code where I can remove replace dash with an empty string? Modifying the output file after it is generated is non-trivial for very large files.<span class="HOEnZb"><font color="#888888" class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class=""><div dir="ltr" class="">G.</div></div>
</font></span></div></div>
<br class="">_______________________________________________<br class="">
Dev mailing list    <a href="mailto:Dev@ensembl.org" class="">Dev@ensembl.org</a><br class="">
Posting guidelines and subscribe/unsubscribe info: <a href="http://lists.ensembl.org/mailman/listinfo/dev" target="_blank" class="">http://lists.ensembl.org/mailman/listinfo/dev</a><br class="">
Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank" class="">http://www.ensembl.info/</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">Dev mailing list    <a href="mailto:Dev@ensembl.org" class="">Dev@ensembl.org</a><br class="">Posting guidelines and subscribe/unsubscribe info: <a href="http://lists.ensembl.org/mailman/listinfo/dev" class="">http://lists.ensembl.org/mailman/listinfo/dev</a><br class="">Ensembl Blog: <a href="http://www.ensembl.info/" class="">http://www.ensembl.info/</a><br class=""></div></blockquote></div><br class=""></div></body></html>