code: def check_header(in_bam, rgnames, ref_file, config):
      
      _check_bam_contigs(in_bam, ref_file, config)
      _check_sample(in_bam, rgnames)
docs: Ensure passed in BAM header matches reference file and read groups names.