<html 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="Title" content="">
<meta name="Keywords" content="">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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:MingLiU;
        panose-1:2 2 5 9 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
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;
        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>
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US">Hello Will,<br>
<br>
Thank you very much, I think that clears it up. It looks like the variant position lies in BAP1-014 and not BAP1-201 but that still isn’t the primary transcript so it was not reported using per_gene.<br>
<br>
Thanks again.<br>
<br>
Regards,<br>
Aravind<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Calibri;mso-fareast-language:EN-US"><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="font-family:Calibri;color:black">From: </span>
</b><span style="font-family:Calibri;color:black"><dev-bounces@ensembl.org> on behalf of Will McLaren <wm2@ebi.ac.uk><br>
<b>Reply-To: </b>Ensembl developers list <dev@ensembl.org><br>
<b>Date: </b>Thursday, 20 October 2016 at 13:45<br>
<b>To: </b>Ensembl developers list <dev@ensembl.org><br>
<b>Subject: </b>Re: [ensembl-dev] Choosing the --per_gene option in VEP<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal">Hi Aravind, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The output selected is not by default based primarily on the consequence ranking, but on the likely relevance of each affected transcript.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">The default order of selection criteria is shown in the documentation [1], and you may change this order with --pick_order if you wish to, for example, prioritise consequence rank first.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Without having seen your input, it seems likely that your variant of interest falls in an exon not found in the primary transcript of BAP1; if you study the transcript diagrams [2] you can see several transcripts contain exons (e.g. BAP1-201)
 that are not found in the primary transcript as determined by CCDS, APPRIS and TSL (BAP1-001). This means it may have a missense effect in BAP1-201 but fall in the intron of BAP1-001.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Hope that helps<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
Will McLaren<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Ensembl Variation<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">[1] : <a href="http://www.ensembl.org/info/docs/tools/vep/script/vep_other.html#pick">http://www.ensembl.org/info/docs/tools/vep/script/vep_other.html#pick</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">[2] : <a href="http://www.ensembl.org/Homo_sapiens/Gene/Summary?db=core;g=ENSG00000163930;r=3:52401013-52410350">
http://www.ensembl.org/Homo_sapiens/Gene/Summary?db=core;g=ENSG00000163930;r=3:52401013-52410350</a><o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 20 October 2016 at 13:35, Aravind Sankar <<a href="mailto:as42@sanger.ac.uk" target="_blank">as42@sanger.ac.uk</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">Hello,<br>
<br>
I have been using the --per_gene option in VEP to get only the most severe consequence of each gene in the CSQ field for my files (as given in the documentation here
<a href="http://www.ensembl.org/info/docs/tools/vep/script/vep_options.html#opt_per_gene" target="_blank">
http://www.ensembl.org/info/docs/tools/vep/script/vep_options.html#opt_per_gene</a>). However, I noticed something going awry today. I was checking all the consequences of a particular position in a gene (BAP1). When I give the --per_gene option in vep, it
 returns a single consequence for the variant and the consequence is an intron variant. When I don’t give the –per_gene option, it returns all the possible consequences for BAP1, which includes both a missense variant and an intron variant. For some reason,
 the missense variant is not being reported over the intron variant while using the –per_gene option. I ran this on build 84. The commands I used were as follows:-<br>
<br>
Using per_gene :<br>
<br>
perl /software/vertres/bin-external/<a href="http://variant_effect_predictor_v84.pl" target="_blank">variant_effect_predictor_v84.pl</a> --offline --vcf --dir_cache /lustre/scratch116/vr/ref/ensembl/vep_cache --species homo_sapiens --assembly GRCh38 --no_progress
 --everything --cache --per_gene -i bap1_pos_test.vcf -o bap1_84_per_gene.vcf</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"><br>
Without per_gene : <br>
<br>
perl /software/vertres/bin-external/<a href="http://variant_effect_predictor_v84.pl" target="_blank">variant_effect_predictor_v84.pl</a> --offline --vcf --dir_cache /lustre/scratch116/vr/ref/ensembl/vep_cache --species homo_sapiens --assembly GRCh38 --no_progress
 --everything --cache -i bap1_pos_test.vcf -o bap1_84.vcf<br>
<br>
The output of the per_gene file doesn’t have the missense variant while the normal one does, for the same gene.
</span><span style="font-size:11.0pt;font-family:MingLiU"><br>
</span><span style="font-size:11.0pt">less bap1_84_per_gene.vcf | grep -c "missense"</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">0</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"><br>
less bap1_84.vcf | grep -c "missense"</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt">1</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-size:11.0pt"><br>
This is contrary to what is expected from the given documentation. Could someone help clarify what is going on here ?<br>
<br>
Thanking you,<br>
Aravind<br>
<br>
<br>
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:11.0pt"> </span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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" target="_blank">
http://lists.ensembl.org/mailman/listinfo/dev</a><br>
Ensembl Blog: <a href="http://www.ensembl.info/" target="_blank">http://www.ensembl.info/</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>