pybedtools.helpers.chromsizes_to_file

pybedtools.helpers.chromsizes_to_file(chrom_sizes, fn=None)[source]

Converts a chromsizes dictionary to a file. If fn is None, then a tempfile is created (which can be deleted with pybedtools.cleanup()).

Returns the filename.