scout/server/blueprints/variants/controllers.py
def frequency(variant_obj):
    """Returns a judgement on the overall frequency of the variant.

    Combines multiple metrics into a single call.
    """
    most_common_frequency = max(variant_obj.get('thousand_genomes_frequency') or 0,
                                variant_obj.get('exac_frequency') or 0)
    if most_common_frequency > .05:
        return 'common'
    elif most_common_frequency > .01:
        return 'uncommon'
    else:
        return 'rare'
def frequency(variant_obj):
    most_common_frequency = max(variant_obj.get('thousand_genomes_frequency') or 0,
                                variant_obj.get('exac_frequency') or 0)
    if most_common_frequency > .05:
        return 'common'
    elif most_common_frequency > .01:
        return 'uncommon'
    else:
        return 'rare'
def frequency ( variant_obj ) : most_common_frequency = max ( variant_obj . get ( 'thousand_genomes_frequency' ) or 0 , variant_obj . get ( 'exac_frequency' ) or 0 ) if most_common_frequency > .05 : return 'common' elif most_common_frequency > .01 : return 'uncommon' else : return 'rare'
Returns a judgement on the overall frequency of the variant.

    Combines multiple metrics into a single call.
Returns a judgement on the overall frequency of the variant .