Hello All,
I have ChIP-seq bam files from two contrasting conditions. I have a bed file with a pre-defined list of chromosome positions. I wish to have the boxplots for the intensities for the predefined positions. How can I go about it ?
Thanks
Hello All,
I have ChIP-seq bam files from two contrasting conditions. I have a bed file with a pre-defined list of chromosome positions. I wish to have the boxplots for the intensities for the predefined positions. How can I go about it ?
Thanks
BAM files contain no quantitative information since every entry corresponds to an individual read, its sequence and its location in the genome. In order to compare the number of reads between different regions, you will need to count the number of reads per region in the BED file. It also won't hurt to normalize for differences in sequencing depths between the conditions.
There are various tools available to achieve your goal, it depends a bit on how good you are with command line tools and/or R.
DiffBind
package, which can be found at bioconductor (check out their vignette!).coverage
tool will also allow you to supply a BAM and BED files to obtain (non-normalized) read counts.multiBamSummary
), or, if you want to normalize, I would recommend to first run bamCoverage
followed by multiBigWigSummary
. You could also supply a scaling factor to account for seq. depth differences directly to multiBamSummary
, though.Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Thanks for the inputs. I ended up using deeptools and it worked fine.