Skip to content

Commit

Permalink
Added error handling if not reads were correctly processed for plotr_…
Browse files Browse the repository at this point in the history
…correction command.
  • Loading branch information
marcus1487 committed Apr 6, 2017
1 parent 4bcb976 commit 4d5b187
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nanoraw/plot_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,13 @@ def plot_corrections(
DiffDat.append(diff_dat)
if len(OldSegDat) >= num_reads:
break
if len(OldSegDat) == 0:
sys.stderr.write(
'ERROR: No reads were able to be processed. Check ' +
'--fast5-basedirs for FAST5 files and that ' +
'--corrected-group and --basecall-subgroup are correct ' +
'for the reads provided .\n')
sys.exit()
if VERBOSE and len(OldSegDat) < num_reads:
sys.stderr.write(
'WARNING: Fewer reads than requested were able to ' +
Expand Down

0 comments on commit 4d5b187

Please sign in to comment.