Skip to content

Commit

Permalink
Make sure temp directory exists when splitting queries #238
Browse files Browse the repository at this point in the history
  • Loading branch information
rafelafrance committed Feb 22, 2019
1 parent 5b50a85 commit 371aa9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/core_atram.py
Expand Up @@ -14,14 +14,15 @@

def assemble(args):
"""Loop thru every blast/query pair and run an assembly for each one."""
queries = split_queries(args)

with util.make_temp_dir(
where=args['temp_dir'],
prefix='atram_',
keep=args['keep_temp_dir']) as temp_dir:
util.update_temp_dir(temp_dir, args)

queries = split_queries(args)

for blast_db in args['blast_db']:

with db.connect(blast_db, check_version=True) as cxn:
Expand Down

0 comments on commit 371aa9b

Please sign in to comment.