https://mp.weixin.qq.com/mp/appmsgalbum
Peak calling
MACS2是被广泛使用的call peak工具,MACS3与MACS2算法差异不大,MACS2的命令基本可以直接迁移到MACS3。
mkdir $wkdir/4_peakcallingcd $wkdir/4_peakcallingmacs3 callpeak \-g 119481543 \-t clean_bams/ZAT6_ABA_rep1_final.bam \-c clean_bams/Col0_mock_rep1_final.bam \--name raw_peaks/ZAT6_ABA_rep1 \--format BAM \--keep-dup all \--qvalue 0.075 \--cutoff-analysis \1>logs/ZAT6_ABA_rep1_callpeak_with_macs3.log 2>&1
Peak 过滤筛选
方法一
read.table(file = "../ChIP-seq-narrow/raw_peaks/ZAT6_ABA_rep1_cutoff_analysis.txt", header = T)python scripts/plot_macs_cutoff_analysis.py \raw_peaks/ZAT6_ABA_rep2_cutoff_analysis.txt \raw_peaks/ZAT6_ABA_rep2_cutoff_analysis.pdf \1>logs/ZAT6_ABA_rep2_plot_macs_cutoff_analysis.log 2>&1awk '$9>3' \raw_peaks/ZAT6_ABA_rep1_peaks.narrowPeak \> clean_peaks/cutoff/ZAT6_ABA_rep1_peaks.narrowPeak
方法二
bedtools intersect \-f 0.5 \ # 重叠百分比-r \ # 相互重叠-a clean_peaks/cutoff/ZAT6_ABA_rep1_peaks.narrowPeak \-b clean_peaks/cutoff/ZAT6_ABA_rep2_peaks.narrowPeak \-wa \ # 输出 A 文件> clean_peaks/intersect/ZAT6_ABA_peaks.narrowPeak
方法三
idr \--samples \raw_peaks/ZAT6_ABA_rep1_peaks.narrowPeak \raw_peaks/ZAT6_ABA_rep2_peaks.narrowPeak \--idr-threshold 0.05 \--output-file clean_peaks/idr/ZAT6_ABA_true_rep_idr.txt \--plot \--input-file-type narrowPeak \--rank p.value \1>logs/ZAT6_ABA_select_peaks_by_idr.log 2>&1
Peak 差异分析
Peak 可视化
Peak 注释
ChIPseeker
参考
公众号 | YuLabSMU | 文章发表:Current Protocols | ChIPseeker R 包操作指南
公众号 | 小白鱼的生统笔记 | 使用R包ChIPseeker进行peaks关联的基因注释
