deeptools 用法

原文参考 [ydchen] (http://www.biotrainee.com:8080/thread-1566-1-1.html)

bamCompare  -b1 treatment.bam -b2 control.bam -o log2ratio.bw 
bamCoverage -b test.bam -o test.bw
## both -R and -S can accept multiple files 
computeMatrix reference-point  --referencePoint TSS   -b 10000 -a 10000    \
        -R ~/annotation/CHIPseq/mm10/ucsc.refseq.bed  \
        -S  test.bw  --skipZeros  -o matrix1_test_TSS.gz  \
        --outFileSortedRegions regions1_test_genes.bed
##  both plotHeatmap and plotProfile will use the output from   computeMatrix
plotHeatmap -m matrix1_test_TSS.gz  -out test.png
plotHeatmap -m matrix1_test_TSS.gz  -out test.pdf --plotFileFormat pdf  --dpi 720  
plotProfile -m matrix1_test_TSS.gz  -out test.png
plotProfile -m matrix1_test_TSS.gz  -out test.pdf --plotFileFormat pdf --perGroup --dpi 720 
multiBigwigSummary bins -b *.bw  -out scores_per_bin.npz --outRawCounts scores_per_bin.tab
multiBamSummary  bins -b *.bam  -out scores_per_bin.npz --outRawCounts scores_per_bin.tab
## both plotCorrelation and plotPCA will use the output from  multiBamSummary or multiBigwigSummary.
plotPCA -in scores_per_bin.npz  -o PCA_readCounts.png
## most of time, we don't need plotCoverage and computeGCBias,while both of them use the sorted bam file as input 
plotCorrelation -in scores_per_bin.npz  \
--corMethod pearson --skipZeros  --whatToPlot scatterplot \
-o scatterplot_PearsonCorr_bigwigScores.png 
plotCorrelation -in scores_per_bin.npz  \
--corMethod pearson --skipZeros    \
--whatToPlot heatmap --colorMap RdYlBu --plotNumbers \
-o heatmap_SpearmanCorr_readCounts.png   \
--outFileCorMatrix SpearmanCorr_readCounts.tab
# [url]https://deeptools.readthedocs.io/en/latest/content/tools/multiBigwigSummary.html[/url]
# [url]https://deeptools.readthedocs.io/en/latest/content/tools/plotPCA.html[/url]
# [url]https://deeptools.readthedocs.io/en/latest/content/tools/plotCorrelation.html[/url]

参考 第二个: https://weiwenku.net/d/101427044

我的

avgprof ye.liu$ computeMatrix reference-point --referencePoint TSS -b 3000 -a 3000 -R ~/Desktop/RefSeq_Genes.dms -S /Users/ye.liu/Documents/OA_Manuscript/data/bds/P1.oLT.trim.nodup.tn5_pooled.pf.pval.signal.bigwig  /Users/ye.liu/Documents/OA_Manuscript/data/bds/P1.iMT.trim.nodup.tn5_pooled.pf.pval.signal.bigwig -o matrix1_test_TSS.gz  --outFileSortedRegions regions1_test_genes.bed

这个跑了很久,

avgprof ye.liu$ plotProfile -m matrix1_test_TSS.gz -out test.pdf
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Android 自定义View的各种姿势1 Activity的显示之ViewRootImpl详解 Activity...
    passiontim阅读 175,986评论 25 709
  • 今天去浠水中学拿贫困生名单,在回来的路上跟刘畅姐分享《世界是平的》的这本书。 开头第一句话就是我其...
    徐丽红阅读 1,616评论 0 0
  • 在我的生命里曾有两次与死神擦肩而过。 第一次,是在我2岁多的时候,我刚上幼儿园,白天我是坐在小板凳上一动不动的乖小...
    晓行之阅读 3,907评论 0 51
  • 刹那绯色开满枝,人面桃花两相痴。谁家女儿叹花落,小儿仰头思果实。
    问元元阅读 1,526评论 0 1

友情链接更多精彩内容