how to calculate coverage in bam file over a specific bed file
1
1
Entering edit mode
6.9 years ago
Lila M ★ 1.2k

Hi every body, I have bam files (in different conditions) and a bed file with specific genes of interest. I would like to calculate the coverage for each bam file over my gene list. What I am doing is, for each condition:

bedtools multicov -bams *cond1.bam -bed exon.bed > multicov_condition1_exon
bedtools multicov -bams *cond2.bam -bed exon.bed > multicov_condition2_exon
bedtools multicov -bams *cond3.bam -bed exon.bed > multicov_condition3_exon

The final idea is to identified in which condition the coverage is higher. Is that a good option to analyze my data?

Thanks!

RNA-Seq exon coverage multicov bedtools • 2.6k views
ADD COMMENT
0
Entering edit mode
6.9 years ago

From deepTools: multiBamSummary BED-file --bamfiles *.bam --BED exon.bed -o multicov.npz. The result in a compressed numpy matrix that you can load with numpy.load in python.

ADD COMMENT

Login before adding your answer.

Traffic: 1948 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6