def anc_allele(var):
    """
    Returns the ancestral allele of this SNP variant.

    Args:
        var: A variant string representing a SNP
    Returns:
        The ancestral base as uppercase
    """
    var = var.lstrip('(')
    return var[0].upper()