bamCompare -b1 test1.bam -b2 control1.bam -o test1-ctrl1_log2ratio.bw &
bamCompare -b1 test2.bam -b2 control2.bam -o test2-ctrl2_log2ratio.bw &
computeMatrix reference-point -p max/2 --referencePoint TSS -b 5000 -a 5000 -R genes.bed -S test1-ctrl1_log2ratio.bw --skipZeros -o matrix1_test1_TSS_new.gz --outFileSortedRegions regions1_test1_genes.bed -bs 25 —missingDataAsZero
computeMatrix reference-point -p max/2 --referencePoint TSS -b 5000 -a 5000 -R genes.bed -S test2-ctrl2_log2ratio.bw --skipZeros -o matrix1_test2_TSS_new.gz --outFileSortedRegions regions1_test2_genes.bed -bs 25 —missingDataAsZero
plotHeatmap -m matrix1_test1_TSS.gz -o test1_log2ratio.hm_bw.png --zMin -2 --zMax 2 --boxAroundHeatmaps no --colorList white,black --outFileSortedRegions test1_log2ratio.hm_bw.regions.bed —outFileNameMatrix test1_log2ratio.hm_bw.matrix.tab
plotHeatmap -m matrix1_test2_TSS.gz -o test2_log2ratio.hm_bw.png --zMin -2 --zMax 2 --boxAroundHeatmaps no --colorList white,black --outFileSortedRegions test2_log2ratio.hm_bw.regions.bed —outFileNameMatrix test2_log2ratio.hm_bw.matrix.tab
The order of genes for test1 and test2 seem different.
Is there a way to plot genes in the same order for both conditions.
Appreciate all the help.
Thanks
Shar
Sharvari Gujja
Assistant Director, Advanced Artificial
Intelligence Research Laboratory
––

Leading Genomics
C: 617.444.9040
The simplest procedure is to run computeMatrix with both bigwig files at once:
computeMatrix reference-point -p max/2 --referencePoint TSS -b 5000 -a 5000 -R genes.bed -S test1-ctrl1_log2ratio.bw test2-ctrl2_log2ratio.bw --skipZeros -o matrix12_test12_TSS_new.gz --outFileSortedRegions regions12_test12_genes.bed -bs 25 —missingDataAsZero
If you run plotHeatmap on that you'll get both conditions side by side and sorted exactly the same way.
Devon
--
You received this message because you are subscribed to the Google Groups "deepTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deeptools+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Devon Ryan, PhD Bioinformatician / Data manager Bioinformatics Core Facility Max Planck Institute for Immunobiology and Epigenetics Email: dpry...@gmail.com
Sharvari Gujja
Assistant Director, Advanced Artificial
Intelligence Research Laboratory
––

Leading Genomics
C: 617.444.9040
To unsubscribe from this group and stop receiving emails from it, send an email to deeptools+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.