Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def fetch_ucsc_centromeres(db,**kwargs):
return read_table(
'http://hgdownload.cse.ucsc.edu/goldenPath/{}/database/centromeres.txt.gz'.format(db),
schema='centromeres',
**kwargs)
def fetch_ucsc_cytoband(db, ideo=True, **kwargs):
if ideo:
return read_table(
'http://hgdownload.cse.ucsc.edu/goldenPath/{}/database/cytoBandIdeo.txt.gz'.format(db),
schema='cytoband',
**kwargs)
else:
return read_table(
'http://hgdownload.cse.ucsc.edu/goldenPath/{}/database/cytoBand.txt.gz'.format(db),
schema='cytoband',
**kwargs)
path[:-12]: lambda : read_table(
pkg_resources.resource_filename(__name__, 'data/'+path),
SCHEMAS['bed3'])
for path in pkg_resources.resource_listdir(__name__, 'data/')