This is a test version of Biostars. For the public version, visit https://www.biostars.org.
No. Of Reads & No. Of Bases Per Locus-Calculation

I have RNAseq illumina paired reads mapped to reference genome using bowtie and samtools. I have both bam file and mpileup file. Are there any tools to calculate average number of reads and average number of base pairs for each contig/chromosome?

samtools coverage

do you mean number of reads per region of interest? please do edit your question to be more clear

1 answer

I'm with Rm, please make your intent more clear. Try:::

~/tools/samtools/samtools flagstat your.bam

Thanks. Now I got it. by samtools idxstats, I got number of basepairs & no.of reads mapped for each contigs.

It would be nice to mark it as an answer if it solved your question.

Log in to answer this question.