This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to retrieve the number of reads mapped for each chromosome in the BAM file of methylation data

I want to retrieve the number of reads mapped for each chromosome in the BAM file of methylation data. Anyone know how I can get this? Thank you in advance.

bam methylation mapped read

1 answer

You can do this-

samtools idxstats your_data.bam | cut -f 1,3

Log in to answer this question.