<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi folks
<div><br>
</div>
<div>I'm using VEP and I might have I just found and fixed a small issue, so I thought I'd pass it on. </div>
<div><br>
</div>
<div>We're using VEP (offline) to do a fairly large set of HGVS nomenclatures, and it's working great except for a Perl error in a few cases.</div>
<div><br>
</div>
<div>The error reported is:</div>
<div><br>
</div>
<div>2012-11-07 10:46:05 - Checking/creating FASTA index<br>
…</div>
<div>2012-11-07 10:46:35 - Analyzing chromosome 9<br>
2012-11-07 10:46:35 - Analyzing variants<br>
2012-11-07 10:47:06 - Calculating consequences<br>
Quantifier follows nothing in regex; marked by <-- HERE in m/* <-- HERE / at /Users/swatt/variant_effect_predictor/Bio/EnsEMBL/Variation/TranscriptVariationAllele.pm line 877.</div>
<div><br>
</div>
<div>Note the * is a valid HGVS reference and a regex metacharacter. This is a fatal error, so the process stops. </div>
<div><br>
</div>
<div>The lines at issue are:</div>
<div><br>
</div>
<div>      }<br>
      elsif( (length($hgvs_notation->{alt}) >  length($hgvs_notation->{ref}) ) &&<br>
           $hgvs_notation->{alt} =~ /$hgvs_notation->{ref}/ ) {<br>
          ### capture duplication event described as TTT/TTTTT<br>
          $hgvs_notation->{type} = "dup";<br>
      }<br>
<br>
My quick fix was as follows - the run then completes. There are probably better fixes conceptually, but this worked for me. </div>
<div><br>
</div>
<div>-           $hgvs_notation->{alt} =~ /$hgvs_notation->{ref}/ ) {<br>
</div>
<div>+           $hgvs_notation->{alt} =~ /\Q$hgvs_notation->{ref}\E/ ) {<br>
</div>
<div><br>
</div>
<div>I hope I'm doing this right for you. VEP is a great tool, and it's already delivering excellent results for us. </div>
<div><br>
</div>
<div>All the best</div>
<div>Stuart</div>
<div>
<div apple-content-edited="true">
<p style="font-family: Arial, sans-serif; font-size: 8pt; margin-bottom: 0px; ">--</p>
<div style="font-family: Verdana, sans-serif; font-size: 10pt; color: rgb(57, 121, 59); margin-top: 0px; margin-bottom: 0px; ">
<b>Stuart Watt, PhD</b></div>
<p style="font-family: Verdana, sans-serif; font-size: 8pt; margin-top: 0px; ">Senior Software Developer</p>
<p style="font-family: Verdana, sans-serif; font-size: 10pt; color: rgb(57, 121, 59); margin-bottom: 0px; ">
<b>Ontario Institute for Cancer Research</b></p>
<p style="font-family: Verdana, sans-serif; font-size: 8pt; margin-top: 0px; ">MaRS Centre, South Tower<br>
101 College Street, Suite 800<br>
Toronto, Ontario, Canada M5G 0A3</p>
<p style="font-family: Verdana, sans-serif; font-size: 8pt; ">Toll-free: 1-866-678-6427<br>
<a href="http://www.oicr.on.ca">www.oicr.on.ca</a></p>
<div style="font-family: Times; "><br class="webkit-block-placeholder">
</div>
<p style="font-family: Arial, sans-serif; font-size: 8pt; ">This message and any attachments may contain confidential and/or privileged information for the sole use of the intended recipient. Any review or distribution by anyone other than the person for whom
 it was originally intended is strictly prohibited. If you have received this message in error, please contact the sender and delete all copies. Opinions, conclusions or other information contained in this message may not be that of the organization.</p>
</div>
<br>
</div>
</body>
</html>