Skip to content

Commit

Permalink
start to create output folder if doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
youyupei committed May 17, 2024
1 parent a961d60 commit 6da0b8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blaze/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ def print_help():
out_emptydrop_fn = prefix + DEFAULT_EMPTY_DROP_FN
out_plot_fn = prefix + DEFAULT_KNEE_PLOT_FN
summary_fn = prefix + DEFAULT_BC_STAT_FN
# create output directory if not exist
out_dir = os.path.dirname(out_fastq_fn)
if out_dir and not os.path.exists(out_dir):
os.makedirs(out_dir)

if kit not in ['v2', 'v3']:
helper.err_msg("Error: Invalid value of --kit-version, please choose from v3 or v2")
Expand Down

0 comments on commit 6da0b8d

Please sign in to comment.