make Analysis() take bam header instead of samfile_t