def Write_VCF(table, header, outname):
    """Write out vcf with filter info added

    Parameters
    ----------
    table : DataFrame
        final dataframe with updated filter info
    header : list
        stored header from original vcf with added FILTER lines
    outname : str
        output name for new vcf
    """
    with open(outname, 'w') as vcf_out:
        for line in header:
            vcf_out.write('%s' % line)
    table.to_csv(outname, sep='\t', header=False, mode='a', index=False)
