def write_motif_stats(stats, out_file):
    """Write stats to file

	Parameter:
	----------
	stats: dict
		dictionary with motif name as key and list with stats as value
	out_file: string
		path and name of out-file
	"""
    with open(out_file, 'w') as f:
        f.write('Motif\tGC content\tMotif length\n')
        for motif_name, stats in stats.items():
            stats_string = '\t'.join(map(str, stats))
            f.write('{}\t{}\n'.format(motif_name, stats_string))
