Convert BAM file to a table format for easier analysis