How to manipulate alignment bam files