def rm_snp_annot(var):
    """
    Returns the SNP variant string, nicely formatted with annotation stripped.
    This includes ()'s, !, and lowercase bases.

    Args:
        var: A variant string representing a SNP
    Returns:
        The variant string with annotation removed.
    """
    if var.startswith('('):
        var = var[1:-1]
    var = var.rstrip('!')
    return var.upper()