def MIMAG_quality_level(row):
    """
    https://doi.org/10.1038/nbt.3893
    """
    if row['Completeness'] > 90.0 and row['Contamination'] < 5.0:
        return 'high_quality'
    elif row['Completeness'] > 50.0 and row['Contamination'] < 10.0:
        return 'medium_quality'
    else:
        return 'low_quality'
