def get_expr_for_end_pos(field_prefix="v.", pos_field="start", ref_field="ref"):
    """Compute the end position based on start position and ref allele length"""
    return "%(field_prefix)s%(pos_field)s + %(field_prefix)s%(ref_field)s.length - 1" % locals()