Hi,

I am trying to get the distribution of fragment lengths from a BAM file. Any ideas which programs/tools can do that?
Ok this is template length according to sam format. Column 9 stores this value.

    samtools view Your.bam | awk '{print $9}' | sort | uniq -c