scout/parse/variant/frequency.py
def parse_frequency(variant, info_key):
    """Parse any frequency from the info dict

    Args:
        variant(cyvcf2.Variant)
        info_key(str)

    Returns:
        frequency(float): or None if frequency does not exist
    """
    raw_annotation = variant.INFO.get(info_key)
    raw_annotation = None if raw_annotation == '.' else raw_annotation
    frequency = float(raw_annotation) if raw_annotation else None
    return frequency
def parse_frequency(variant, info_key):
    raw_annotation = variant.INFO.get(info_key)
    raw_annotation = None if raw_annotation == '.' else raw_annotation
    frequency = float(raw_annotation) if raw_annotation else None
    return frequency
def parse_frequency ( variant , info_key ) : raw_annotation = variant . INFO . get ( info_key ) raw_annotation = None if raw_annotation == '.' else raw_annotation frequency = float ( raw_annotation ) if raw_annotation else None return frequency
Parse any frequency from the info dict

    Args:
        variant(cyvcf2.Variant)
        info_key(str)

    Returns:
        frequency(float): or None if frequency does not exist
Parse any frequency from the info dict