<?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; CHIP-seq数据</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/chip-seq%e6%95%b0%e6%8d%ae/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>deeptools辅助CHIP-seq数据分析-可视化</title>
		<link>http://www.bio-info-trainee.com/2136.html</link>
		<comments>http://www.bio-info-trainee.com/2136.html#comments</comments>
		<pubDate>Thu, 15 Dec 2016 11:20:00 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[CHIP-seq数据]]></category>
		<category><![CDATA[deeptools]]></category>
		<category><![CDATA[热图]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=2136</guid>
		<description><![CDATA[有很多读者来信，CHIP-seq数据比对后的bam文件如果根据基因组的所有基因来 &#8230; <a href="http://www.bio-info-trainee.com/2136.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>有很多读者来信，CHIP-seq数据比对后的bam文件如果根据基因组的所有基因来画热图，profile图呢？</div>
<p><span id="more-2136"></span></p>
<div><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/12/13.png"><img class="alignnone size-full wp-image-2137" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/12/13.png" alt="1" width="684" height="831" /></a></div>
<div>这里隆重推荐deeptools这个软件：</div>
<div></div>
<div><span style="color: #ff0000;"><strong>第一个功能，把bam文件转换为bw格式文件：</strong></span></div>
<div>bamCoverage -b tmp.sorted.bam -o tmp.bw</div>
<div>里面有一个参数非常重要，就是--extendReads 在 macs软件里面也有，macs2 pileup --extsize 200 ，就算是你的reads长度可能不一致，是否需要把它们补齐成一个统一的长度，因为我们只要是测到了reads，就代表那里是有signal的，只是因为我们的测序仪限制，测到的长度不够，或者质量不好，我们QC的时候，把前后碱基给trim掉了。还可以安装基因组的有效大小来对测序深度进行normlization。</div>
<div></div>
<div><span style="color: #ff0000;"><strong>第二个功能，画所有基因附近的信号热图，</strong></span>tools: <a href="http://deeptools.readthedocs.io/en/latest/content/tools/computeMatrix.html">computeMatrix</a>, then <a href="http://deeptools.readthedocs.io/en/latest/content/tools/plotHeatmap.html">plotHeatmap</a></div>
<div><a href="http://deeptools.readthedocs.io/en/latest/content/example_step_by_step.html#heatmaps-and-summary-plots">http://deeptools.readthedocs.io/en/latest/content/example_step_by_step.html#heatmaps-and-summary-plots</a></div>
<div>需要自行下载合适的基因坐标记录文件，BED格式的。把上面两个命令结合起来即可，代码和图形实例如下:</div>
<div><img src="file:///C:/Users/jimmy1314/AppData/Local/YNote/data/jmzeng1314@163.com/31606fda35e24c23a77b611d4270ff9e/clipboard.png" alt="" data-media-type="image" data-attr-org-src-id="F1E18CB636DE4CCEA0318F2F99E2CB43" /></div>
<div><span style="color: #ff0000;"><strong>第3个功能，画profile的图！</strong></span></div>
<div>use <a href="http://deeptools.readthedocs.io/en/latest/content/tools/computeMatrix.html">computeMatrix</a> for all of the signal files (bigWig format) at once</div>
<div>use <a href="http://deeptools.readthedocs.io/en/latest/content/tools/plotProfile.html">plotProfile</a> on the resulting file</div>
<div></div>
<div>还有很多小功能，欢迎大家去探索，这个软件是python软件，安装非常简单：</div>
<blockquote>
<div>## Download and install deepTools</div>
<div>## https://github.com/fidelram/deepTools</div>
<div>## http://deeptools.readthedocs.io/en/latest/content/example_usage.html</div>
<div>pip install pyBigWig --user</div>
<div></div>
<div>cd ~/biosoft</div>
<div>mkdir deepTools &amp;&amp; cd deepTools</div>
<div>git clone https://github.com/fidelram/deepTools ## 130M,</div>
<div>cd deepTools</div>
<div>python setup.py install --user</div>
<div>## 17 tools in ~/.local/bin/</div>
<div>~/.local/bin/deeptools</div>
</blockquote>
<div>安装之后，很多小工具都放到了~/.local/bin/目录：</div>
<div><img src="file:///C:/Users/jimmy1314/AppData/Local/YNote/data/jmzeng1314@163.com/8f0bcadfe7cc4740aa372b33bf2b72b7/clipboard.png" alt="" data-media-type="image" data-attr-org-src-id="1D2CF21DB0C346B9928BBACA7E20859B" /><img class="alignnone size-full wp-image-2138" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/12/21.png" alt="2" width="315" height="393" /></div>
<div>如果你有大批量的bam文件，需要批量做，用下面的脚本啦：</div>
<blockquote>
<div>ls ../bamFiles/*bam |while read id</div>
<div>do</div>
<div>file=$(basename $id )</div>
<div>sample=${file%%.*}</div>
<div>echo $sample</div>
<div>bamCoverage -b $id -o $sample.bw</div>
<div>computeMatrix reference-point --referencePoint TSS -b 10000 -a 10000 -R ~/annotation/CHIPseq/mm10/ucsc.refseq.bed -S $sample.bw --skipZeros -o matrix1_${sample}_TSS.gz --outFileSortedRegions regions1_${sample}_genes.bed</div>
<div>plotHeatmap -m matrix1_${sample}_TSS.gz -out ${sample}.png</div>
<div>done</div>
</blockquote>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/2136.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
