<p>Hi,</p>

<p>I have a bam files produced from mapping by LifeScope Tool (mapping of SOLiD reads). I would like to know the length of the reads that were mapped to the reference genome based on the information present in bam files. Is there a tool which can give me the stats of such things from bam files?</p>

<p>Thanks!</p>

A little shorter version: 

    samtools view test.bam | awk '{print length($10)}' | head -1000 | sort -u

