Skip to content

Commit

Permalink
create folder if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengzhenxian committed Jul 5, 2024
1 parent 70b1cf8 commit fbefe3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cnv_germline_tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def get_cnv_purity(args):

args.verdict = args.verdict if args.verdict else entry_path

if args.output_dir is not None and os.path.exists(args.output_dir):
if args.output_dir is not None and not os.path.exists(args.output_dir):
subprocess.run(f'mkdir -p {args.output_dir}', shell=True)

tac_command = tumor_allele_counter_command(args)
Expand Down

0 comments on commit fbefe3e

Please sign in to comment.