def augustus_multi(threads, species, single_fasta_list, wd, verbose):
'''handles the assembly process and parsing in a multithreaded way'''
if int(threads) < 1:
threads = 1
all_augustus = []
augustus = [wd, species, verbose]
for record in single_fasta_list:
single_command = augustus + [record]
all_augustus.append(single_command)
sys.stdout.write ("\t###RUNNING AUGUSTUS ###\n")
with Pool(processes=int(threads), maxtasksperchild=1000) as pool:
pool.map(augustus_call, all_augustus)
parseAugustus(wd)
return
评论列表
文章目录