def _dl_wrapper(d: dict):
     url = "ftp://hgdownload.cse.ucsc.edu/goldenPath/hg19/chromosomes/chr{}.fa.gz".format(
         d.get("chromosome"))
     return Utilities.download_file(url, d.get("chromosomes_dir"))
 def _download_handler(input_tuple: tuple):
     os.makedirs(input_tuple[1], exist_ok=True)
     out_file = Utilities.download_file(url=input_tuple[0],
                                        out_dir=input_tuple[1])
     Utilities.decompress_file(out_file)
Пример #3
0
 def _dl_handler(d: dict):
     Utilities.download_file(url=d["url"], out_dir=d["out_dir"])