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