<?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/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>ngsplot辅助CHIP-seq数据分析-可视化</title>
		<link>http://www.bio-info-trainee.com/2229.html</link>
		<comments>http://www.bio-info-trainee.com/2229.html#comments</comments>
		<pubDate>Sun, 01 Jan 2017 02:18:17 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[ngsplot]]></category>
		<category><![CDATA[可视化]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=2229</guid>
		<description><![CDATA[最近在忙一些chip-seq的数据分析项目，它的可视化展现比较复杂一点，自己写程 &#8230; <a href="http://www.bio-info-trainee.com/2229.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>最近在忙一些chip-seq的数据分析项目，它的可视化展现比较复杂一点，自己写程序将会耗费挺长时间的，就想着利用现成的工具，前面试用了deeptools，挺好 的，但是有点慢，是python程序，如下：</div>
<div><a href="http://www.bio-info-trainee.com/2136.html">deeptools辅助CHIP-seq数据分析-可视化</a></div>
<div>现在换一个R程序，这个非常快速，而且绘图个人觉得稍微美观一点，大家也可以都试试看。</div>
<div></div>
<div>首先软件的github里面有源代码，然后作者还四处宣讲这个包的神奇之处，下面的ppt非常言简意赅的描述了它的功能和强大之处。</div>
<div>github: <a href="https://github.com/shenlab-sinai/ngsplot">https://github.com/shenlab-sinai/ngsplot</a></div>
<div>ppt:<a href="http://jura.wi.mit.edu/bio/education/hot_topics/ngsplot/ngsplot_Apr2014.pdf">http://jura.wi.mit.edu/bio/education/hot_topics/ngsplot/ngsplot_Apr2014.pdf</a></div>
<div>example:<a href="https://drive.google.com/drive/folders/0B1PVLadG_dCKN1liNFY0MVM1Ulk">https://drive.google.com/drive/folders/0B1PVLadG_dCKN1liNFY0MVM1Ulk</a></div>
<p><span id="more-2229"></span></p>
<div></div>
<div>安装超级简单啦，只需要去Google的云盘里下载软件和测试数据咯</div>
<div>cd ~/biosoft</div>
<div>mkdir ngsplot &amp;&amp; cd ngsplot</div>
<div>## download by yourself :https://drive.google.com/drive/folders/0B1PVLadG_dCKN1liNFY0MVM1Ulk</div>
<div>tar -zxvf ngsplot-2.61.tar.gz</div>
<div>tar zxvf ngsplot.eg.bam.tar.gz ## 测试数据非常给力，清楚的说明了，CHIP-seq数据分析-可视化需要什么样的数据。</div>
<div>cp ../ngsplot/example/config.example.txt ./ ## 在后面的测试代码需要用</div>
<div></div>
<div>echo 'export PATH=/home/jianmingzeng/biosoft/ngsplot/ngsplot/bin:$PATH' &gt;&gt;~/.bashrc</div>
<div>echo 'export NGSPLOT=/home/jianmingzeng/biosoft/ngsplot/ngsplot' &gt;&gt;~/.bashrc</div>
<div>source ~/.bashrc</div>
<div>## 需要你的服务器安装好R，并且你自己手动安装好这几个包。</div>
<div>install.packages("doMC", dep=T)</div>
<div>install.packages("caTools", dep=T)</div>
<div>install.packages("utils", dep=T)</div>
<div></div>
<div>source("http://bioconductor.org/biocLite.R")</div>
<div>biocLite( "BSgenome" )</div>
<div>biocLite( "Rsamtools" )</div>
<div>biocLite( "ShortRead" )</div>
<div></div>
<div><strong><span style="color: #ff0000;">使用非常简单，看懂ngs.plot.r的用法即可，一个命令就出图了，如果这个出图不满意，就用replot.r重新选择参数绘制一个新的图！</span></strong></div>
<div></div>
<div>前提是自己下载好了基因组文件，本软件自带hg19，其余的基因组有：https://github.com/shenlab-sinai/ngsplot/wiki/SupportedGenomes ， 但是都放在Google云盘里面，所以需要翻墙才能下载的： https://drive.google.com/drive/folders/0B1PVLadG_dCKNEsybkh5TE9XZ1E</div>
<div></div>
<div>测序数据如下：</div>
<div> <a href="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/1.png"><img class="alignnone size-full wp-image-2231" src="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/1.png" alt="1" width="309" height="189" /></a></div>
<div>有了这些测试数据，而且软件里面还自带了测试代码：</div>
<div>ngs.plot.r -G hg19 -R tss -C hesc.H3k4me3.1M.bam -O k4.test</div>
<div>ngs.plot.r -G hg19 -R tss -C config.example.txt -O encode1M.k4k27</div>
<div>如果需要对多个bam文件画图，就根据作者定义的规则来设置好config.example.txt 文件即可</div>
<div><img class="alignnone size-full wp-image-2230" src="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/2.png" alt="2" width="848" height="800" /></div>
<div>如果你对上面的图不满意，可以用replot.r 来重新根据上面的参数来画图。</div>
<div>replot.r prof -I k4.test.zip -O k4.replot -SE 0 -MW 9 -H 0.3</div>
<div>replot.r heatmap -I encode1M.k4k27.zip -O k4k27.replot -GO hc -RR 80</div>
<div></div>
<div>除了以tss来画图，还可以根据genebody或者其它： tss, tes, genebody, exon, cgi, enhancer, dhs or bed</div>
<div>ngs.plot.r -G hg19 -R genebody -F rnaseq -C hesc.RNAseq.1M.bam -O encode1M.rnaseq</div>
<div>ngs.plot.r -G hg19 -R tss -C hesc.H3k4me3.1M.bam:hesc.Input.500K.bam -O k4vsInp</div>
<div></div>
<div>轻轻松松get到作者的意图，然后拿自己的数据就可以做同样的分析图片了！</div>
<div>当然，如果你领悟力比较差，慢慢读人家的github上面的readme吧，实在是太简单了，我都不知道需要我讲什么。</div>
<div>而且运行速度还特快！</div>
<div>当然，也可能是它这个测试文件本来就很小的原因。</div>
<div></div>
<div> The genome files can be found in this Google drive folder: <a href="https://drive.google.com/folderview?id=0B1PVLadG_dCKNEsybkh5TE9XZ1E&amp;usp=sharing">ngs.plot genome folder</a>. A list of the available genomes is listed in this Wiki: <a href="https://github.com/shenlab-sinai/ngsplot/wiki/SupportedGenomes">SupportedGenomes</a>. A brief list is here (not all): "human (hg18, hg19), chimpanzee (panTro4), rhesus macaque (rheMac2), mouse (mm9, mm10), rat (rn4, rn5), cow (bosTau6), chicken (galGal4), zebrafish (Zv9), drosophila (dm3), Caenorhabditis elegans (ce6, ceX), Saccharomyces cerevisiae (sacCer2, sacCer3), Schizosaccharomyces pombe (Asm294), Arabidopsis thaliana (TAIR10), Zea mays (AGPv3), rice (IRGSP-1.0)".</div>
<div></div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/2229.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>生物信息数据分析文章就是看图写作文</title>
		<link>http://www.bio-info-trainee.com/2207.html</link>
		<comments>http://www.bio-info-trainee.com/2207.html#comments</comments>
		<pubDate>Wed, 28 Dec 2016 07:14:39 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[可视化]]></category>
		<category><![CDATA[生物信息分析]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=2207</guid>
		<description><![CDATA[首先是从测试原始数据里面得到汇总数据 然后把各种统计汇总数据可视化成图表 最后根 &#8230; <a href="http://www.bio-info-trainee.com/2207.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>首先是从测试原始数据里面得到汇总数据</div>
<div>然后把各种统计汇总数据可视化成图表</div>
<div>最后根据图表来写作文即可。</div>
<div></div>
<div>来源：Genome-wide Mapping of HATs and HDACs Reveals Distinct Functions in Active and Inactive Genes</div>
<div><a href="http://www.sciencedirect.com/science/article/pii/S0092867409008411">http://www.sciencedirect.com/science/article/pii/S0092867409008411</a></div>
<p><span id="more-2207"></span></p>
<div>比如下面这个图，就是CHIP-seq的数据，比对后根据全基因组的所有基因的区域范围内的reads密度的总结：</div>
<div>  <a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/12/16.png"><img class="alignnone size-full wp-image-2210" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/12/16.png" alt="1" width="483" height="872" /></a></div>
<div>故事该怎么写呢？</div>
<div>首先看图例：</div>
<div>A. Profiles of HATs binding across 5’ gene ends, 3’ gene ends and gene body regions of the 1000 most active, intermediately active and least active genes were examined using ChIP-Seq.txStart: transcription start site. txEnd: transcription end site.</div>
<div>B. Profiles of HATs binding across intergenic (5kb away from any gene) or promoter (defined</div>
<div>as +/− 1kb surrounding TSS) DNase HS sites. DNase HS sites were obtained from (Boyle et</div>
<div>al., 2008).</div>
<div>作者做了5个HATs基因的CHIP-seq数据，根据上面的图，可以把它们分成3组，分别是CBP and p300，PCAF (p300/CBP associated factor) and GCN5，MOF and Tip60，它们虽然都是蛋白质的乙酰化酶，但是它们的CHIP-seq数据表现不一致，仔细看上图就明白了。为什么不一致，就需要解释，解释就需要有生物学背景，比如CBP and p300结构上高度同源，前人研究也表明主要是参与转录起始。而PCAF (p300/CBP associated factor) and GCN5是另外一组的高度同源，前人研究参与转录延伸。最后的MOF and Tip60是MYST family of HATs，跟上面的HATs不大一样，前人研究表明它们参与的功能特别多样性，所以在基因上面的结合密度跟其它不一样。最后再扯一扯它们在其它物种的功能如何如何，跟人类比较一下如何如何。再找几个已有的CHIP-seq数据交叉验证一下，再说一下自己也做实验随机验证了一些，因为高通量测序毕竟不是金标准。</div>
<div></div>
<div>下面这张图是把CHIP-seq数据的reads密度和基因的表达量关联起来，也很简单。</div>
<div><img class="alignnone size-full wp-image-2208" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/12/24.png" alt="2" width="707" height="880" /></div>
<div>故事该怎么写呢?</div>
<div>首先看图例：</div>
<div>C. Correlation between HAT binding and gene expression levels. Genes were grouped to 100</div>
<div>gene (one dot in the figure) sets according to expression level. The HAT binding level in</div>
<div>promoter region was calculated for the same 100 gene sets. The y-axis indicates the HAT</div>
<div>binding level and the x-axis indicates the expression level.</div>
<div>D. Correlation between HAT binding and RNA Pol II binding levels among the 100 gene sets</div>
<div>grouped according to expression levels as defined in panel C. The y-axis indicates the HAT</div>
<div>binding level and the x-axis indicates the Pol II level.</div>
<div>E. Correlation between HAT binding and histone acetylation levels among the 100 gene sets</div>
<div>grouped according to expression levels as defined in panel C. The acetylation level was</div>
<div>calculated by pooling all reads for 18 histone acetylations mapped previously (Wang et al.,</div>
<div>2008). The y-axis indicates the HAT binding level and the x-axis indicates the acetylation level.</div>
<div>图例就很复杂了，但是信息量很少。就是根据转录组数据把基因分区段，不同表达水平的基因组它们的对应的基因的CHIP-seq数据的密码如何，很简单的一个相关图。就是为了说明它们跟基因的表达水平是正相关的。其实表达水平就是polyII的结合密度，也可以看看polyII的结合密度跟这些CHIP-seq的IP的结合密度看看相关性，也能说明同样的结论。</div>
<div></div>
<div>此文的作者把HATs系列酶都做了CHIP-seq数据，同时也把HDACs系列酶也做了CHIPseq数据！~~~</div>
<div>一般人入门生物信息学的时候问题都集中在如何得到可绘图的数据，因为绘图很简单，哪怕是不会R语言，在excel也能做。至于后面的看图写作文，主要是考验生物学底蕴了。</div>
<div></div>
<div>最后说一下下面这个图：</div>
<div><img class="alignnone size-full wp-image-2209" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/12/32.png" alt="3" width="1161" height="752" /></div>
<div></div>
<div>A. Distribution profiles of HDAC6, Tip60, Pol II and H3K36me3 across the active genes were</div>
<div>plotted. The left y-axis indicates tag densities for HDAC6, Tip60 and Pol II. The right axis</div>
<div>indicates tag densities for H3K36me3.</div>
<div>这个没什么好说的了，很明显HATs和HDACs和polyII都是一样的pattern，都代表着转录激活，跟H3K36me6的pattern有显著区别。这个现象很新颖，很有趣，再扯一堆生物学意义就好，为什么HATs和HDACs和polyII都是一样的pattern呢？给自己的假设和猜想。前提是要有生物学背景知识。</div>
<div>而且，如何得到这样的绘图的数据，讲起来就比较复杂了。</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/2207.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>对CHIP-seq数据call peaks应该选取unique比对的reads吗？</title>
		<link>http://www.bio-info-trainee.com/1869.html</link>
		<comments>http://www.bio-info-trainee.com/1869.html#comments</comments>
		<pubDate>Sun, 07 Aug 2016 13:13:18 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[ChIPpeakAnno]]></category>
		<category><![CDATA[makeVennDiagram]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1869</guid>
		<description><![CDATA[对于CHIP-seq数据处理完全是自学的，所以有很多细节得慢慢学习回来，这次记录 &#8230; <a href="http://www.bio-info-trainee.com/1869.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>对于CHIP-seq数据处理完全是自学的，所以有很多细节得慢慢学习回来，这次记录的就是当我们把测序仪的fastq数据比对到参考基因组之后，应该对比对的结果文件做什么样的处理，然后去给peaks caller软件拿来call peaks呢？<strong><span style="color: #ff0000;">我看过博客 提到只保留比对质量值大于30的，也看过博客提到只保留unique比对的reads</span></strong>，我这里拿一篇公共数据测试了一下它们的区别！数据描述如下：<span id="more-1869"></span></p>
<div>
<div><a href="http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE74311">http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE74311</a></div>
</div>
<div>参考流程：<a href="https://github.com/jmzeng1314/NGS-pipeline/tree/master/CHIPseq">https://github.com/jmzeng1314/NGS-pipeline/tree/master/CHIPseq</a></div>
<div>
<div>
<table border="1" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top"><a href="http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSM1916974">GSM1916974</a></td>
<td valign="top">H3K27ac ChIP-seq</td>
<td valign="top">
<div>
<h2>SRR2774675</h2>
</div>
</td>
</tr>
<tr>
<td valign="top"><a href="http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSM1916975">GSM1916975</a></td>
<td valign="top">input DNA</td>
<td valign="top">
<div>
<h2>SRR2774676</h2>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div>首先在SRA数据库下载  SRR2774675.sra 和 SRR2774676.sra</div>
<div>
<div><a href="http://www.ncbi.nlm.nih.gov/sra?term=SRP065184">http://www.ncbi.nlm.nih.gov/sra?term=SRP065184</a></div>
<div>应用我github的流程很快就可以对比对，我把两种方法处理的比对结果都拿去call peaks，然后得到了，两个peaks文件。</div>
<div>39709 highQuaily_peaks.bed<br />
39709 highQuaily_summits.bed</div>
<div>可以看到两次结果得到的peaks条数并没有显著区别，我们简单看看前几行！</div>
<div><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/12.png"><img class="alignnone size-full wp-image-1870" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/12.png" alt="1" width="767" height="181" /></a></div>
<div>其实用bedtools就可以看看左右两边的文件的交集情况，但是我这里选用了ChIPpeakAnno这个R包集成好的函数，直接得到结果即可！</div>
<div>ChIPpeakAnno 包直接看说明书吧，我这里贴出代码：</div>
<blockquote>
<div>library(ChIPpeakAnno)<br />
highPeak &lt;- readPeakFile( 'highQuaily_peaks.bed' )<br />
uniquePeak &lt;- readPeakFile( 'unique_peaks.bed' )<br />
ol &lt;- findOverlapsOfPeaks(highPeak, uniquePeak)<br />
png('overlapVenn.png')<br />
makeVennDiagram(ol)<br />
dev.off()</div>
</blockquote>
<div>然后打开画好的韦恩图：</div>
<div><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/overlapVenn.png"><img class="alignnone size-full wp-image-1871" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/overlapVenn.png" alt="overlapVenn" width="480" height="480" /></a></div>
<div>可以看到这两种情况得到的结果几乎没有区别，如果大家感兴趣可以自己看看它们那些独特的peaks到底是什么原因！</div>
<div>结论就是，说明CHIP-seq数据分析的时候，call peaks那个步骤，<strong>只保留比对质量值大于30的，或者只保留unique比对的reads，从数据处理的角度来讲差别不大，主要看你具体实验意义。</strong></div>
<div></div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1869.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>根据比对的bam文件来对peaks区域可视化</title>
		<link>http://www.bio-info-trainee.com/1843.html</link>
		<comments>http://www.bio-info-trainee.com/1843.html#comments</comments>
		<pubDate>Tue, 02 Aug 2016 13:52:53 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[peaksview]]></category>
		<category><![CDATA[samtools]]></category>
		<category><![CDATA[visualization]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1843</guid>
		<description><![CDATA[之前分析了好几个公共项目，拿到的peaks都很诡异，搞得我一直怀疑是不是自己分析 &#8230; <a href="http://www.bio-info-trainee.com/1843.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>之前分析了好几个公共项目，拿到的peaks都很诡异，搞得我一直怀疑是不是自己分析错了。终于，功夫不负有心人，我分析了一个数据，它的peaks非常完美！！！可以证明，我的分析流程以及peaks绘图代码并没有错！数据来自于<a href="http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE74311">http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE74311</a>，是关于H3K27ac_ChIP-Seq_LOUCY，组蛋白修饰的CHIP-seq数据，很容易就下载了作者上传的测序数据，然后跑了我的流程！<a href="https://github.com/jmzeng1314/NGS-pipeline/tree/master/CHIPseq">https://github.com/jmzeng1314/NGS-pipeline/tree/master/CHIPseq</a><span id="more-1843"></span></p>
<p>本文的重点在于讲解如何查看自己的peaks是否是正确的！<span style="color: #ff0000;"><strong>我是直接用比对的bam文件来用samtools depth命令来获取peaks区域的测序深度，从而画图的，代码见</strong></span><a title="step5-peaks-view-samtools-depth.R" href="https://github.com/jmzeng1314/NGS-pipeline/blob/master/CHIPseq/step5-peaks-view-samtools-depth.R">step5-peaks-view-samtools-depth.R</a></p>
<p>在终端调用我的代码画图命令如下；</p>
<blockquote><p>Rscript ~/scripts/peakView.R ../unique_peaks.bed ../../SRR2774675.unique.sorted.bam ../../SRR2774676.unique.sorted.bam<br />
Rscript ~/scripts/peakView.R ../unique_peaks.bed ../../SRR2774675.unique.sorted.bam ../../SRR2774676.unique.sorted.bam</p></blockquote>
<p>下面随便看两个peaks，很明显是双峰模型，而且IP的测序深度远高于INPUT，数据非常棒！</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/MACS_peak_26338.png"><img class="alignnone size-full wp-image-1844" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/MACS_peak_26338.png" alt="MACS_peak_26338" width="480" height="480" /></a></p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/MACS_peak_26309.png"><img class="alignnone size-full wp-image-1845" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/MACS_peak_26309.png" alt="MACS_peak_26309" width="480" height="480" /></a></p>
<p>&nbsp;</p>
<p>然后我不得不指出如果CHIP-seq实验失败，那么peaks会很诡异，首先你会看到测序深度大多都在10以下，即使有部分测序深度很高的，也是IP和INPUT的测序深度压根就没有差异，下面就是一个典型的失败案例！</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/MACS_peak_525.png"><img class="alignnone size-full wp-image-1846" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/MACS_peak_525.png" alt="MACS_peak_525" width="480" height="480" /></a> <a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/MACS_peak_542.png"><img class="alignnone size-full wp-image-1847" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/08/MACS_peak_542.png" alt="MACS_peak_542" width="480" height="480" /></a></p>
<p>&nbsp;</p>
<p>这种实验失败的数据，实在是无法分析。而转录因子的CHIP-seq实验失败率还挺高的，所以一定要有control，否则再怎么分析也是<strong><span style="color: #ff0000;"> rubbish in rubbish out</span></strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1843.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ChIP-Seq文献数据重新分析解读第二例</title>
		<link>http://www.bio-info-trainee.com/1807.html</link>
		<comments>http://www.bio-info-trainee.com/1807.html#comments</comments>
		<pubDate>Thu, 14 Jul 2016 12:26:58 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[macs2]]></category>
		<category><![CDATA[peaks]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1807</guid>
		<description><![CDATA[paper:2014-BRCA1-PALB2-CHIP-seq:http://w &#8230; <a href="http://www.bio-info-trainee.com/1807.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>paper:2014-BRCA1-PALB2-CHIP-seq:<a href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4194113/">http://www.ncbi.nlm.nih.gov/pmc/articles/PMC4194113/</a></div>
<div>这篇文章是朋友推荐的， 我觉得作为CHIP-seq学习材料再好不过了，所以推荐给大家。是全基因组范围的BRCA1和PALB2的转录共激活机制的探究。<strong><span style="color: #ff0000;">请务必先看我的CHIP-seq自学系列教程，跟着好好学习！</span></strong>数据如下：</div>
<div>GSM997540    BRCA1    SRR553473.sra    Read 18878514 spots</div>
<div>GSM997541    PALB2    SRR553474.sra    Read 17615498 spots</div>
<div>GSM997542    P_Ser2    SRR553475.sra    Read 35396009 spots</div>
<p><span id="more-1807"></span></p>
<div>没有input作为control，但是数据量是足够了的，首先从NCBI里面把作者上传的数据下载回来：</div>
<blockquote>
<div>nohup wget <a href="ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByExp/sra/SRX/SRX182/SRX182682/SRR553473/SRR553473.sra">ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByExp/sra/SRX/SRX182/SRX182682/SRR553473/SRR553473.sra</a> &amp;</div>
<div>nohup wget <a href="ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByExp/sra/SRX/SRX182/SRX182683/SRR553474/SRR553474.sra">ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByExp/sra/SRX/SRX182/SRX182683/SRR553474/SRR553474.sra</a> &amp;</div>
<div>nohup wget <a href="ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByExp/sra/SRX/SRX182/SRX182684/SRR553475/SRR553475.sra">ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByExp/sra/SRX/SRX182/SRX182684/SRR553475/SRR553475.sra</a> &amp;</div>
</blockquote>
<div>因为就3个数据，我就没有写批处理了，反正也要具体进去看看每个数据的描述信息。然后我就批量解压了数据，做了质控，然后做了比对，代码如下：</div>
<blockquote>
<div>ls *sra |while read id; do ~/biosoft/sratoolkit/sratoolkit.2.6.3-centos_linux64/bin/fastq-dump $id;done</div>
<div>rm *sra</div>
<div>ls *.fastq | while read id ; do ~/biosoft/fastqc/FastQC/fastqc $id;done</div>
<div>###<span style="color: #ff0000;"> 36 bp</span>   45 GC%</div>
<div>## cat &gt;runBowtie2.sh</div>
<div>ls *.fastq | while read id ;</div>
<div>do</div>
<div>echo $id</div>
<div>~/biosoft/bowtie/bowtie2-2.2.9/bowtie2 -p 8 -x ~/biosoft/bowtie/hg19_index/hg19 -U $id   -S ${id%%.*}.sam  2&gt;${id%%.*}.align.log;</div>
<div>samtools view -bhS -q 30  ${id%%.*}.sam &gt; ${id%%.*}.bam</div>
<div>#  -F 1548 <a href="https://broadinstitute.github.io/picard/explain-flags.html">https://broadinstitute.github.io/picard/explain-flags.html</a></div>
<div>#  -F 0x4  remove the reads that didn't match</div>
<div>samtools sort   ${id%%.*}.bam ${id%%.*}.sorted  ## prefix for the output</div>
<div>#samtools view  -bhS     a.sam | samtools sort -o  -  ./ &gt; a.bam</div>
<div>samtools index ${id%%.*}.sorted.bam</div>
<div>done</div>
</blockquote>
<div></div>
<div>参考：<a href="http://cbsu.tc.cornell.edu/lab/doc/CHIPseq_workshop_20150504_lecture1.pdf">http://cbsu.tc.cornell.edu/lab/doc/CHIPseq_workshop_20150504_lecture1.pdf</a></div>
<div>有一个讨论很有意思，大家可以关注一下，就是两个ＩＰ是否可以共用同一个ｉｎｐｕｔ的问题：<a href="http://seqanswers.com/forums/showthread.php?t=35377">http://seqanswers.com/forums/showthread.php?t=35377</a></div>
<div>作者在NCBI还上传了一个BigWiggle 格式文件，他是这样描述这个文件的，BigWiggle files for every ChIP-Seq were generated using Bed Tools and the utility bedGraphToBigWig (<a href="http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/)">http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/)</a>; these tracks were then uploaded into the UCSC Genome Browser.</div>
<div>paper:2012-Peak identification for ChIP-seq data with no controls.: <a href="http://www.ncbi.nlm.nih.gov/pubmed/23266983">http://www.ncbi.nlm.nih.gov/pubmed/23266983</a>，我也下载了，但是没有打开看，因为他说的是hg18参考基因组比对的，我觉得很诡异，一个2014年的文章，居然用hg18，我懒得多说了，反正我自己把数据处理一下，接下来用MACS2来call peaks</div>
<blockquote>
<div>nohup time ~/.local/bin/macs2 callpeak 　-t SRR553473.sorted.bam -f BAM -g hs -n BRCA1    2&gt;BRCA1.masc2.log &amp;</div>
<div>nohup time ~/.local/bin/macs2 callpeak 　-t SRR553474.sorted.bam -f BAM -g hs -n PALB2    2&gt;PALB2.masc2.log &amp;</div>
<div>nohup time ~/.local/bin/macs2 callpeak 　-t SRR553475.sorted.bam -f BAM -g hs -n P_Ser2    2&gt;P_Ser2.masc2.log &amp;</div>
</blockquote>
<div>本来我其实比较喜欢peakranger这个软件的，但是## there's no control , we can't use this tool: ranger /ccat /bcp</div>
<div>~/biosoft/PeakRanger/bin/peakranger ranger --format bam  SRR553473.sorted.bam \  ##错误啦</div>
<div> --report --gene_annot_file hg19refGene.txt -q 0.05  -t 4</div>
<div>有一些关于各个peaks caller工具的讨论，大家可以瞧瞧。</div>
<div>Some peak callers work without control data and assume an even background signal, others make use of blacklist tools, that mask regions of the genome e.g. RepeatMasker and the “Duke excluded regions” list that was developed for the ENCODE project.</div>
<div><a href="http://epigenie.com/guide-peak-calling-for-chip-seq/">http://epigenie.com/guide-peak-calling-for-chip-seq/</a></div>
<div>因为要接下来使用CEAS这个软件，需要wig格式的文件：</div>
<div>## change sort bam files to wig files</div>
<blockquote>
<div>nohup samtools depth SRR553473.sorted.bam | perl -ne 'BEGIN{ print "track type=print wiggle_0 name=SRR553473 description=SRR553473\n"}; ($c, $start, $depth) = split; if ($c ne $lastC) { print "variableStep chrom=$c span=10\n"; };$lastC=$c; next unless $. % 10 ==0;print "$start\t$depth\n" unless $depth&lt;3' &gt; SRR553473.wig    &amp;</div>
<div>nohup samtools depth SRR553474.sorted.bam | perl -ne 'BEGIN{ print "track type=print wiggle_0 name=SRR553474 description=SRR553474\n"}; ($c, $start, $depth) = split; if ($c ne $lastC) { print "variableStep chrom=$c span=10\n"; };$lastC=$c; next unless $. % 10 ==0;print "$start\t$depth\n" unless $depth&lt;3' &gt; SRR553474.wig    &amp;</div>
<div>nohup samtools depth SRR553475.sorted.bam | perl -ne 'BEGIN{ print "track type=print wiggle_0 name=SRR553475 description=SRR553475\n"}; ($c, $start, $depth) = split; if ($c ne $lastC) { print "variableStep chrom=$c span=10\n"; };$lastC=$c; next unless $. % 10 ==0;print "$start\t$depth\n" unless $depth&lt;3' &gt; SRR553475.wig    &amp;</div>
</blockquote>
<div>CEAS文件还需要bed格式的peaks，而MACS2改的是自定义格式， 所以我写了一个脚本来转换</div>
<blockquote>
<div>## cat &gt;xls2bed.sh</div>
<div>ls *.xls | while read id ;</div>
<div>do</div>
<div>echo $id</div>
<div>grep '^chr\S' $id |perl -alne '{print "$F[0]\t$F[1]\t$F[2]\t$F[9]\t$F[7]\t+"}' &gt;${id%%.*}.bed</div>
<div>done</div>
<div>bash xls2bed.sh</div>
</blockquote>
<div>接下来就很简单啦，用CEAS来画一些图：</div>
<blockquote>
<div>cd ~/CHIPseq_test/annotation</div>
<div>nohup ~/.local/bin/ceas --name=BRCA1_ceas --pf-res=20 --gn-group-names='Top 10%,Bottom 10%'  -g hg19.refGene \</div>
<div>-b ~/CHIPseq_test/BRAC1-PALB2/raw/BRCA12_peaks.bed -w  ~/CHIPseq_test/BRAC1-PALB2/raw/SRR553473.wig  2&gt;BRCA1.ceas.log &amp;</div>
<div>nohup ~/.local/bin/ceas --name=PALB2_ceas --pf-res=20 --gn-group-names='Top 10%,Bottom 10%'  -g hg19.refGene \</div>
<div>-b ~/CHIPseq_test/BRAC1-PALB2/raw/PALB22_peaks.bed -w  ~/CHIPseq_test/BRAC1-PALB2/raw/SRR553474.wig  2&gt;PALB2.ceas.log &amp;</div>
<div>nohup ~/.local/bin/ceas --name=P_Ser2_ceas --pf-res=20 --gn-group-names='Top 10%,Bottom 10%'  -g hg19.refGene \</div>
<div>-b ~/CHIPseq_test/BRAC1-PALB2/raw/P_Ser22_peaks.bed -w  ~/CHIPseq_test/BRAC1-PALB2/raw/SRR553475.wig  2&gt;P_Ser2.ceas.log &amp;</div>
</blockquote>
<div>然后我还用了<a title="详细阅读 用网页版工具ChIPseek来可视化CHIP-seq的peaks结果" href="http://www.bio-info-trainee.com/1773.html" rel="bookmark">用网页版工具ChIPseek来可视化CHIP-seq的peaks结果</a></div>
<div>结果一个月内是有效的，大家可以点进去瞧瞧(开始时间2016年7月12)<a href="http://chipseek.cgu.edu.tw/main_menu.py?job_id=1468305524.156">http://chipseek.cgu.edu.tw/main_menu.py?job_id=1468305524.156</a></div>
<div>Alternatively, You may use the job ID: 1468305524.156 to visit ChIPseek latter.</div>
<div>基本就是我前面写的CHIP-seq数据自学系列教程的实践！！！</div>
<div>
<h2><a title="详细阅读 自学CHIP-seq分析第九讲~CHIP-seq可视化大全" href="http://www.bio-info-trainee.com/1770.html" rel="bookmark">自学CHIP-seq分析第九讲~CHIP-seq可视化大全</a></h2>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1807.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ChIP-Seq文献数据重新分析解读第一例</title>
		<link>http://www.bio-info-trainee.com/1795.html</link>
		<comments>http://www.bio-info-trainee.com/1795.html#comments</comments>
		<pubDate>Wed, 13 Jul 2016 14:50:22 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[macs2]]></category>
		<category><![CDATA[peaks]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1795</guid>
		<description><![CDATA[文章是：Genome-wide maps of H3K4me2/3 in pro &#8230; <a href="http://www.bio-info-trainee.com/1795.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>
<div>文章是：Genome-wide maps of H3K4me2/3 in prostate cancer cell line LNCaP，数据在GEO可以下载。<a href="http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE20042">GSE20042</a>，下面的所有分析，需要26G的空间。</div>
<div>作者想看看用 dihydrotestosterone （<em>雄激素</em>）处理了 cancer cell line LNCaP 这个细胞系之后，看看组蛋白甲基化修饰变化，主要是看H3K4me2和H3K4me3这两种组蛋白甲基化区别，分成三组，分别是处理前，处理后4H和16H，共有5个条件的数据，但是有7个fastq文件。</div>
<div><span id="more-1795"></span></div>
<div>测序仪是：Illumina Genome Analyzer (Homo sapiens)</div>
<div>主要是为了分析差异 核小体定位点 区别：Model for identifying differential transcription factor binding locations</div>
<div>作者在这里进行数据分析软件(NPS)很旧了，也是哈佛刘小乐实验室出品的，我这里就不用了。</div>
<div>数据处理详情如下：</div>
<div>Bed: Sequence reads were obtained and mapped to the human genome (March, 2006) using the Illumina Genome Analyzer Pipeline.<br />
Peaks: Peak detection was performed with the "Nucleosome Positioning from Sequencing (NPS)" algorithm (<a href="http://liulab.dfci.harvard.edu/NPS/">http://liulab.dfci.harvard.edu/NPS/</a>)<br />
Processed data file build: hg18</div>
<div>所以我重新重复这 个数据分析，用的hg19，还有MACS2z这个软件</div>
<div>作者同时也测了芯片数据：Affymetrix U133 Plus 2.0 microarray data，但是似乎并没有给地址，我们先不管</div>
<div></div>
<div>首先下载数据</div>
<blockquote>
<div>cd ~/CHIPseq_test/</div>
<div>mkdir GSE20042_H3K4me2_3 &amp;&amp; cd GSE20042_H3K4me2_3</div>
<div>mkdir rawData &amp;&amp; cd rawData</div>
<div>for ((i=146;i&lt;153;i++)) ;do wget <a href="ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP002/SRP002077/SRR037">ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP002/SRP002077/SRR037</a>$i/SRR037$i.sra;done</div>
</blockquote>
<div>GSM503903    H3K4me2_Vehicle_ChIPSeq    SRR037146(Read 7,530,267 spots )/SRR037147(Read 6,215,981 spots )</div>
<div>GSM503904    H3K4me2_DHT_4h_ChIPSeq    SRR037148(Read 6,510,159 spots )/SRR037149(Read 6,246,716 spots )</div>
<div>GSM503905    H3K4me2_DHT_16h_ChIPSeq    SRR037150    Read 9,685,845 spots</div>
<div>GSM503906    H3K4me3_Vehicle_ChIPSeq    SRR037151    Read 6,755,854 spots</div>
<div>GSM503907    H3K4me3_DHT_4h_ChIPSeq    SRR037152    Read 4,761,769 spots</div>
<div>## 可以看到测序量并不大，因为文章比较老了，其实现在一般要测20M的reads</div>
<blockquote>
<div>ls *sra |while read id; do ~/biosoft/sratoolkit/sratoolkit.2.6.3-centos_linux64/bin/fastq-dump $id;done</div>
<div>rm *sra</div>
<div>ls *.fastq | while read id ; do ~/biosoft/fastqc/FastQC/fastqc $id;done</div>
<div>mkdir QC_results</div>
<div>mv *zip *html QC_results/</div>
<div>##接下来做比对</div>
<div>## cat &gt;run_bowtie2.sh  运行这个脚本批量做alignment</div>
<div>ls *.fastq | while read id ;</div>
<div>do</div>
<div>echo $id</div>
<div>~/biosoft/bowtie/bowtie2-2.2.9/bowtie2 -3 5 -p 8 -x ~/biosoft/bowtie/hg19_index/hg19 -U $id   -S ${id%%.*}.sam  2&gt;${id%%.*}.align.log;</div>
<div>samtools view -bhS -q 30  ${id%%.*}.sam &gt; ${id%%.*}.bam  ## -F 1548 <a href="https://broadinstitute.github.io/picard/explain-flags.html">https://broadinstitute.github.io/picard/explain-flags.html</a></div>
<div>samtools sort   ${id%%.*}.bam ${id%%.*}.sorted  ## prefix for the output</div>
<div>samtools index ${id%%.*}.sorted.bam</div>
<div>done</div>
</blockquote>
<div>然后下载GEO的核小体定位点(peaks)结果：</div>
<blockquote>
<div>tar xvf GSE20042_RAW.tar</div>
<div>ls *gz |xargs gunzip</div>
<div>wc -l *txt</div>
<div>  235639 GSM503903_LNCaP_H3K4me2_Vehicle_2Lanes_normalized_peak.txt</div>
<div>  248570 GSM503904_LNCaP_H3K4me2_DHT_4h_2Lanes_normalized_peak.txt</div>
<div>  185892 GSM503905_LNCaP_H3K4me2_DHT_16h_peak.txt</div>
<div>   74491 GSM503906_LNCaP_H3K4me3_Vehicle_normalized_peak.txt</div>
<div>  104022 GSM503907_LNCaP_H3K4me3_DHT_4h_normalized_peak.txt</div>
</blockquote>
<div>然后根据比对的bam文件来可视化这些核小体peaks,很诡异，不知道他是如何找到的这些peaks，这些peaks画图之后根本看不出来，后来我才知道，是因为peaks的位点是hg18的坐标，而我用的是自己的bam文件来画图，所以~~~~</div>
<div>画图代码如下：</div>
<div>Rscript <b><span style="color: #ff0000;">~/CHIPseq_test/peakView.R</span></b> GSM503907_LNCaP_H3K4me3_DHT_4h_normalized_peak.bed  ../rawData/SRR037152.sorted.bam</div>
<div><b><span style="color: #ff0000;">这个peakView.R代码很简单，就是用samtools depth命令提取每个peaks区域的坐标，然后画曲线即可</span></b></div>
<div>然后我用MACS2软件来call peaks 看看：</div>
<div># <a href="http://www2.uef.fi/documents/1698400/2466431/Macs2/f4d12870-34f9-43ef-bf0d-f5d087267602">http://www2.uef.fi/documents/1698400/2466431/Macs2/f4d12870-34f9-43ef-bf0d-f5d087267602</a></div>
<div><span style="color: #ff0000;"><b>ls *sorted.bam |while read id;do ( nohup time ~/.local/bin/macs2 callpeak -t $id -f BAM -g hs -n ${id%%.*} 2&gt;${id%%.*}.masc2.log &amp;) ;done  </b></span></div>
<div><span style="color: #ff0000;"><b>## 这里批量对7个测序文件做peaks callling </b></span></div>
<div>mkdir ../MACS2results</div>
<div>mv *bed *xls *Peak *r  ../MACS2results</div>
<div>cd ../MACS2results</div>
<div>ls *.xls | while read id ;</div>
<div>do</div>
<div>echo $id</div>
<div><b>grep '^chr\S' $id |perl -alne '{print "$F[0]\t$F[1]\t$F[2]\t$F[9]\t$F[7]\t+"}' &gt;${id%%.*}.bed</b></div>
<div>done</div>
<div>然后重新浏览peaks</div>
<div>Rscript ~/CHIPseq_test/peakView.R SRR037152_peaks.bed  ../rawData/SRR037152.sorted.bam</div>
<div>看起来我call的peaks还挺靠谱的， 图片以后再上传！</div>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1795.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用CEAS软件来对CHIP-seq的peaks进行</title>
		<link>http://www.bio-info-trainee.com/1779.html</link>
		<comments>http://www.bio-info-trainee.com/1779.html#comments</comments>
		<pubDate>Thu, 07 Jul 2016 13:09:10 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[基础软件]]></category>
		<category><![CDATA[CEAS]]></category>
		<category><![CDATA[CHIP-seq]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1779</guid>
		<description><![CDATA[哈佛刘小乐实验室出品的软件，可以跟MACS软件call到的peaks文件无缝连接 &#8230; <a href="http://www.bio-info-trainee.com/1779.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>哈佛刘小乐实验室出品的软件，可以跟MACS软件call到的peaks文件无缝连接，实现peaks的注释以及可视化分析</div>
<div>该软件的主页里面很清楚的介绍了它可以做的图，以及每个图的意义：<a href="http://liulab.dfci.harvard.edu/CEAS/usermanual.html">http://liulab.dfci.harvard.edu/CEAS/usermanual.html</a></div>
<div>我这里简单讲一下该软件如何安装以及使用，我这里还是使用我们的CHIP-seq分析系列教程的测试数据。</div>
<p><span id="more-1779"></span></p>
<div>## 首先安装软件，是一个python程序，非常好安装</div>
<div>
<blockquote>
<div>## Download and install CEAS</div>
<div>## <a href="http://liulab.dfci.harvard.edu/CEAS/download.html">http://liulab.dfci.harvard.edu/CEAS/download.html</a></div>
<div>cd ~/biosoft</div>
<div>mkdir CEAS  &amp;&amp;  cd CEAS</div>
<div>wget  <a href="http://liulab.dfci.harvard.edu/CEAS/src/CEAS-Package-1.0.2.tar.gz">http://liulab.dfci.harvard.edu/CEAS/src/CEAS-Package-1.0.2.tar.gz</a></div>
<div>tar zxvf CEAS-Package-1.0.2.tar.gz</div>
<div>cd  CEAS-Package-1.0.2</div>
<div>python setup.py install --user</div>
<div>## <a href="http://liulab.dfci.harvard.edu/CEAS/usermanual.html">http://liulab.dfci.harvard.edu/CEAS/usermanual.html</a></div>
<div> ~/.local/bin/ceas --help</div>
</blockquote>
<div>## 然后测试软件自带的数据</div>
<blockquote>
<div>cd ~/biosoft/CEAS</div>
<div>mkdir testData  &amp;&amp;  cd testData</div>
<div>## Human CD4T+ H3K36me3 ChIP-Seq data</div>
<div>wget <a href="http://liulab.dfci.harvard.edu/CEAS/src/H3K36me3_MACS_pval1e-5_peaks.bed.zip">http://liulab.dfci.harvard.edu/CEAS/src/H3K36me3_MACS_pval1e-5_peaks.bed.zip</a></div>
<div>wget <a href="http://liulab.dfci.harvard.edu/CEAS/src/H3K36me3.wig.zip">http://liulab.dfci.harvard.edu/CEAS/src/H3K36me3.wig.zip</a></div>
<div>#########################run CEAS in the default mode##########################</div>
<div>$ ceas -g gdb -b bed -w wig</div>
<div>where gdb, bed, and wig stands for a sqlite3 file with a gene annotation table and genome background annotation, a BED file with ChIP regions, and a WIG file with ChIP enrichment signal file, respectively.</div>
<div>#########################example for test data : ####################</div>
<div>wget <a href="http://liulab.dfci.harvard.edu/CEAS/src/hg18.refGene.gz">http://liulab.dfci.harvard.edu/CEAS/src/hg18.refGene.gz</a></div>
</blockquote>
<div>数据详情如下：</div>
<div>300M May 20  2009 H3K36me3.wig</div>
<div> 68M May 20  2009 H3K36me3.wig.zip</div>
<div>110K May 20  2009 H3K36me3_MACS_pval1e-5_peaks.bed</div>
<div> 43K May 20  2009 H3K36me3_MACS_pval1e-5_peaks.bed.zip</div>
<div> 11M Dec  2  2010 hg18.refGene</div>
<div>用测试数据来测试我们的CEAS软件：</div>
<blockquote>
<div>~/.local/bin/ceas --name=H3K36me3_ceas --pf-res=20 \</div>
<div>--gn-group-names='Top 10%,Bottom 10%' -g hg18.refGene -b H3K36me3_MACS_pval1e-5_peaks.bed -w H3K36me3.wig</div>
</blockquote>
<div></div>
<div>但是有个重点，如何获取wig文件： <a href="https://github.com/crazyhottommy/ChIP-seq-analysis">https://github.com/crazyhottommy/ChIP-seq-analysis</a></div>
<div>因为我这里只是用了bowtie比对了得到了bam文件，并没有用MACS软件</div>
<div>GSM1278641    Xu_MUT_rep1_BAF155_MUT    SRR1042593</div>
<div>GSM1278642    Xu_MUT_rep1_Input    SRR1042594</div>
<div>我用的是perl单行命令把bam文件转为wig格式，我这里就拿上面两个样本数据做例子：</div>
<blockquote>
<div>samtools depth SRR1042593.sorted.bam | perl -ne 'BEGIN{ print "track type=print wiggle_0 name=SRR1042593 description=SRR1042593\n"}; ($c, $start, $depth) = split; if ($c ne $lastC) { print "variableStep chrom=$c span=10\n"; };$lastC=$c; next unless $. % 10 ==0;print "$start\t$depth\n" unless $depth&lt;3' &gt; SRR1042593.wig</div>
<div>samtools depth SRR1042594.sorted.bam | perl -ne 'BEGIN{ print "track type=print wiggle_0 name=SRR1042594 description=SRR1042594\n"}; ($c, $start, $depth) = split; if ($c ne $lastC) { print "variableStep chrom=$c span=10\n"; };$lastC=$c; next unless $. % 10 ==0;print "$start\t$depth\n" unless $depth&lt;3' &gt; SRR1042594.wig</div>
</blockquote>
<div></div>
<div>通过上面的学习，我们学会了该软件的使用，就可以拿自己的数据来玩一玩了。</div>
<div></div>
<blockquote>
<div>## 然后处理我们直接的数据</div>
<div>mkdir annotation  &amp;&amp;  cd annotation</div>
<div>wget <a href="http://liulab.dfci.harvard.edu/CEAS/src/hg19.refGene.gz">http://liulab.dfci.harvard.edu/CEAS/src/hg19.refGene.gz</a> ; gunzip hg19.refGene.gz</div>
<div></div>
<div>~/.local/bin/ceas --name=H3K36me3_ceas --pf-res=20 --gn-group-names='Top 10%,Bottom 10%'  \</div>
<div>-g hg19.refGene -b  ../paper_results/GSM1278641_Xu_MUT_rep1_BAF155_MUT.peaks.bed -w ../rawData/SRR1042593.wig</div>
</blockquote>
<div></div>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1779.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用网页版工具GREAT来对CHIP-seq的peaks进行下游功能分析</title>
		<link>http://www.bio-info-trainee.com/1776.html</link>
		<comments>http://www.bio-info-trainee.com/1776.html#comments</comments>
		<pubDate>Thu, 07 Jul 2016 12:57:16 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[基础软件]]></category>
		<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[GREAT]]></category>
		<category><![CDATA[Peak]]></category>
		<category><![CDATA[表观遗传学]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1776</guid>
		<description><![CDATA[一般做完一个CHIP-seq测序，如果实验设计没有问题，测序质量也OK的话，很容 &#8230; <a href="http://www.bio-info-trainee.com/1776.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>一般做完一个CHIP-seq测序，如果实验设计没有问题，测序质量也OK的话，很容易了根据序列call到符合要求的peaks，或者可以去很多文章或者roadmap里面下载到非常多有意义的peaks文件， 一般是BED格式文件，这是就需要对这些peaks进行各种各样的注释以及可视化了，还有根据peaks相关的基因可以做各种各样的下游分析，包括各种pathway数据库的富集，MsigDB数据库注释，gene ontology的注释等等，此时不得不强烈推荐一款网页版工具，是斯坦福大学的学者开发的GREAT。</div>
<div>此工具的出现主要是为了解决基因组上面的非编码区域注释缺乏的问题，而我们CHIP-seq实验得到的peaks结果通常就是在非编码区域</div>
<div>首先进入该工具主页：<a href="http://bejerano.stanford.edu/great/public/html/">http://bejerano.stanford.edu/great/public/html/</a></div>
<div>该工具每次只能上传一个文件，就是我们call出来的peaks记录文件，支持bed格式的：</div>
<p><span id="more-1776"></span></p>
<div><img src="file:///C:/Users/Jimmy/AppData/Local/YNote/data/jmzeng1314@163.com/bdca6085cc244e189dde97884eaffb9f/clipboard.png" alt="" data-media-type="image" data-attr-org-src-id="D111C24FB0814EB78D691103DB4FEE19" data-attr-org-img-file="file:///C:/Users/Jimmy/AppData/Local/YNote/data/jmzeng1314@163.com/bdca6085cc244e189dde97884eaffb9f/clipboard.png" /><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/07/tmp.png"><img class="alignnone size-full wp-image-1777" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/07/tmp.png" alt="tmp" width="652" height="191" /></a></div>
<div>一般很快就可以出结果啦！</div>
<div>首先会有三个图，都是很常见的，大家随便看看咯</div>
<div>Number of associated genes per region</div>
<div>Binned by orientation and distance to TSS</div>
<div>Binned by absolute distance to TSS</div>
<div>然后就是pathway和GO注释啦</div>
<div>这个网站提供的pathway非常之多，还是蛮全面的，包括KEGG，biocarta,reactome,msigdb等等还有一些signature和gene families，相当于一站式完成了大部分下游分析</div>
<div>
<h3> <a href="http://bejerano.stanford.edu/help/display/GREAT/Gene+Ontology" target="_blank">GO Molecular Function</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/Gene+Ontology" target="_blank">GO Biological Process</a> (no terms)</h3>
<h3> <a href="http://bejerano.stanford.edu/help/display/GREAT/Gene+Ontology" target="_blank">GO Cellular Component</a> (no terms)</h3>
<p>The test set of 5,225 genomic regions picked 2,992 (17%) of all 18,041 genes.<br />
<i>GO Molecular Function</i> has 3,688 terms covering 15,090 (84%) of all 18,041 genes, and 189,388 term - gene associations.</p>
<div>3,688 ontology terms (100%) were tested using an annotation count range of [1, Inf].</div>
<p>The test set of 5,225 genomic regions picked 2,992 (17%) of all 18,041 genes.<br />
<i>GO Biological Process</i> has 10,440 terms covering 15,441 (86%) of all 18,041 genes, and 950,065 term - gene associations.</p>
<div>10,440 ontology terms (100%) were tested using an annotation count range of [1, Inf].</div>
</div>
<div>The test set of 5,225 genomic regions picked 2,992 (17%) of all 18,041 genes.<br />
<i>GO Biological Process</i> has 10,440 terms covering 15,441 (86%) of all 18,041 genes, and 950,065 term - gene associations.</p>
<div>10,440 ontology terms (100%) were tested using an annotation count range of [1, Inf].</div>
</div>
<div>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/Mouse+Phenotype" target="_blank">Mouse Phenotype</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/Human+Phenotype" target="_blank">Human Phenotype</a> (no terms)</h3>
<h3> <a href="http://bejerano.stanford.edu/help/display/GREAT/Disease+Ontology" target="_blank">Disease Ontology</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/MSigDB+Cancer+Neighborhood" target="_blank">MSigDB Cancer Neighborhood</a> (no terms)</h3>
<h3> <a href="http://bejerano.stanford.edu/help/display/GREAT/Placenta+Disorders" target="_blank">Placenta Disorders</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/PANTHER+Pathway" target="_blank">PANTHER Pathway</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/BioCyc+Pathway" target="_blank">BioCyc Pathway</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/MSigDB+Pathway" target="_blank">MSigDB Pathway</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/MGI+Expression" target="_blank">MGI Expression: Detected</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/MSigDB+Perturbation" target="_blank">MSigDB Perturbation</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/MSigDB+Predicted+Promoter+Motifs" target="_blank">MSigDB Predicted Promoter Motifs</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/MSigDB+miRNA+Motifs" target="_blank">MSigDB miRNA Motifs</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/InterPro" target="_blank">InterPro</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/InterPro" target="_blank">InterPro</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/HGNC+Gene+Families" target="_blank">HGNC Gene Families</a> (no terms)</h3>
<h3> <a href="http://bejerano.stanford.edu/help/display/GREAT/MSigDB+Oncogenic+Signatures" target="_blank">MSigDB Oncogenic Signatures</a> (no terms)</h3>
<h3><a href="http://bejerano.stanford.edu/help/display/GREAT/MSigDB+Immunologic+Signatures" target="_blank">MSigDB Immunologic Signatures</a> (no terms)</h3>
<p>The test set of 5,225 genomic regions picked 2,992 (17%) of all 18,041 genes.<br />
<i>MSigDB Immunologic Signatures</i> has 1,910 terms covering 16,609 (92%) of all 18,041 genes, and 363,333 term - gene associations.</p>
<div>1,910 ontology terms (100%) were tested using an annotation count range of [1, Inf].</div>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1776.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自学CHIP-seq分析第九讲~CHIP-seq可视化大全</title>
		<link>http://www.bio-info-trainee.com/1770.html</link>
		<comments>http://www.bio-info-trainee.com/1770.html#comments</comments>
		<pubDate>Thu, 07 Jul 2016 12:53:47 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[IGV]]></category>
		<category><![CDATA[sushi]]></category>
		<category><![CDATA[可视化]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1770</guid>
		<description><![CDATA[讲到这里，我们的自学CHIP-seq分析系列教程就告一段落了，当然，我会随时查漏 &#8230; <a href="http://www.bio-info-trainee.com/1770.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>讲到这里，我们的自学CHIP-seq分析系列教程就告一段落了，当然，我会随时查漏补缺，根据读者的反馈来更新着系列教程。其实可视化这已经是一个比较复杂的方向了，不仅仅是针对于CHIP-seq数据。可视化本身是发文章的先决条件，而让人一目了然图片也说明了数据分析人员对数据本身的理解。我这里就列出一些目录和一些工具，和ppt。这个主要靠大家自学了，而且我博客空间有限，就不上传一大堆图片了，大家随便找一些经典的paper里面都会有很多可视化分析。</p>
<div>
<p>首先强烈推荐两个网页版工具，针对找到的peaks可视化:</p>
<div><a href="http://chipseek.cgu.edu.tw/">http://chipseek.cgu.edu.tw/</a></div>
<div><a href="http://bejerano.stanford.edu/great/public/html/">http://bejerano.stanford.edu/great/public/html/</a></div>
<p>然后再推荐一个哈佛刘小乐实验室出品的软件，也是专门为了作图<a href="http://liulab.dfci.harvard.edu/CEAS/usermanual.html">http://liulab.dfci.harvard.edu/CEAS/usermanual.html</a></p>
</div>
<p><span id="more-1770"></span></p>
<div>还有一个java工具：也可以可视化CHIP-seq的peaks结果EXPANDER (EXpression Analyzer and DisplayER) is a java-based tool for analysis of gene expression data.<a href="http://acgt.cs.tau.ac.il/expander/help/ver7.0Help/html/Input_Data_.htm">http://acgt.cs.tau.ac.il/expander/help/ver7.0Help/html/Input_Data_.htm</a></div>
<div>然后来随意上传一张图片吧</div>
<div><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/07/nn.3808-F1-multiple-IP-chip-seq-data-visualization.jpg"><img class="alignnone  wp-image-1771" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/07/nn.3808-F1-multiple-IP-chip-seq-data-visualization.jpg" alt="nn.3808-F1-multiple-IP-chip-seq-data-visualization" width="711" height="575" /></a></div>
<div>然后我所了解的图片大概有下面这些，都是有专门的软件，甚至自己写脚本也可以做的：</div>
<div>peaks长度分布柱状图</div>
<div>每个peak的测序情况可视化(IGV,sushi)</div>
<div>测序reads在全基因组各个染色体的分布(Chromosome ideograms)</div>
<div></div>
<div>
<div><b><span lang="ZH-CN">reads相对基因位置分布统计</span></b></div>
<div><b><span lang="ZH-CN">peaks相对基因位置分布统计</span></b></div>
<div><b><span lang="ZH-CN">reads在基因组位置分布统计（染色体分开作图）</span></b></div>
<div><b><span lang="ZH-CN">peaks<b><span lang="ZH-CN">在基因组</span></b>位置分布统计<b><span lang="ZH-CN">（染色体分开作图）</span></b></span></b></div>
<div></div>
<div>统计peaks在各种基因组区域(基因上下游，5,3端UTR，启动子，内含子，外显子，基因间区域，microRNA区域)分布情况，条形图和饼图均可</div>
</div>
<div>
<div>
<p>Peak<span lang="ZH-CN">与转录起始位点距离的分析（曲线图和热图）</span></p>
</div>
<div>Average ChIP-Seq Gene Profile</div>
<div>ChIP-Seq Browser Tracks with Peak Calling</div>
</div>
<div></div>
<div>visualizes how ChIP regions are distributed over the genome along with their scores or peak heights.</div>
<div></div>
<div>
<div>可视化比较whole tiled or mappable regions +  whole regions 这两种区域在全基因组各个染色体的百分比（百分比横向条形图）以及在各种genomic features的分布（百分比条形图）</div>
</div>
<div></div>
<div>
<div> display the average ChIP enrichment signals around TSS and TTS of genes, respectively（一般会把基因分成TOP10%，BOTTOM10%和ALL）</div>
</div>
<div></div>
<div>
<div>Since exon and intron lengths highly vary from gene to gene, CEAS groups exons (or introns) into multiple classes by length 看它们上面的 ChIP enrichment signals 分布情况</div>
</div>
<div></div>
<div>
<div> the average ChIP signal profiles on top 10 % , middle 10 %, and bottom 10 % of expressed genes</div>
<div></div>
<div>
<div>最后总结一下</div>
<div>其实有个国外的哥们也写过类似的自学教程：</p>
<div><span style="color: #ff0000;">一个实际的CHIP-seq数据分析例子： <a href="http://www.biologie.ens.fr/">http://www.biologie.ens.fr/</a>~mthomas/other/chip-seq-training/</span></div>
<div>CHIP-seq pipeline :　<a href="http://www.slideshare.net/COST-events/chipseq-data-analysis">http://www.slideshare.net/COST-events/chipseq-data-analysis</a></div>
<div>
<div></div>
<div>然后大家一定要看这个ChIP-seq guidelines and practices of the ENCODE and modENCODE consortia.  <a href="http://www.ncbi.nlm.nih.gov/pubmed/22955991">http://www.ncbi.nlm.nih.gov/pubmed/22955991</a></div>
</div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1770.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>自学CHIP-seq分析第八讲~寻找motif</title>
		<link>http://www.bio-info-trainee.com/1767.html</link>
		<comments>http://www.bio-info-trainee.com/1767.html#comments</comments>
		<pubDate>Thu, 07 Jul 2016 12:45:38 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[findMotifsGenome]]></category>
		<category><![CDATA[HOMER]]></category>
		<category><![CDATA[meme]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1767</guid>
		<description><![CDATA[motif是比较有特征的短序列，会多次出现的，一般认为它的生物学意义重大，做完C &#8230; <a href="http://www.bio-info-trainee.com/1767.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>
<div>motif是比较有特征的短序列，会多次出现的，一般认为它的生物学意义重大，做完CHIP-seq分析之后，一般都会寻找motif 。查找有两种，一种是de novo的，要求的输入文件的fasta序列，一般是根据peak的区域的坐标提取好序列 。另一种是依赖于数据库的搜寻匹配，很多课题组会将现有的ChIP-seq数据进行整合，提供更全面，更准确的motif数据库。</div>
</div>
<p><span id="more-1767"></span></p>
<div><span style="color: #ff0000;">motif的定义如下：</span></div>
<div>
<p>motif: recurring pattern. eg, sequence motif, structure motif or network motif</p>
<p>DNA sequence motif: short, recurring patterns in DNA that are presumed to have a biological function.</p>
<p>从上边的定义可以看出，其实motif这个<b>单词</b>就是形容一种反复出现的模式，而<b>序列motif</b>往往是DNA上的反复出现的模式，并被假设拥有生物学功能。而且，经常是一些具有序列特异性的蛋白的结合位点（如，转录因子）或者是涉及到重要生物过程的（如，RNA 起始，RNA 终止， RNA 剪切等等）。</p>
<p>摘抄自：<a href="http://blog.163.com/zju_whw/blog/static/225753129201532104815301/">http://blog.163.com/zju_whw/blog/static/225753129201532104815301/</a></p>
</div>
<div>
<div>motif最先是通过实验的方法发现的，换句话说，不是说有了ChIP-seq才有了motif分析，起始很早人们就开始研究motif了！例如，‘TATAAT’ box在1975年就被pribnow发现了，它与‘上游的‘TTGACA’motif是RNA聚合酶结合位点的特异性序列。而且，当时的人们就知道，不是所有的结合位点都一定完美地与motif匹配，大部分都只匹配了12个碱基中的7-9个。结合位点与motif的匹配程度往往也与蛋白质与DNA的结合强弱有关。目前被人们识别出来的motif也越来越多，如TRANSFAC和JASPAR数据库都有着大量转录因子的motif。而随着ChIP-seq数据的大量产出，motif的研究会进一步深入，有一些课题组会将现有的ChIP-seq数据进行整合，提供更全面，更准确的motif数据库。</div>
<div>从算法上来讲，这是很复杂的，我就不多说了，我这里主要讲best practice：</div>
</div>
<div></div>
<div>一篇文献列出了2014年以前的近乎所有知名的A survey of motif finding Web tools for detecting binding site motifs in ChIP-Seq data 链接见：<a href="https://biologydirect.biomedcentral.com/articles/10.1186/1745-6150-9-4">https://biologydirect.biomedcentral.com/articles/10.1186/1745-6150-9-4</a></div>
<div>
<h3><strong><span style="text-decoration: underline;"><span style="color: #ff6600; text-decoration: underline;">最常用的是 meme工具套件 ：</span></span></strong></h3>
<div> <a href="http://meme-suite.org/">http://meme-suite.org/</a>  输入文件是fasta序列，需要对peaks进行转换，根据bed的基因坐标从基因组里面提取对应的序列咯： <a href="http://bedtools.readthedocs.io/en/latest/content/tools/getfasta.html">http://bedtools.readthedocs.io/en/latest/content/tools/getfasta.html</a></div>
<div>它里面集成了4个寻找motif 的工具，每个工具都是一篇文章，里面有详细描述具体原理，但是整个网页给人的感觉是too busy，让初学者无从下手。<a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/07/meme-suit-motif-finding.png"><img class="alignnone size-full wp-image-1768" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/07/meme-suit-motif-finding.png" alt="meme-suit-motif-finding" width="523" height="371" /></a></div>
<div><img src="file:///C:/Users/Jimmy/AppData/Local/YNote/data/jmzeng1314@163.com/f448c5c8560d4612b2b2bafcbca25f37/clipboard.png" alt="" data-media-type="image" data-inited="true" /></div>
</div>
<div>把自己的fasta序列上传上去即可，还是选取我们本次系列教程的数据</div>
<div>
<div><b>$ ls -lh  *fasta</b></div>
<div>-rw-r--r-- 1 Jimmy 197121  18M Jul  7 19:40 <span style="color: #ff6600;">GSM1278641_Xu_MUT_rep1_BAF155_MUT_sequence.fasta</span></div>
<div>-rw-r--r-- 1 Jimmy 197121 9.9M Jul  7 19:38 GSM1278643_Xu_MUT_rep2_BAF155_MUT_sequence.fasta</div>
<div>-rw-r--r-- 1 Jimmy 197121  26M Jul  7 19:41 GSM1278645_Xu_WT_rep1_BAF155_sequence.fasta</div>
<div>-rw-r--r-- 1 Jimmy 197121  14M Jul  7 19:41 GSM1278647_Xu_WT_rep2_BAF155_sequence.fasta</div>
<div> 然后就可以看到所有结果啦，大家可以试试看。</div>
</div>
<div></div>
<div>另外一个比较常见的寻找motif工具，是<a href="http://homer.salk.edu/homer/motif/">HOMER</a> 这个软件附带的一个perl脚本findMotifsGenome.pl ，但是这个工具不是很好安装，而且对服务器资源要求还有一点，所以我这里就不推荐了。</div>
<div>安装使用如下：</div>
<div>
<blockquote>
<div>## Download and install homer (Hypergeometric Optimization of Motif EnRichment)<br />
## // http://homer.salk.edu/homer/<br />
## // http://blog.qiubio.com:8080/archives/3024<br />
## pre-install: Ghostscript，seqlogo,blat<br />
cd ~/biosoft<br />
mkdir homer &amp;&amp; cd homer<br />
wget http://homer.salk.edu/homer/configureHomer.pl<br />
perl configureHomer.pl -install<br />
perl configureHomer.pl -install hg19</div>
</blockquote>
</div>
<blockquote>
<div>如果是对MACS找到的peaks记录文件，还需提取对应的列给HOMER作为输入文件：</div>
</blockquote>
<div>
<blockquote>
<div>awk '{print $4"\t"$1"\t"$2"\t"$3"\t+"}' sample_peaks.bed &gt;sample_homer.bed</div>
<div>findMotifsGenome.pl<b> sample_homer.bed </b>hg19 motifDir<b> -len 8,10,12</b></div>
</blockquote>
</div>
<div>最后得到的文件夹里面有一个详细的网页版报告，所以很多人都喜欢用这个软件，而且<a href="http://homer.salk.edu/homer/motif/">HOMER</a> 这个软件是一个大杂烩，能解决几乎所有的高通量测序数据的分析。</div>
<div></div>
<div>最后值得一提的就是现在流行的R的bioconductor系列包，也可以寻找motif：</div>
<div>
<div>一般的R包都可以直接从BED文件里面记录的基因坐标来找motif，有点需要输入fasta序列，就需要自己根据bed的基因坐标从基因组里面提取对应的序列咯：</div>
<div>rGADEM (motif discovery): <a href="http://bioconductor.org/packages/devel/bioc/html/rGADEM.html">http://bioconductor.org/packages/devel/bioc/html/rGADEM.html</a></div>
<div>MotIV (motif validation): <a href="http://bioconductor.org/packages/devel/bioc/html/MotIV.html">http://bioconductor.org/packages/devel/bioc/html/MotIV.html</a></div>
<div><a href="http://lgsun.grc.nia.nih.gov/CisFinder/">http://lgsun.grc.nia.nih.gov/CisFinder/</a></div>
<div><a href="http://bioinfo.cs.technion.ac.il/drim/">http://bioinfo.cs.technion.ac.il/drim/</a></div>
<div><a href="http://www.ncbi.nlm.nih.gov/pubmed/20736340">http://www.ncbi.nlm.nih.gov/pubmed/20736340</a></div>
</div>
<div></div>
<div>
<div>还有一个PICS (ChIP-seq): 虽然不是bioconductor的包 <a href="http://www.rglab.org/pics-probabilistic-inference-for-chip-seq/">http://www.rglab.org/pics-probabilistic-inference-for-chip-seq/</a> 貌似国内被墙了，无法打开</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1767.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
