Read counts for peak file
1
1
Entering edit mode
3.2 years ago
Romylland ▴ 10

Hi,

Need some help. I need a peak call file with read counts for some downstream analysis. I have my BAM file, I used MACS2 to get the peak calls, next I used Samtools bedcov but I am not familiar with these tools therefore I don't know bedcov output header to identify the reads count if any. How may I get the reads count falling between the position coordinate?

RNA-Seq alignment • 2.1k views
ADD COMMENT
3
Entering edit mode
3.2 years ago
ATpoint 82k

You can make a SAF file out of that narrowPeak file from macs, see Converting from BED to SAF/GFF and then use featureCounts from the subread package to get the count matrix:

featureCounts -a in.saf -F SAF -o out.counts your.bam
ADD COMMENT
0
Entering edit mode

Thanks a lot. Will give it a try now and keep u posted :)

ADD REPLY
0
Entering edit mode

Was successful, thanks you for your support. Still got one last question the last column of featureCounts output I guess is my read counts, right? Thanks [ATpoint]

ADD REPLY
0
Entering edit mode

Yep, that is correct.

ADD REPLY

Login before adding your answer.

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