Tools for bam file processing