code: def in_region(rname, rstart, target_chr, target_start, target_end):
      
      return (rname == target_chr) and \
             (target_start <= rstart <= target_end)
docs: Quick check if a point is within the target region.