def _find_ci(variant_record):
    """Given a variant record, returns the largest CIPOS or CIEND if present"""
    intervals = []
    if variant_record.INFO.get("CIPOS") is not None:
        interval = abs(variant_record.INFO["CIPOS"][0])
        intervals.append(interval)
    if variant_record.INFO.get("CIEND") is not None:
        interval = abs(variant_record.INFO["CIEND"][-1])
        intervals.append(interval)
    if not intervals:
        return None
    return max(intervals)