Entering edit mode
5.7 years ago
evelyn
▴
230
Hi,
I am trying to calculate the sequencing depth for sorted bam
files made using bowtie
. I am using:
samtools depth bowtie_sorted.bam | awk '{sum+=$3} END { print "Average = ",sum/NR}'
I have many sorted bam
files and I want to calculate the depth
for all using one array
job rather than calculating for all files individually. Can anyone help writing such an array
? Thanks!
Your thread is about calculating the depth of bam files. But your title is
sorted bam file
? Please select a more descriptive title, and use sensible tags.