Counting number of reads in my peak file
2
0
Entering edit mode
9.8 years ago
ChIP ▴ 600

Hi!

The map function from bedtools can help in generating reads per peak for a given peak file.

But how can I get number of reads per peak (for a given peak file) from a Bam file.

Does anybody has some quick and dirtty solution for this :) and is willing to share :)

Thank you

ChIP-Seq Bamtools Python • 6.3k views
ADD COMMENT
1
Entering edit mode
9.8 years ago

Maybe bedtools coveragebed lijke:

coverageBed -abam aln.bam -b peaks.bed -counts > peaks.cnt.bed

Your peak file, peaks.bed, should be in bed format.

ADD COMMENT
1
Entering edit mode
9.8 years ago
Ming Tommy Tang ★ 3.9k

Or featurecount

ADD COMMENT

Login before adding your answer.

Traffic: 2768 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