def write_filter_file(filename, filter):
    """
    Outputs cluster assignments to a file

    :param filename: String
        File to be written
    :param filter: set(String)
        Set of gene names included in the filter

    """
    with open(filename, 'w') as fout:
        fout.write('\t'.join(filter) + '\n')
