Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"""
Download chromosome sizes from UCSC as a :class:`pandas.Series`, indexed
by chromosome label.
Parameters
----------
db : str
The name of a UCSC genome assembly.
Other Parameters
----------------
**kwargs :
Passed to :func:`read_chromsizes`.
"""
return read_chromsizes(
'http://hgdownload.cse.ucsc.edu/goldenPath/{}/database/chromInfo.txt.gz'.format(db),
**kwargs)
path[:-12]: lambda : read_chromsizes(
pkg_resources.resource_filename(__name__, 'data/'+path))
for path in pkg_resources.resource_listdir(__name__, 'data/')