def annotate_variant(variant, var_obj=None):
    """Annotate a cyvcf variant with observations
    
    Args:
        variant(cyvcf2.variant)
        var_obj(dict)
    
    Returns:
        variant(cyvcf2.variant): Annotated variant
    """
    if var_obj:
    
        variant.INFO['Obs'] = var_obj['observations']
        if var_obj.get('homozygote'):
            variant.INFO['Hom'] = var_obj['homozygote']
        if var_obj.get('hemizygote'):
            variant.INFO['Hem'] = var_obj['hemizygote']
    
    return variant
def annotate_variant ( variant , var_obj = None ) : if var_obj : variant . INFO [ 'Obs' ] = var_obj [ 'observations' ] if var_obj . get ( 'homozygote' ) : variant . INFO [ 'Hom' ] = var_obj [ 'homozygote' ] if var_obj . get ( 'hemizygote' ) : variant . INFO [ 'Hem' ] = var_obj [ 'hemizygote' ] return variant
Annotate a cyvcf variant with observations
    
    Args:
        variant(cyvcf2.variant)
        var_obj(dict)
    
    Returns:
        variant(cyvcf2.variant): Annotated variant