This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Read counts for peak file

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

1 answer

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

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

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]

Yep, that is correct.

Log in to answer this question.