def get_variant_line(variant_info, header_info):
    """Convert variant dictionary back to a VCF formated string

    Args:
        variant_info(dict):
        header_info(list)

    Returns:
        variant_string(str): VCF formated variant
    """

    info_dict = variant_info['info_dict']
    if not info_dict:
        info_string = '.'
    else:
        info_list = []
        for annotation in info_dict:
            if info_dict[annotation] is None:
                info_list.append(annotation)
                continue
            info_list.append('='.join([annotation, info_dict[annotation]]))
        variant_info['INFO'] = ';'.join(info_list)

    variant_list = []
    for annotation in header_info:
        variant_list.append(variant_info[annotation])

    return '\t'.join(variant_list)