<?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; freebayes</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/freebayes/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>用freebayes来call snps</title>
		<link>http://www.bio-info-trainee.com/1011.html</link>
		<comments>http://www.bio-info-trainee.com/1011.html#comments</comments>
		<pubDate>Thu, 24 Sep 2015 13:20:26 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[基础软件]]></category>
		<category><![CDATA[freebayes]]></category>
		<category><![CDATA[snp]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1011</guid>
		<description><![CDATA[软件地址：http://clavius.bc.edu/~erik/freebay &#8230; <a href="http://www.bio-info-trainee.com/1011.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>软件地址：<a href="http://clavius.bc.edu/~erik/freebayes/">http://clavius.bc.edu/~erik/freebayes/</a></p>
<div>软件教程：<a href="http://clavius.bc.edu/~erik/CSHL-advanced-sequencing/freebayes-tutorial.html">http://clavius.bc.edu/~erik/CSHL-advanced-sequencing/freebayes-tutorial.html</a></div>
</div>
<div>step1：，软件安装</div>
<div>
<pre><code>wget http://clavius.bc.edu/~erik/freebayes/freebayes-5d5b8ac0.tar.gz
tar xzvf freebayes-5d5b8ac0.tar.gz
cd freebayes
make
一个小插曲，安装的过程报错：/bin/sh: 1: cmake: not found
所以我需要自己下载安装cmake，然后把cmake添加到环境变量
</code></pre>
<p>首先下载源码包http://www.cmake.org/cmake/resources/software.html</p>
<p>wget http://cmake.org/files/v3.3/cmake-3.3.2.tar.gz</p>
<pre class="brush: bash; title: Example; notranslate" title="Example"> 解压进去，然后源码安装三部曲,首先 ./configu  然后make 最后make install  
</pre>
<p>cmake 会默认安装在 /usr/local/bin 下面<code>，这里需要修改，因为你可能没有 /usr/local/bin 权限,安装到自己的目录，然后把它添加到环境变量！<br />
</code></p>
<p>step2：准备数据</p>
</div>
<div>an alignment file (in<span class="Apple-converted-space"> </span><a href="https://en.wikipedia.org/wiki/BAM_format">BAM</a><span class="Apple-converted-space"> </span>format)</div>
<div>a<span class="Apple-converted-space"> </span><a href="https://en.wikipedia.org/wiki/Reference_genome">reference genome</a><span class="Apple-converted-space"> </span>in (uncompressed)<span class="Apple-converted-space"> </span><a href="https://en.wikipedia.org/wiki/FASTA_format">FASTA format</a>.</div>
<div>正好我的服务器里面有很多</div>
<div>不过，该软件也可以出了一个测试数据集</div>
<div>
<pre><code>wget http://bioinformatics.bc.edu/marthlab/download/gkno-cshl-2013/chr20.fa</code></pre>
<pre><code>wget ftp://ftp.ncbi.nlm.nih.gov/1000genomes/ftp/data/NA12878/alignment/NA12878.chrom20.ILLUMINA.bwa.CEU.low_coverage.20121211.bam
wget ftp://ftp.ncbi.nlm.nih.gov/1000genomes/ftp/data/NA12878/alignment/NA12878.chrom20.ILLUMINA.bwa.CEU.low_coverage.20121211.bam.bai</code></pre>
<p>用这个代码就可以下载千人基因组计划的NA12878样本的第20号染色体相关数据啦</p>
</div>
<div></div>
<div>step3：运行命令</div>
<div><span style="font-family: Monaco,Consolas,Courier,Lucida Console,monospace;">网站给出的实例是：</span></div>
<div>
<pre><code>freebayes -f chr20.fa \
    NA12878.chrom20.ILLUMINA.bwa.CEU.low_coverage.20121211.bam &gt;NA12878.chr20.freebayes.vcf</code></pre>
<p><span style="font-family: Monaco,Consolas,Courier,Lucida Console,monospace;">一般就用默认参数即可</span></p>
</div>
<div><span style="font-family: Monaco,Consolas,Courier,Lucida Console,monospace;"> </span></div>
<div>step4：输出结果解读</div>
<div>没什么好解读的了，反正是vcf文件，都看烂了，就那些东西</div>
<div>不过该软件的作者倒是拿该软件与broad用GATK做出的NA12878样本的突变数据做了比较</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1011.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
