<?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; peaks</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/peaks/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>一个ChIP-seq实战-超级简单-2小时搞定！</title>
		<link>http://www.bio-info-trainee.com/2257.html</link>
		<comments>http://www.bio-info-trainee.com/2257.html#comments</comments>
		<pubDate>Tue, 10 Jan 2017 03:14:22 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[Cbx7]]></category>
		<category><![CDATA[peaks]]></category>
		<category><![CDATA[PRC1]]></category>
		<category><![CDATA[PRC2]]></category>
		<category><![CDATA[Ring1B]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=2257</guid>
		<description><![CDATA[请不要直接拷贝我的代码，需要自己理解，然后打出来，思考我为什么这样写代码。 软件 &#8230; <a href="http://www.bio-info-trainee.com/2257.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>
<div><span style="color: #ff0000;"><strong>请不要直接拷贝我的代码，需要自己理解，然后打出来，思考我为什么这样写代码。</strong></span></div>
<div><span style="color: #ff0000;"><strong>软件请用最新版，尤其是samtools等被我存储在系统环境变量的，考虑到读者众多，一般的软件我都会自带版本信息的！</strong></span></div>
<div>我用两个小时，不代表你是两个小时就学会，有些朋友反映学了两个星期才 学会，这很正常，没毛病，不要异想天开两个小时就达到我的水平。</div>
<div></div>
</div>
<div>本次讲解选取的文章是为了探索PRC1，PCR2这样的蛋白复合物，不是转录因子或者组蛋白的CHIP-seq，请注意区别！</div>
<div>这是一个系列帖子，你可以先看：</div>
<div>
<div><a href="http://www.bio-info-trainee.com/1024.html">一个表达芯片数据处理实例</a></div>
<div><a href="http://www.bio-info-trainee.com/2218.html">一个RNA-seq实战-超级简单-2小时搞定！</a></div>
<div><a href="http://www.bio-info-trainee.com/1159.html">WES（七）看de novo变异情况</a></div>
<div><a href="http://www.bio-info-trainee.com/2169.html">【直播】我的基因组22：用IGV查看具体某个位点是否变异</a></div>
</div>
<div>文章是：RYBP and Cbx7 define specific biological functions of polycomb complexes in mouse embryonic stem cells</div>
<div><a href="https://www.ncbi.nlm.nih.gov/pubmed/23273917">https://www.ncbi.nlm.nih.gov/pubmed/23273917</a></div>
<div>RYBP and Cbx7都是Polycomb repressive complex 1 (PRC1)的组分：</div>
<div>数据都在：<a href="https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE42466">https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE42466</a></div>
<div>所以用脚本在ftp里面批量下载即可：</div>
<div><a href="ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP017/SRP017311">ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP017/SRP017311</a></div>
<div><img class="alignnone size-full wp-image-2264" src="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/11.png" alt="1" width="477" height="169" /></div>
<div></div>
<p><span id="more-2257"></span></p>
<div>下载地址很容易获取啦！</div>
<div>for ((i=204;i&lt;=209;i++)) ;do wget <a href="ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP017/SRP017311">ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByStudy/sra/SRP/SRP017/SRP017311</a>/SRR620$i/SRR620$i.sra;done</div>
<div>ls *sra |while read id; do ~/biosoft/sratoolkit/sratoolkit.2.6.3-centos_linux64/bin/fastq-dump --split-3 $id;done</div>
<div><span style="color: #ff0000;">图片丢失~~~~~</span></div>
<div>因为我用fastqc看了看数据质量，代码如下：</div>
<div>ls *fastq |xargs ~/biosoft/fastqc/FastQC/fastqc -t 10</div>
<div>发现3端质量有点问题，我就用了-3 5 --local参数，</div>
<div>首先用bowtie2软件把测序得到的fastq文件比对到mm10参考基因组上面</div>
<div>~/biosoft/bowtie/bowtie2-2.2.9/bowtie2 -p 6 -3 5 --local -x ~/reference/index/bowtie/mm10 -U SRR620204.fastq| samtools sort -O bam -o ring1B.bam</div>
<div>~/biosoft/bowtie/bowtie2-2.2.9/bowtie2 -p 6 -3 5 --local -x ~/reference/index/bowtie/mm10 -U SRR620205.fastq| samtools sort -O bam -o cbx7.bam</div>
<div>~/biosoft/bowtie/bowtie2-2.2.9/bowtie2 -p 6 -3 5 --local -x ~/reference/index/bowtie/mm10 -U SRR620206.fastq| samtools sort -O bam -o suz12.bam</div>
<div>~/biosoft/bowtie/bowtie2-2.2.9/bowtie2 -p 6 -3 5 --local -x ~/reference/index/bowtie/mm10 -U SRR620207.fastq| samtools sort -O bam -o RYBP.bam</div>
<div>~/biosoft/bowtie/bowtie2-2.2.9/bowtie2 -p 6 -3 5 --local -x ~/reference/index/bowtie/mm10 -U SRR620208.fastq| samtools sort -O bam -o IgGold.bam</div>
<div>~/biosoft/bowtie/bowtie2-2.2.9/bowtie2 -p 6 -3 5 --local -x ~/reference/index/bowtie/mm10 -U SRR620209.fastq| samtools sort -O bam -o IgG.bam</div>
<div><img class="alignnone size-full wp-image-2259" src="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/3.png" alt="3" width="220" height="111" /></div>
<div><strong><span style="color: #ff0000;">接下来需要对bam文件进行简单过滤，包括未比对的和multiple比对的，但是我比较懒，就直接用MACS2软件来call peaks啦！</span></strong></div>
<div>nohup ~/.local/bin/macs2 callpeak -c ../IgGold.bam -t ../suz12.bam -m 10 30 -p 1e-5 -f BAM -g mm -n suz12 2&gt;suz12.masc2.log &amp;</div>
<div>nohup ~/.local/bin/macs2 callpeak -c ../IgGold.bam -t ../ring1B.bam -m 10 30 -p 1e-5 -f BAM -g mm -n ring1B 2&gt;ring1B.masc2.log &amp;</div>
<div>nohup ~/.local/bin/macs2 callpeak -c ../IgG.bam -t ../cbx7.bam -m 10 30 -p 1e-5 -f BAM -g mm -n cbx7 2&gt;cbx7.masc2.log &amp;</div>
<div>nohup ~/.local/bin/macs2 callpeak -c ../IgG.bam -t ../RYBP.bam -m 10 30 -p 1e-5 -f BAM -g mm -n RYBP 2&gt;RYBP.masc2.log &amp;</div>
<div><img class="alignnone size-full wp-image-2260" src="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/4.png" alt="4" width="222" height="79" /></div>
<div>大家可以看到RYBP这个CHIP-seq我几乎得不到peaks，哪怕是换了一个control，除非我不用任何control！我用IGV看了看，这个RYBP的确很诡异，我怀疑是作者上传数据出错了！</div>
<div>而且作者在GEO给的PEAKS个数如下：</div>
<div>2754 GSE42466_Cbx7_peaks_10.txt<br />
6982 GSE42466_Ring1b_peaks_10.txt<br />
6872 GSE42466_RYBP_peaks_5.txt<br />
8054 GSE42466_Suz12_peaks_10.txt</div>
<div></div>
<div></div>
<div>首先对这些bam文件批量转换成bw文件。然后批量画图</div>
<div>ls ../*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 ## 这里有个参数，-p 10 --normalizeUsingRPKM</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>
<div><img class="alignnone size-full wp-image-2261" src="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/5.png" alt="5" width="199" height="98" /></div>
<div></div>
<div>然后整合所有的chipseq的bam文件，画基因的TSS附近的profile和heatmap图</div>
<div>computeMatrix reference-point -p 10 --referencePoint TSS -b 2000 -a 2000 -S ../*bw -R ~/annotation/CHIPseq/mm10/ucsc.refseq.bed --skipZeros -o tmp4.mat.gz</div>
<div>plotHeatmap -m tmp4.mat.gz -out tmp4.merge.png</div>
<div>plotProfile --dpi 720 -m tmp4.mat.gz -out tmp4.profile.pdf --plotFileFormat pdf --perGroup</div>
<div>plotHeatmap --dpi 720 -m tmp4.mat.gz -out tmp4.merge.pdf --plotFileFormat pdf</div>
<div>最后整合所有的chipseq的bam文件，画基因的genebody附近的profile和heatmap图</div>
<div>computeMatrix scale-regions -p 10 -S ../*bw -R ~/annotation/CHIPseq/mm10/ucsc.refseq.bed -b 3000 -a 3000 -m 5000 --skipZeros -o tmp5.mat.gz</div>
<div>plotHeatmap -m tmp5.mat.gz -out tmp5.merge.png</div>
<div>plotProfile --dpi 720 -m tmp5.mat.gz -out tmp5.profile.pdf --plotFileFormat pdf --perGroup</div>
<div>plotHeatmap --dpi 720 -m tmp5.mat.gz -out tmp5.merge.pdf --plotFileFormat pdf</div>
<div>下面是输出的图的例子，我只放了tss附近的！</div>
<div><img class="alignnone size-full wp-image-2262" src="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/6.png" alt="6" width="1378" height="815" /></div>
<div>上图可以看到RYBP的peaks的中点在TSS处，而其它peaks都在TSS下游一点点。</div>
<div>用Sequential ChIP (re-ChIP)实验的确可以看到RYBP和CBX7的peaks有重合。</div>
<div><img class="alignnone size-full wp-image-2263" src="http://www.bio-info-trainee.com/wp-content/uploads/2017/01/7.png" alt="7" width="787" height="363" /></div>
<div></div>
<div>这篇文章一直翻来覆去说 这些CHIP-seq实验的peaks的交叉情况：</div>
<div></div>
<div>PRC1的组分异常复杂，包括 Cbx (Cbx2, Cbx4, Cbx6, Cbx7, or Cbx8); Ring1A or Ring1B; PHC (PHC1, PHC2, or PHC3); PCGF (PCGF1, PCGF2, PCGF3, PCGF4, PCGF5, or PCGF6); and RYBP or YAF2.<br />
其中，a Ring1A/B E3 ligase subunit that monoubiquitinates histone H2A at lysine 119 (H2AK119ub)<br />
但不是说都必须要有，而是它们的组合，形成了各种各样的PRC1，但是都统一叫做PRC1。<br />
比如在mouse的ESCs里面，就有两种PRC1，它们的 Cbx7 or RYBP 是不可能共存的！我们可以把它们分别叫做， Cbx7-PRC1, RYBP-PRC1Cbx7 的功能是把 Ring1B 招募到染色质上面，是必须的。它结合的基因多参与 early-lineage commitment of ESCs.<br />
RYBP 可以增强PRC1的酶活性，它结合大基因多参与，regulation of metabolism and cell-cycle progression<br />
RYBP 结合的基因要比 CBX7 结合的基因表达量高。 因为CBX7结合的同时，会招募PRC2这个抑制marker。<br />
而PRC2 deposits the histone H3 lysine 27 trimethyl repressive mark (H3K27me3) through the Ezh1/2 histone methyltransferase enzymes.如何描述它们这些peaks的交叉情况呢？<br />
We observed an overlap of RYBP peaks (3,918 in total) with 14%, 42%, and 37% of Cbx7, Ring1B, and Suz12 peaks, respectively<br />
Moreover, although more than 90% of Cbx7 peaks contained Ring1B and Suz12, 20% were also bound by RYBP<br />
尽管RYBP and Cbx7 在大部分情况下都是互相排斥的，但是也在少部分基因组区域存在共定位的现象。Ring1B / Suz12的peaks情况可以被 Cbx7 和 RYBP 的peaks情况说明：<br />
RYBP and Cbx7 都有的地方，有着高Ring1B/Suz12<br />
Cbx7 but not RYBP的地方，Ring1B/Suz12会稍微低一点<br />
RYBP but not Cbx7的地方，Ring1B/Suz12会更低一点<br />
RYBP and Cbx7 都没有的地方，Ring1B/Suz12就最少！RYBP的peaks的中点在TSS处，而其它peaks都在TSS下游一点点。<br />
用Sequential ChIP (re-ChIP)实验的确可以看到RYBP和CBX7的peaks有重合。而且RYBP还有一些peaks是其它PRC1所没有的，说明它可以独立于PRC1发挥作用H2AK119ub 与 Ring1B/Suz12正相关，但是与RYBP只有25.7%交叉，与CBX7有着72%交叉，所以可以把 PRC1 target genes分成3类：<br />
a first set with Cbx7/Ring1B/H2AK119ub; ~~~~GO/KEGG分析，<br />
a second that contains RYBP and lower levels of Ring1B/H2AK119ub<br />
a third set cobound by RYBP/Cbx7/Ring1B and that also contains H2AK119ub.</p>
<p>然后这些所有的gene list都可以拿去做GO/KEGG分析，看看是不是有什么biological meaning ！<br />
genes co-occupied by Ring1B/Cbx7/RYBP and H2AK119ub are involved in system development.<br />
genes containing RYBP/Ring1B/H2AK119ub, but not Cbx7, have a strong association with the M phase of the meiotic cycle and cellular metabolism<br />
genes with Cbx7/Ring1B/H2AK119ub are involved in developmental processes and mesoderm specification,<br />
those containing RYBP/Cbx7/Ring1B/H2AK119ub predominantly represent the ectodermal fate and, to a lesser extent, mesoderm and endoderm fates</p>
<p>超过700的基因有 RYBP/Cbx7/Ring1B的peaks，所以作者敲除Cbx7 看看 RYBP的peaks是否会变化，但是没有做CHIP-seq，只是做了ChIP-qPCR</p>
<p>下面这个结论很重要：<br />
Overall, our ChIP-seq analysis allowed us to identify five types of genes according to the occupancy of PRC1 and PRC2: those with<br />
(1) Ring1B/Cbx7/RYBP and Suz12 (725 genes);<br />
(2) Ring1B/Cbx7/Suz12, but not RYBP (1,527 genes);<br />
(3) Ring1B/RYBP/Suz12, but not Cbx7 (861 genes);<br />
(4) only Ring1B and Suz12 (1,694 genes); or<br />
(5) RYBP but no Polycomb proteins (1,674)</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/2257.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>自学CHIP-seq分析第六讲~寻找peaks</title>
		<link>http://www.bio-info-trainee.com/1745.html</link>
		<comments>http://www.bio-info-trainee.com/1745.html#comments</comments>
		<pubDate>Tue, 05 Jul 2016 12:17:31 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[tutorial]]></category>
		<category><![CDATA[BayesPeak]]></category>
		<category><![CDATA[CHIP-seq]]></category>
		<category><![CDATA[macs2]]></category>
		<category><![CDATA[PeakRanger]]></category>
		<category><![CDATA[peaks]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1745</guid>
		<description><![CDATA[CHIP-seq测序的本质还是目标片段捕获测序，跟WES不同的是，它不是通过固定 &#8230; <a href="http://www.bio-info-trainee.com/1745.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<div>
<p>CHIP-seq测序的本质还是目标片段捕获测序，跟WES不同的是，它不是通过固定的芯片探针来固定的捕获基因组上面特定序列，而是根据你选择的IP不同，你细胞或者机体状态不同，捕获到的序列差异很大！而我们研究的重点，就是捕获到的差异。而我们对CHIP-seq测序数据寻找peaks的本质就是得到所有测序数据比对在全基因组之后在正个基因组上面的测序深度里面寻找比较突出的。比如对WES数据来说，各个外显子，或者外显子的5端到3端，理论上测序深度应该是一致的，都是50X~200X，画一个测序深度曲线，应该是近似于一条直线。对我们的CHIP-seq测序数据来说，在所捕获的区域上面，理论上测序深度是绝对不一样的，应该是近似于一个山峰。而那些覆盖度高的地方，山顶，就是我们的IP所结合的热点，也就是我们想要找的peaks，在IGV里面看到大致是下面这样：</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2016/07/chipseq-0-peakdetection-large-IGV.png"><img class="alignnone size-full wp-image-1756" src="http://www.bio-info-trainee.com/wp-content/uploads/2016/07/chipseq-0-peakdetection-large-IGV.png" alt="chipseq-0-peakdetection-large-IGV" width="786" height="478" /></a></p>
<p>可以看到测序的reads分布是绝对的不均匀的！我们通常说的CHIP-seq测序的IP，可以是各个组蛋白的各个修饰位点对应的抗体，或者是各种转录因子的抗体，等等</p>
<p>如何定义热点呢？通俗地讲，热点是这样一些位置，这些位置多次被测得的read所覆盖（我们测的是一个细胞群体，read出现次数多，说明该位置被TF结合的几率大）。那么，read数达到多少才叫多？这就要用到统计检验喽。假设TF在基因组上的分布是没有任何规律的，那么，测序得到的read在基因组上的分布也必然是随机的，某个碱基上覆盖的read的数目应该服从二项分布。</p>
<p>具体统计学原理直接看原创吧：<a href="http://www.plob.org/2014/05/08/7227.html">http://www.plob.org/2014/05/08/7227.html</a></p>
</div>
<p><span id="more-1745"></span>为了达到作者文献里面的结果，我换了8个软件：<b><span style="color: #ff0000;">MACS2</span></b>/HOMER/SICERpy/PePr/SWEMBL/SISSRs/<b>BayesPeak/PeakRanger，我这里就不一一介绍peaks caller软件的安装以及使用了，因为MACS2是最常用的，我就简单贴一下我关于MACS2的学习代码：</b></p>
<blockquote>
<div><b>## step6 : peak calling<br />
### step6.1: with MACS2<br />
## 我先看了看说明书：<br />
macs2 callpeak -t TF_1.bam -c Input.bam -n mypeaks<br />
We used the following options:<br />
-t: This is the only required parameter for MACS, refers to the name of the file with the ChIP-seq data<br />
-c: The control or mock data file<br />
-n: The name string of the experiment<br />
MAC2 creates 4 files (mypeaks peaks.narrowPeak, mypeaks summits.bed, mypeaks peaks.xls and mypeaks model.r)<br />
# MACS首先的工作是要确定一个模型，这个模型最关键的参数就是峰宽d。这个d就是bw(band width)，而它的一半就是shiftsize。</b></div>
<div><b><b>### 然后根据文章确定了下载的测序数据的分类<br />
GSM1278641 Xu_MUT_rep1_BAF155_MUT        SRR1042593<br />
GSM1278642 Xu_MUT_rep1_Input        SRR1042594<br />
GSM1278643 Xu_MUT_rep2_BAF155_MUT        SRR1042595<br />
GSM1278644 Xu_MUT_rep2_Input        SRR1042596<br />
GSM1278645 Xu_WT_rep1_BAF155        SRR1042597<br />
GSM1278646 Xu_WT_rep1_Input        SRR1042598<br />
GSM1278647 Xu_WT_rep2_BAF155        SRR1042599<br />
GSM1278648 Xu_WT_rep2_Input         SRR1042600<br />
## 这里有个很奇怪的问题，input的测序数据居然比IP的测序数据多？？？<br />
848M Jun 28 14:31 SRR1042593.bam<br />
2.7G Jun 28 14:52 SRR1042594.bam<br />
716M Jun 28 14:58 SRR1042595.bam<br />
2.9G Jun 28 15:20 SRR1042596.bam<br />
1.1G Jun 28 15:28 SRR1042597.bam<br />
2.6G Jun 28 15:48 SRR1042598.bam<br />
1.2G Jun 28 15:58 SRR1042599.bam<br />
3.5G Jun 28 16:26 SRR1042600.bam<br />
## 我没有想明白为什么<br />
## http://www2.uef.fi/documents/1698400/2466431/Macs2/f4d12870-34f9-43ef-bf0d-f5d087267602<br />
## http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3120977/</b></b>我首先用的是下面这些代码<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042594.bam -t SRR1042593.bam -f BAM -B -g hs -n Xu_MUT_rep1 2&gt;Xu_MUT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042596.bam -t SRR1042595.bam -f BAM -B -g hs -n Xu_MUT_rep2 2&gt;Xu_MUT_rep2.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042598.bam -t SRR1042597.bam -f BAM -B -g hs -n Xu_WT_rep1 2&gt;Xu_WT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042600.bam -t SRR1042599.bam -f BAM -B -g hs -n Xu_WT_rep2 2&gt;Xu_WT_rep2.masc2.log &amp;<br />
得到的peaks少的可怜，我第一次检查，以为是因为自己没有sort 比对的bam文件导致<br />
## forget to sort the bam files:<br />
## 首先把bam文件sort好，构建了inde，然后继续运行！<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042594.sorted.bam -t SRR1042593.sorted.bam -f BAM -B -g hs -n Xu_MUT_rep1 2&gt;Xu_MUT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042596.sorted.bam -t SRR1042595.sorted.bam -f BAM -B -g hs -n Xu_MUT_rep2 2&gt;Xu_MUT_rep2.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042598.sorted.bam -t SRR1042597.sorted.bam -f BAM -B -g hs -n Xu_WT_rep1 2&gt;Xu_WT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042600.sorted.bam -t SRR1042599.sorted.bam -f BAM -B -g hs -n Xu_WT_rep2 2&gt;Xu_WT_rep2.masc2.log &amp;<br />
##此时得到peaks跟上面为sort的bam文件得到的peaks一模一样，看来不是这个原因</p>
</div>
<div>##然后我怀疑是不是作者上传数据的时候把input和IP标记反了，所以我认为的调整过来</div>
<div><b><b>## Then change the control and treatment<br />
nohup time ~/.local/bin/macs2 callpeak -t SRR1042594.sorted.bam -c SRR1042593.sorted.bam -f BAM -B -g hs -n Xu_MUT_rep1 2&gt;Xu_MUT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -t SRR1042596.sorted.bam -c SRR1042595.sorted.bam -f BAM -B -g hs -n Xu_MUT_rep2 2&gt;Xu_MUT_rep2.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -t SRR1042598.sorted.bam -c SRR1042597.sorted.bam -f BAM -B -g hs -n Xu_WT_rep1 2&gt;Xu_WT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -t SRR1042600.sorted.bam -c SRR1042599.sorted.bam -f BAM -B -g hs -n Xu_WT_rep2 2&gt;Xu_WT_rep2.masc2.log &amp;</b></b></div>
<div><b><b>##结果，压根就没有peaks了！！！！看了作者并没有搞错<br />
</b></b></p>
<div><b>##接下来我怀疑是自己用samtools view -bhS -q 30   处理了sam文件，这个标准太严格了！！</b></div>
<div><b>## </b></div>
<p><b>## then just use the sam files.<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042594.sam -t SRR1042593.sam -f SAM -B -g hs -n Xu_MUT_rep1 2&gt;Xu_MUT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042596.sam -t SRR1042595.sam -f SAM -B -g hs -n Xu_MUT_rep2 2&gt;Xu_MUT_rep2.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042598.sam -t SRR1042597.sam -f SAM -B -g hs -n Xu_WT_rep1 2&gt;Xu_WT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042600.sam -t SRR1042599.sam -f SAM -B -g hs -n Xu_WT_rep2 2&gt;Xu_WT_rep2.masc2.log &amp;<br />
## 也没有多几个peaks，最后我只能想到是我的p值太严格了<br />
## then chang the criteria for p values :</p>
<p>https://github.com/taoliu/MACS/</p>
<p>nohup time ~/.local/bin/macs2 callpeak -c SRR1042594.sam -t SRR1042593.sam -f SAM -p 0.01 -g hs -n Xu_MUT_rep1 2&gt;Xu_MUT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042596.sam -t SRR1042595.sam -f SAM -p 0.01 -g hs -n Xu_MUT_rep2 2&gt;Xu_MUT_rep2.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042598.sam -t SRR1042597.sam -f SAM -p 0.01 -g hs -n Xu_WT_rep1 2&gt;Xu_WT_rep1.masc2.log &amp;<br />
nohup time ~/.local/bin/macs2 callpeak -c SRR1042600.sam -t SRR1042599.sam -f SAM -p 0.01 -g hs -n Xu_WT_rep2 2&gt;Xu_WT_rep2.masc2.log &amp;<br />
##我大大减小了P值的标准，结果是输出一大堆的peaks<br />
18919 Xu_MUT_rep1_peaks.xls<br />
36277 Xu_MUT_rep2_peaks.xls<br />
32494 Xu_WT_rep1_peaks.xls<br />
56080 Xu_WT_rep2_peaks.xls<br />
问题是这些peaks根本就都是假阳性！！！<br />
我手动的check了几个之前严格过滤条件下的peaks，的确可以看到测序深度是两个山峰形状的曲线<br />
## check some peaks 手动的 ## chr1 121484235 121485608<br />
## masc results :<br />
samtools depth -r chr10:42385331-42385599 SRR1042593.sorted.bam<br />
samtools depth -r chr10:42385331-42385599 SRR1042594.sorted.bam<br />
samtools depth -r chr20:45810382-45810662 SRR1042593.sorted.bam<br />
samtools depth -r chr20:45810382-45810662 SRR1042594.sorted.bam<br />
##我也check了paper里面得到的peak，但是在我的比对文件里面，肉眼看起来根本不像，所以我很纠结~~~~<br />
paper results:<br />
chr20 45796362 46384917<br />
chr1 121482722 121485861<br />
samtools depth -r chr1:121482722-121485861 SRR1042593.sorted.bam<br />
samtools depth -r chr1:121482722-121485861 SRR1042594.sorted.bam<br />
samtools depth -r chr20:45796362-46384917 SRR1042593.sorted.bam<br />
samtools depth -r chr20:45796362-46384917 SRR1042594.sorted.bam </b></p>
</div>
</blockquote>
<div>很不幸，最后还是没能达到作者的结果，我没搞清楚是为什么，我还用了<b>BayesPeak/PeakRanger这两个软件，结果也不咋地。</b></div>
<div></div>
<div>peak finder软件大全： <a href="http://wodaklab.org/nextgen/data/peakfinders.html">http://wodaklab.org/nextgen/data/peakfinders.html</a></div>
<div>
<div>Peak Calling for ChIP-Seq :　<a href="http://epigenie.com/guide-peak-calling-for-chip-seq/">http://epigenie.com/guide-peak-calling-for-chip-seq/</a></div>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1745.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
