Converts BAM into BXT5 format