def build_vep_string(vep_info, vep_columns):
    """
    Build a vep string formatted string.
    
    Take a list with vep annotations and build a new vep string
    
    Args:
        vep_info (list): A list with vep annotation dictionaries
        vep_columns (list): A list with the vep column names found in the
        header of the vcf
    
    Returns:
        string: A string with the proper vep annotations
    
    """
    logger = getLogger(__name__)
    logger.debug("Building vep string from {0}".format(vep_info))
    logger.debug("Found vep headers {0}".format(vep_columns))
    vep_strings = []
    for vep_annotation in vep_info:
        try:
            vep_info_list = [
                vep_annotation[vep_key] for vep_key in vep_columns
            ]
        except KeyError:
            raise SyntaxError("Vep entry does not correspond to vep headers")
        
        vep_strings.append('|'.join(vep_info_list))
    return ','.join(vep_strings)
Build a vep string formatted string.
    
    Take a list with vep annotations and build a new vep string
    
    Args:
        vep_info (list): A list with vep annotation dictionaries
        vep_columns (list): A list with the vep column names found in the
        header of the vcf
    
    Returns:
        string: A string with the proper vep annotations