def is_genotyped_or_well_imputed(info, r2=0):
    """Determine if the current variant was genotyped or was well-imputed
    
    Parameters
    ----------
    info : str
        Data from the INFO column of an imputed VCF file
    r2 : float
        R-squared threshold for inclusion based on imputation quality
    
    Returns
    -------
    bool
        True if the current variant either was genotyped or was well-imputed,
        (i.e. imputation quality exceeds threshold) False otherwise.
    """
    info_list = info.split(';')
    return info_list[-1] == 'TYPED' or float(info_list[2].split('=')[1]) > r2
