def download(args):
accessions, infoFTP = set(args['<STR_LIT:g>']), args['<STR_LIT:i>']<EOL>search, exclude = args['<STR_LIT:s>'], args['<STR_LIT:e>']<EOL>FTPs = getFTPs(accessions, infoFTP, search, exclude, threads = args['<STR_LIT:t>'],<EOL>convert = args['<STR_LIT>'])<EOL>if args['<STR_LIT:test>'] is True:<EOL><INDENT>for genome in FTPs:<EOL><INDENT>print('<STR_LIT>', '<STR_LIT:;>'.join(genome[-<NUM_LIT:1>]), genome[<NUM_LIT:0>])<EOL><DEDENT>return FTPs<EOL><DEDENT>pool = Pool(args['<STR_LIT:t>'])<EOL>pool = pool.imap_unordered(wgetGenome, FTPs)<EOL>files = []<EOL>for f in tqdm(pool, total = len(accessions)):<EOL><INDENT>files.append(f)<EOL><DEDENT>return files<EOL>
download genomes from NCBI