<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>生信菜鸟团 &#187; VEP</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/vep/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>用GEMINI来探索vcf格式的突变数据</title>
		<link>http://www.bio-info-trainee.com/1603.html</link>
		<comments>http://www.bio-info-trainee.com/1603.html#comments</comments>
		<pubDate>Thu, 05 May 2016 11:39:37 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[基础数据库]]></category>
		<category><![CDATA[基础软件]]></category>
		<category><![CDATA[gemini]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sneff]]></category>
		<category><![CDATA[vcf]]></category>
		<category><![CDATA[VEP]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1603</guid>
		<description><![CDATA[第一次听说这个软件，是一个香港朋友推荐的：http://davetang.org &#8230; <a href="http://www.bio-info-trainee.com/1603.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>第一次听说这个软件，是一个香港朋友推荐的：<a href="http://davetang.org/muse/2016/01/13/getting-started-with-gemini/">http://davetang.org/muse/2016/01/13/getting-started-with-gemini/</a> 他写的很棒，但是我当初以为是一个类似于SQLite的数据库浏览模式，所以没在意。实际上，我现在仍然觉得这个软件没什么用！</p>
<p>软件官网有详细的介绍：<a href="https://gemini.readthedocs.io/en/latest/">https://gemini.readthedocs.io/en/latest/</a></p>
<p>而且提供丰富的教程：</p>
<p>We recommend that you follow these tutorials in order, as they introduce concepts that build upon one another.</p>
<ul>
<li>Introduction to GEMINI, basic variant querying and data exploration. <a href="https://speakerdeck.com/arq5x/an-introduction-and-tutorial-for-variant-exploration-with-gemini">html</a> <a href="https://s3.amazonaws.com/gemini-tutorials/Intro-To-Gemini.pdf">pdf</a></li>
<li>Identifying de novo mutations underlying Mendelian disease <a href="https://speakerdeck.com/arq5x/identifying-de-novo-mutations-with-gemini">html</a> <a href="https://s3.amazonaws.com/gemini-tutorials/Gemini-DeNovo-Tutorial.pdf">pdf</a></li>
<li>Identifying autosomal recessive variants underlying Mendelian disease <a href="https://speakerdeck.com/arq5x/identifying-recessive-candidates-with-gemini">html</a> <a href="https://s3.amazonaws.com/gemini-tutorials/Gemini-Recessive-Tutorial.pdf">pdf</a></li>
<li>Identifying autosomal dominant variants underlying Mendelian disease <a href="https://speakerdeck.com/arq5x/identifying-dominant-candidates-with-gemini">html</a> <a href="https://s3.amazonaws.com/gemini-tutorials/Gemini-Dominant-Tutorial.pdf">pdf</a></li>
<li>Other GEMINI tools <a href="https://speakerdeck.com/arq5x/other-gemini-tools">html</a> <a href="https://s3.amazonaws.com/gemini-tutorials/GEMINI-Other-Tools.pdf">pdf</a></li>
</ul>
<p>软件本身并不提供注释，虽然它的功能的确包括注释，号称可以利用(ENCODE tracks, UCSC tracks, OMIM, dbSNP, KEGG, and HPRD.)对你的突变位点注释，比如你输入1       861389  .       C       T       ，它告诉你这个突变发生在哪个基因，对蛋白改变如何？是否会产生某些疾病？</p>
<p>虽然它本身没有注释功能，但是它会调用snpEFF或者VEP进行注释，你需要自己先学习它们。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/05/12.png"><img class="alignnone size-full wp-image-1604" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/05/12.png" alt="1" width="523" height="305" /></a></p>
<h1><span style="color: #ff0000;">软件安装：</span></h1>
<p>GEMINI是用python写的，有一个小脚本可以自动完成安装过程：</p>
<p>7.3K May  4 14:44 gemini_install.py</p>
<p>下载这个脚本，然后安装即可</p>
<p>wget https://github.com/arq5x/gemini/raw/master/gemini/scripts/gemini_install.py</p>
<p>python gemini_install.py $tools $data</p>
<p>PATH=$tools/bin:$data/anaconda/bin:$PATH</p>
<p>where <em>$tools</em> and <em>$data</em> are paths writable on your system.</p>
<p>我把$tools用的就是当前文件夹，$data也是当前文件夹下面的gemini文件夹。</p>
<p>这样就会在当前文件夹下面生成两个文件夹，bin是存储程序，gemini是存储数据用的，而且注意要把bin目录的全路径添加到环境变量！</p>
<h1><span style="color: #ff0000;">输入数据：</span></h1>
<p>我们可以直接下载软件作者提供的测试数据</p>
<p>首先是22号染色体的所有突变位点经过WEP注释的文件</p>
<p>然后是一个三口直接的突变ped格式数据</p>
<p>数据存放在亚马逊云，所有的教程pdf也在</p>
<p><a href="http://s3.amazonaws.com/gemini-tutorials">http://s3.amazonaws.com/gemini-tutorials</a></p>
<p>如果是你自己的vcf文件，需要自己用VEP注释一下</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/05/13.png"><img class="alignnone size-full wp-image-1606" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/05/13.png" alt="1" width="271" height="56" /></a></p>
<h1><span style="color: #ff0000;">运行命令：</span></h1>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/05/2.png"><img class="alignnone size-full wp-image-1605" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/05/2.png" alt="2" width="419" height="154" /></a></p>
<h1><span style="color: #ff0000;">结果解读：</span></h1>
<p>产生是chr22.db就是一个数据库格式的文件，但是需要用gemini 来进行查询，个人认为，并没有多大意思！</p>
<p>你只要熟悉mySQL等SQL语言，完全可以自己来！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1603.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用VEP对vcf格式的突变数据进行注释</title>
		<link>http://www.bio-info-trainee.com/1600.html</link>
		<comments>http://www.bio-info-trainee.com/1600.html#comments</comments>
		<pubDate>Thu, 05 May 2016 11:35:50 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[基础数据库]]></category>
		<category><![CDATA[基础软件]]></category>
		<category><![CDATA[vcf]]></category>
		<category><![CDATA[VEP]]></category>
		<category><![CDATA[突变]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1600</guid>
		<description><![CDATA[VEP是国际三大数据库之一的ENSEMBL提供的，也是非常主流和方便，但它是基于 &#8230; <a href="http://www.bio-info-trainee.com/1600.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>VEP是国际三大数据库之一的ENSEMBL提供的，也是非常主流和方便，但它是基于perl语言的，所以在模块方面可能会有点烦人。跟snpEFF一样，也是对遗传变异信息提供更具体的注释，而不仅仅是基于位点区域和基因。如果你熟悉外显子联盟这个数据库EXAC(<strong>ExAC.r0.3.sites.vep.vcf.gz</strong>)，你可以下载它所有的突变记录数据，看看它对每个变异位点到底注释了些什么，它就是典型的用VEP来注释的。<span id="more-1600"></span></p>
<p>随便一个位点，注释了如此多的信息！~~~</p>
<p>1       861389  .       C       T       5621.53 PASS    AC=4;AC_AFR=0;AC_AMR=0;AC_Adj=4;AC_EAS=0;AC_FIN=0;AC_Het=4;AC_Hom=0;AC_NFE=3;AC_OTH=1;AC_SAS=0;AF=3.300e-05;AN=121216;AN_AFR=10212;AN_AMR=11516;AN_Adj=119730;AN_EAS=8606;AN_FIN=6594;AN_NFE=65414;AN_OTH=890;AN_SAS=16498;BaseQRankSum=2.78;ClippingRankSum=-2.380e-01;DP=1488042;FS=7.913;GQ_MEAN=62.49;GQ_STDDEV=14.73;Het_AFR=0;Het_AMR=0;Het_EAS=0;Het_FIN=0;Het_NFE=3;Het_OTH=1;Het_SAS=0;Hom_AFR=0;Hom_AMR=0;Hom_EAS=0;Hom_FIN=0;Hom_NFE=0;Hom_OTH=0;Hom_SAS=0;InbreedingCoeff=-0.0004;MQ=59.70;MQ0=0;MQRankSum=0.198;NCC=409;QD=15.11;ReadPosRankSum=0.561;VQSLOD=0.392;culprit=FS;DP_HIST=373|361|219|102|34981|16744|5493|1367|498|210|121|54|32|18|13|9|3|3|3|4,0|0|0|0|0|0|0|0|0|0|0|1|0|0|0|0|0|1|1|1;GQ_HIST=26|352|26|24|472|62|71|34|23|29|34|16|44468|8058|2176|2147|1116|370|365|739,0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|4;CSQ=T|ENSG00000187634|ENST00000420190|Transcript|missense_variant|157|68|23|P/L|cCg/cTg||1||1|SAMD11|HGNC|28706|protein_coding|||ENSP00000411579||Q5SV95_HUMAN&amp;I7FV93_HUMAN&amp;A6PWC8_HUMAN|UPI000155D47C|deleterious(0)|probably_damaging(0.999)|2/7|||ENST00000420190.1:c.68C&gt;T|ENSP00000411579.1:p.Pro23Leu||||||||||||||||||,T|ENSG00000268179|ENST00000598827|Transcript|missense_variant|211|211|71|G/R|Ggg/Agg||1||-1|AL645608.1|Clone_based_ensembl_gene||protein_coding|YES||ENSP00000471152||M0R0C9_HUMAN|UPI0000D61E05||probably_damaging(0.98)|6/6|||ENST00000598827.1:c.211G&gt;A|ENSP00000471152.1:p.Gly71Arg||||||||||||||||||,T|ENSG00000187634|ENST00000437963|Transcript|missense_variant|128|68|23|P/L|cCg/cTg||1||1|SAMD11|HGNC|28706|protein_coding|||ENSP00000393181||Q5SV95_HUMAN&amp;I7FV93_HUMAN|UPI000155D47B|deleterious(0)|probably_damaging(0.999)|2/5|||ENST00000437963.1:c.68C&gt;T|ENSP00000393181.1:p.Pro23Leu||||||||||||||||||,T|ENSG00000187634|ENST00000342066|Transcript|missense_variant|151|68|23|P/L|cCg/cTg||1||1|SAMD11|HGNC|28706|protein_coding|YES|CCDS2.2|ENSP00000342313|SAM11_HUMAN|Q5SV95_HUMAN&amp;I7FV93_HUMAN&amp;A6PWC8_HUMAN|UPI0000D61E04|deleterious(0)|probably_damaging(0.999)|2/14|||ENST00000342066.3:c.68C&gt;T|ENSP00000342313.3:p.Pro23Leu||||||||||||||||||,T||ENSR00000528850|RegulatoryFeature|regulatory_region_variant|||||||1||||||regulatory_region|||||||||||||||||||||||||||||||</p>
<p>头文件里面有对每一列的详细介绍，包括突变的标准格式</p>
<p>HGVS.c   --》ENST00000420190.1:c.68C&gt;T</p>
<p>HGVS.p –》ENSP00000411579.1:p.Pro23Leu</p>
<p>还有该突变对蛋白功能的影响，包括sift和polyphen的打分~~~</p>
<p>不多说了，直接介绍该软件如何使用吧！</p>
<p>&nbsp;</p>
<h1><span style="color: #ff0000;">软件安装：</span></h1>
<p>最新版是84：<a href="http://useast.ensembl.org/info/docs/tools/vep/script/vep_download.html">http://useast.ensembl.org/info/docs/tools/vep/script/vep_download.html</a></p>
<p>然后进入目录用perl的形式来安装这个软件：perl INSTALL.pl 即可</p>
<p>安装时其实有很多参数可以选择的，请仔细阅读介绍；<a href="http://useast.ensembl.org/info/docs/tools/vep/script/vep_download.html">http://useast.ensembl.org/info/docs/tools/vep/script/vep_download.html</a></p>
<p>&nbsp;</p>
<p>前提是你已经安装好了两个模块！</p>
<p>perl -e 'use DBD::mysql'</p>
<p>perl -e 'use Archive::Extract'</p>
<p>如果不报错，就证明你已经安装过这些模块，如果报错，去搜索我以前关于perl模块的博客吧，不是很简单的事情。</p>
<p>By default the script will install the cache files in the ".vep" subdirectory of the user's home area. Using this option users can configure where cache files are installed.</p>
<p>我不想把cache文件放在默认的$HOME/.vep/下面，所以我安装的时候稍微做了更改</p>
<p>&nbsp;</p>
<p>下载完了软件，接下来就要下载注释用的数据库啦！</p>
<p>它支持非常多的物种的注释，我这里拿人类做例子咯：<a href="ftp://ftp.ensembl.org/pub/release-82/variation/VEP/">ftp://ftp.ensembl.org/pub/release-82/variation/VEP/</a></p>
<p>我下载的是ftp里面的82 版本： wget <a href="ftp://ftp.ensembl.org/pub/release-82/variation/VEP/homo_sapiens_refseq_vep_82_GRCh37.tar.gz">ftp://ftp.ensembl.org/pub/release-82/variation/VEP/homo_sapiens_refseq_vep_82_GRCh37.tar.gz</a></p>
<p>有6.1G，所以会有点耗时~</p>
<p>下载完毕后直接用tar –zxvf解压即可使用啦！</p>
<p>我安装软件的时候指定了cache目录，而不是默认的$HOME/.vep/</p>
<blockquote><p>&nbsp;</p>
<p>Download the archive file for your species</p>
<p>Extract the archive in your cache directory. By default the VEP uses $HOME/.vep/ as the cache directory, where $HOME is your UNIX home directory.</p>
<p>mv homo_sapiens_vep_84.tar.gz ~/.vep/ cd ~/.vep/tar xfz homo_sapiens_vep_84.tar.gz</p>
<p>Run the VEP with the<a href="http://useast.ensembl.org/info/docs/tools/vep/script/vep_options.html#opt_cache">--cache</a> option</p></blockquote>
<p>所以要把下载的6.1G数据库放在我自己的cashe目录</p>
<p>如果你安装VEP的时候用的默认安装参数，就需要把自己下载的6.1G文件放在  ~/.vep/ 目录下面</p>
<p>参考：<a href="http://davetang.org/wiki2/index.php?title=VEP">http://davetang.org/wiki2/index.php?title=VEP</a></p>
<h1><span style="color: #ff0000;">输入数据：</span></h1>
<p>它支持好几种输入格式数据:</p>
<ul>
<li><a href="http://useast.ensembl.org/info/website/upload/bed.html">BED</a>: a simple tab-delimited format containing 3-12 columns of data. The first 3 columns contain the coordinates of the feature. If available, the VEP will use the 4th column of the file as the identifier of the feature.</li>
<li><a href="http://www.sanger.ac.uk/resources/software/gff/">GFF</a>: a format for describing genes and other features. If available, the VEP will use the "ID" field as the identifier of this feature.</li>
<li><a href="http://useast.ensembl.org/info/website/upload/gff.html">GTF</a>: treated in an identical manner to GFF.</li>
<li><a href="http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41">VCF</a>: a format used to describe genomic variants. The VEP will use the 3rd column of the file as the identifier.</li>
<li><a href="http://genome.ucsc.edu/goldenPath/help/bigWig.html">bigWig</a>: a format for storage of dense continuous data. The VEP uses the value for the given position as the "identifier". Note that bigWig files contain their own indices, and do not need to be indexed by tabix.</li>
</ul>
<p>Any other files can be easily converted to be compatible with the VEP; the easiest format to produce is a BED-like file containing coordinates and an (optional) identifier:</p>
<p>其实重点就是给出你的突变的坐标即可，在哪条染色体，什么位置！</p>
<p>我们可以拿snpEFF里面的example文件夹里面的数据来做测试。</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h1><span style="color: #ff0000;">运行命令：</span></h1>
<p>可以直接进入安装目录(VEP_ensembl/ensembl-tools-release-84/scripts/variant_effect_predictor)运行那个主程序</p>
<p>variant_effect_predictor.pl -i example_GRCh37.vcf \</p>
<p>--cache --assembly GRCh37 \</p>
<p>--offline --force_overwrite</p>
<p>或者用全路径的形式去调用这个程序</p>
<p>参数非常复杂，详细介绍见：<a href="http://useast.ensembl.org/info/docs/tools/vep/script/vep_options.html">http://useast.ensembl.org/info/docs/tools/vep/script/vep_options.html</a></p>
<p>一般用标准参数就好啦，而且还有一些插件，其中我比较喜欢<a href="https://github.com/ensembl-variation/VEP_plugins/blob/master/dbNSFP.pm">dbNSFP</a> and <a href="https://github.com/konradjk/loftee">LOFTEE</a> plugins，这也是EXAC里面用过的。</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/05/3.png"><img class="alignnone size-full wp-image-1601" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/05/3.png" alt="3" width="753" height="437" /></a></p>
<p>&nbsp;</p>
<h1><span style="color: #ff0000;">结果解读：</span></h1>
<p>这个非常复杂，对结果理解了多少，就是我们对软件理解了多少。</p>
<p>具体大家看readme吧，注释信息太多了，按需索取：</p>
<p>直接看EXAC(<strong>ExAC.r0.3.sites.vep.vcf.gz</strong>)文件里面近一亿条突变记录也能慢慢理解！</p>
<p>&nbsp;</p>
<p>参考：<a href="http://gemini.readthedocs.io/en/latest/content/functional_annotation.html">http://gemini.readthedocs.io/en/latest/content/functional_annotation.html</a></p>
<p>&nbsp;</p>
<h1>2018年更新：</h1>
<p><span class="md-line md-end-block">为了其它软件的顺利运行，我们根据教程来设置默认的安装目录及变量环境：<span class=""><a spellcheck="false" href="http://useast.ensembl.org/info/docs/tools/vep/index.html">Ensembl's VEP</a></span> ， If you don't have <span class=""><a spellcheck="false" href="http://useast.ensembl.org/info/docs/tools/vep/index.html">VEP</a></span> installed, then <span class=""><a spellcheck="false" href="https://gist.github.com/ckandoth/f265ea7c59a880e28b1e533a6e935697">follow this gist</a></span>. </span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false"><span class="cm-keyword">export</span> <span class="cm-def">VEP_PATH</span><span class="cm-operator">=</span><span class="cm-def">$HOME</span>/vep
<span class="cm-keyword">export</span> <span class="cm-def">VEP_DATA</span><span class="cm-operator">=</span><span class="cm-def">$HOME</span>/.vep
<span class="cm-builtin">mkdir</span> <span class="cm-def">$VEP_PATH</span> <span class="cm-def">$VEP_DATA</span>; <span class="cm-builtin">cd</span> <span class="cm-def">$VEP_PATH</span>
<span class="cm-keyword">export</span> <span class="cm-def">PERL5LIB</span><span class="cm-operator">=</span><span class="cm-def">$VEP_PATH</span>:<span class="cm-def">$PERL5LIB</span>
<span class="cm-keyword">export</span> <span class="cm-def">PATH</span><span class="cm-operator">=</span><span class="cm-def">$VEP_PATH</span>/htslib:<span class="cm-def">$PATH</span>
<span class="cm-comment">## 这一块代码就创建文件夹和下载数据，理论上不会出错，取决于网速</span>
 perl <span class="cm-attribute">-e</span> <span class="cm-string">'{print join"\n",@INC}'</span>
 <span class="cm-comment">## 这种临时添加perl模块路径的方法不好用，需要修改 </span>
 <span class="cm-builtin">source</span>   ~/.bashrc
 
<span class="cm-builtin">curl</span> <span class="cm-attribute">-LO</span> https://github.com/Ensembl/ensembl-tools/archive/release/86.tar.gz
tar <span class="cm-attribute">-zxf</span> <span class="cm-number">86</span>.tar.gz <span class="cm-attribute">--starting-file</span> variant_effect_predictor <span class="cm-attribute">--transform</span><span class="cm-operator">=</span><span class="cm-string">'s|.*/|./|g'</span></pre>
<h3 class="md-end-block md-heading">基因组数据库下载</h3>
<p><span class="md-line md-end-block md-focus">Download and unpack VEP's offline cache for GRCh37, GRCh38, and GRCm38:</span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false"><span class="cm-builtin">cd</span> <span class="cm-def">$VEP_DATA</span>
rsync <span class="cm-attribute">-zvh</span> rsync://ftp.ensembl.org/ensembl/pub/release-86/variation/VEP/homo_sapiens_vep_86_GRCh37.tar.gz <span class="cm-def">$VEP_DATA</span>
rsync <span class="cm-attribute">-zvh</span> rsync://ftp.ensembl.org/ensembl/pub/release-86/variation/VEP/homo_sapiens_vep_86_GRCh38.tar.gz <span class="cm-def">$VEP_DATA</span>
rsync <span class="cm-attribute">-zvh</span> rsync://ftp.ensembl.org/ensembl/pub/release-86/variation/VEP/mus_musculus_vep_86_GRCm38.tar.gz <span class="cm-def">$VEP_DATA</span>
<span class="cm-builtin">cat</span> <span class="cm-def">$VEP_DATA</span>/*_vep_86_GRC{h37,h38,m38}.tar.gz | tar <span class="cm-attribute">-izxf</span> <span class="cm-attribute">-</span> <span class="cm-attribute">-C</span> <span class="cm-def">$VEP_DATA</span>
<span class="cm-comment">## 解压下载好的数据库到指定文件夹</span>
<span class="cm-comment"># 4.9G Apr 23 19:40 homo_sapiens_vep_86_GRCh38.tar.gz</span>
<span class="cm-comment">## 这一步下载的文件有点大，可能会些微耗时，一般不修改默认文件夹。</span></pre>
<p><span class="md-line md-end-block">Install the Ensembl API, the reference FASTAs for GRCh37/GRCh38/GRCm38:</span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false">
<span class="cm-builtin">cd</span> <span class="cm-def">$VEP_PATH</span>
<span class="cm-comment">#perl INSTALL.pl --AUTO af --SPECIES homo_sapiens --ASSEMBLY GRCh37 --DESTDIR $VEP_PATH --CACHEDIR $VEP_DATA</span>
perl INSTALL.pl <span class="cm-attribute">--AUTO</span> af <span class="cm-attribute">--SPECIES</span> homo_sapiens <span class="cm-attribute">--ASSEMBLY</span> GRCh38 <span class="cm-attribute">--DESTDIR</span> <span class="cm-def">$VEP_PATH</span> <span class="cm-attribute">--CACHEDIR</span> <span class="cm-def">$VEP_DATA</span>
<span class="cm-comment">#perl INSTALL.pl --AUTO af --SPECIES mus_musculus --ASSEMBLY GRCm38 --DESTDIR $VEP_PATH --CACHEDIR $VEP_DATA</span>
<span class="cm-comment">## 这中间会安装 BioPerl</span></pre>
<p><span class="md-line md-end-block">如果成功，会有提示，如下：</span></p>
<pre class="md-fences md-end-block" lang="" contenteditable="false"> - downloading Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz
  - converting sequence data to bgzip format
 Going to run:
/home/jianmingzeng/vep/biodbhts/scripts/convert_gz_2_bgz.sh /home/jianmingzeng/.vep/homo_sapiens/86_GRCh38/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz /home/jianmingzeng/vep/htslib/bgzip
This may take some time and will be removed when files are provided in bgzip format
Converted FASTA gzip file to bgzip successfully
[fai_load] build FASTA index.
 - indexing OK
The FASTA file should be automatically detected by the VEP when using --cache or --offline. If it is not, use "--fasta /home/jianmingzeng/.vep/homo_sapiens/86_GRCh38/Homo_sapiens.GRCh38.dna.primary_assembly.fa.gz"
​
​
All done</pre>
<p><span class="md-line md-end-block">因为用到perl模块，如果你的服务器环境没有配置好，会需要一些设置；</span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false">
perl <span class="cm-attribute">-e</span> <span class="cm-string">'use LWP::Simple'</span>
​
<span class="cm-builtin">wget</span> <span class="cm-attribute">-O-</span> http://cpanmin.us | perl <span class="cm-attribute">-</span> <span class="cm-attribute">-l</span> ~/perl5 App::cpanminus local::lib
eval <span class="cm-quote">`perl -I ~/perl5/lib/perl5 -Mlocal::lib`</span>
<span class="cm-builtin">echo</span> <span class="cm-string">'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`'</span> &gt;&gt; ~/.profile
<span class="cm-builtin">echo</span> <span class="cm-string">'export MANPATH=$HOME/perl5/man:$MANPATH'</span> &gt;&gt; ~/.profile
<span class="cm-builtin">source</span> ~/.profile
​
cpanm <span class="cm-attribute">-v</span> <span class="cm-attribute">--notest</span> <span class="cm-attribute">-l</span> ~/perl5  Archive::Extract;
cpanm <span class="cm-attribute">-v</span> <span class="cm-attribute">--notest</span> <span class="cm-attribute">-l</span> ~/perl5  Archive::Zip;
cpanm <span class="cm-attribute">-v</span> <span class="cm-attribute">--notest</span> <span class="cm-attribute">-l</span> ~/perl5  HTML::Entities;
cpanm <span class="cm-attribute">-v</span> <span class="cm-attribute">--notest</span> <span class="cm-attribute">-l</span> ~/perl5  LWP::Simple;
cpanm <span class="cm-attribute">-v</span> <span class="cm-attribute">--notest</span> <span class="cm-attribute">-l</span> ~/perl5  Compress::Zlib;
perl <span class="cm-attribute">-e</span> <span class="cm-string">'use Archive::Extract'</span>
perl <span class="cm-attribute">-e</span> <span class="cm-string">'use HTML::Entities'</span>
perl <span class="cm-attribute">-e</span> <span class="cm-string">'use HTML::HeadParser'</span>
perl <span class="cm-attribute">-e</span> <span class="cm-string">'use LWP::Simple'</span>
perl <span class="cm-attribute">-e</span> <span class="cm-string">'use Archive::Zip'</span>
perl <span class="cm-attribute">-e</span> <span class="cm-string">'use Compress::Zlib'</span>
​
cpanm <span class="cm-attribute">-v</span> <span class="cm-attribute">--notest</span> <span class="cm-attribute">-l</span> ~/perl5  DBD::mysql;
perl <span class="cm-attribute">-e</span> <span class="cm-string">'use DBD::mysql'</span>
​</pre>
<p><span class="md-line md-end-block">Convert the offline cache for use with tabix, that significantly speeds up the lookup of known variants:</span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false">
<span class="cm-comment">#perl convert_cache.pl --species homo_sapiens --version 86_GRCh37 --dir $VEP_DATA</span>
perl convert_cache.pl <span class="cm-attribute">--species</span> homo_sapiens <span class="cm-attribute">--version</span> 86_GRCh38 <span class="cm-attribute">--dir</span> <span class="cm-def">$VEP_DATA</span>
<span class="cm-comment">#perl convert_cache.pl --species mus_musculus --version 86_GRCm38 --dir $VEP_DATA</span>
<span class="cm-comment">## 这个步骤特别耗时</span></pre>
<p><span class="md-line md-end-block">更多细节去看我以前在生信菜鸟团博客分享的笔记：<span spellcheck="false"><a href="http://www.bio-info-trainee.com/1600.html">http://www.bio-info-trainee.com/1600.html</a></span> </span></p>
<p><span class="md-line md-end-block">安装过程如下：</span></p>
<pre class="md-fences md-end-block" lang="" contenteditable="false">
2018-04-27 13:42:12 - Processing homo_sapiens
2018-04-27 13:42:12 - Processing version 86_GRCh38
2018-04-27 13:42:12 - Processing _var cache type
[===========================================================]  [ 100% ]
2018-04-27 14:59:39 - All done!</pre>
<h3 class="md-end-block md-heading">下载安装关联软件</h3>
<p><span class="md-line md-end-block">Download and build <span spellcheck="false"><code>samtools</code></span> and <span spellcheck="false"><code>bcftools</code></span>, which we'll need for steps below, and when running vcf2maf/maf2maf:</span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false">
<span class="cm-builtin">mkdir</span> <span class="cm-def">$VEP_PATH</span>/samtools &amp;&amp; <span class="cm-builtin">cd</span> <span class="cm-def">$VEP_PATH</span>/samtools
<span class="cm-builtin">curl</span> <span class="cm-attribute">-LOOO</span> https://github.com/samtools/{samtools/releases/download/1.3.1/samtools-1.3.1,bcftools/releases/download/1.3.1/bcftools-1.3.1,htslib/releases/download/1.3.2/htslib-1.3.2}.tar.bz2
<span class="cm-builtin">cat</span> *tar.bz2 | tar <span class="cm-attribute">-ijxf</span> <span class="cm-attribute">-</span>
<span class="cm-builtin">cd</span> htslib-1.3.2 &amp;&amp; <span class="cm-builtin">make</span> &amp;&amp; <span class="cm-builtin">make</span> <span class="cm-def">prefix</span><span class="cm-operator">=</span><span class="cm-def">$VEP_PATH</span>/samtools install &amp;&amp; <span class="cm-builtin">cd</span> ..
<span class="cm-builtin">cd</span> samtools-1.3.1 &amp;&amp; <span class="cm-builtin">make</span> &amp;&amp; <span class="cm-builtin">make</span> <span class="cm-def">prefix</span><span class="cm-operator">=</span><span class="cm-def">$VEP_PATH</span>/samtools install &amp;&amp; <span class="cm-builtin">cd</span> ..
<span class="cm-builtin">cd</span> bcftools-1.3.1 &amp;&amp; <span class="cm-builtin">make</span> &amp;&amp; <span class="cm-builtin">make</span> <span class="cm-def">prefix</span><span class="cm-operator">=</span><span class="cm-def">$VEP_PATH</span>/samtools install &amp;&amp; <span class="cm-builtin">cd</span> ..
<span class="cm-builtin">cd</span> ..</pre>
<p><span class="md-line md-end-block">Download the <span spellcheck="false"><code>liftOver</code></span> binary down the same path, and make it executable:</span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false">
<span class="cm-builtin">curl</span> <span class="cm-attribute">-L</span> http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/liftOver &gt; bin/liftOver
<span class="cm-builtin">chmod</span> a<span class="cm-operator">+</span>x bin/liftOver</pre>
<p><span class="md-line md-end-block">Set $PATH to find all those tools, and also add this line to your <span spellcheck="false"><code>~/.bashrc</code></span> to make it persistent. Be sure to edit the path below, if you didn't do this in your <span spellcheck="false"><code>$HOME</code></span>:</span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false">
<span class="cm-keyword">export</span> <span class="cm-def">PATH</span><span class="cm-operator">=</span><span class="cm-def">$HOME</span>/vep/samtools/bin:<span class="cm-def">$PATH</span></pre>
<h3 class="md-end-block md-heading">使用VEP在真实数据</h3>
<p><span class="md-line md-end-block">一般都需要先看看帮助文件：</span></p>
<pre class="md-fences md-end-block" lang="" contenteditable="false">
 perl ~/vep/variant_effect_predictor.pl  --help
#----------------------------------#
# ENSEMBL VARIANT EFFECT PREDICTOR #
#----------------------------------#
​
version 86
by Will McLaren (wm2@ebi.ac.uk)
​
Help: dev@ensembl.org , helpdesk@ensembl.org
Twitter: @ensembl , @EnsemblWill
​

http://www.ensembl.org/info/docs/tools/vep/script/index.html

​
Usage:
perl variant_effect_predictor.pl [--cache|--offline|--database] [arguments]
​
Basic options
=============
​
--help                 Display this message and quit
​
-i | --input_file      Input file
-o | --output_file     Output file
--force_overwrite      Force overwriting of output file
--species [species]    Species to use [default: "human"]
​
--everything           Shortcut switch to turn on commonly used options. See web
                       documentation for details [default: off]
--fork [num_forks]     Use forking to improve script runtime
​
For full option documentation see:

http://www.ensembl.org/info/docs/tools/vep/script/vep_options.html</pre>
<p><span class="md-line md-end-block">一般收入数据的vcf格式的：<span spellcheck="false"><a href="http://samtools.github.io/hts-specs/VCFv4.2.pdf">http://samtools.github.io/hts-specs/VCFv4.2.pdf</a></span> </span></p>
<p><span class="md-line md-end-block">不过也没有那么标准，我给了如下：</span></p>
<pre class="md-fences md-end-block" lang="" contenteditable="false">
chr1    12861477    .   T   C   .   .   32:1:3.03%:T:23:8:25.81%
chr1    16588939    .   T   C   .   .   22:0:0%:T:8:3:27.27%
chr1    16703018    .   C   G   .   .   28:0:0%:C:21:6:22.22%</pre>
<p><span class="md-line md-end-block">处理起来毫无压力：</span></p>
<pre class="md-fences md-end-block" lang="shell" contenteditable="false">
perl ~/vep/variant_effect_predictor.pl  <span class="cm-attribute">-i</span> tmp.vcf  <span class="cm-attribute">-o</span> test.results \
<span class="cm-attribute">--cache</span> <span class="cm-attribute">--force_overwrite</span>  <span class="cm-attribute">--assembly</span> GRCh38 <span class="cm-attribute">--vcf</span></pre>
<p><span class="md-line md-end-block">得到的结果其实和snpEFF没啥子区别，反正工具嘛，顺手即可。</span></p>
<h3 class="md-end-block md-heading">其它输入数据：</h3>
<p><span class="md-line md-end-block">它支持好几种输入格式数据:</span></p>
<ul class="ul-list" data-mark="-">
<li><span class="md-line md-end-block"><span class=""><a spellcheck="false" href="http://useast.ensembl.org/info/website/upload/bed.html">BED</a></span>: a simple tab-delimited format containing 3-12 columns of data. The first 3 columns contain the coordinates of the feature. If available, the VEP will use the 4th column of the file as the identifier of the feature.</span></li>
<li><span class="md-line md-end-block"><span class=""><a spellcheck="false" href="http://www.sanger.ac.uk/resources/software/gff/">GFF</a></span>: a format for describing genes and other features. If available, the VEP will use the "ID" field as the identifier of this feature.</span></li>
<li><span class="md-line md-end-block"><span class=""><a spellcheck="false" href="http://useast.ensembl.org/info/website/upload/gff.html">GTF</a></span>: treated in an identical manner to GFF.</span></li>
<li><span class="md-line md-end-block"><span class=""><a spellcheck="false" href="http://www.1000genomes.org/wiki/Analysis/Variant%20Call%20Format/vcf-variant-call-format-version-41">VCF</a></span>: a format used to describe genomic variants. The VEP will use the 3rd column of the file as the identifier.</span></li>
<li><span class="md-line md-end-block"><span class=""><a spellcheck="false" href="http://genome.ucsc.edu/goldenPath/help/bigWig.html">bigWig</a></span>: a format for storage of dense continuous data. The VEP uses the value for the given position as the "identifier". Note that bigWig files contain their own indices, and do not need to be indexed by tabix.</span></li>
</ul>
<p><span class="md-line md-end-block">Any other files can be easily converted to be compatible with the VEP; the easiest format to produce is a BED-like file containing coordinates and an (optional) identifier:</span></p>
<p><span class="md-line md-end-block">其实重点就是给出你的突变的坐标即可，在哪条染色体，什么位置！</span></p>
<p><span class="md-line md-end-block">不过，值得注意的是，我测试了BED格式，似乎不可以。</span></p>
<h3 class="md-end-block md-heading">输出数据及其复杂</h3>
<p><span class="md-line md-end-block">建议打印说明慢慢理解，争取熟记掌握。</span></p>
<p><span class="md-line md-end-block">snpEFF的输出文件说明书我就打印出来了。</span></p>
<p><span class="md-line md-end-block">非常重要。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1600.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
