Reading bam files and aggregating read mapping information about sequences