Skip to content

Commit 5875c39

Browse files
committed
Contig stitcher: check that --debug is enabled for --plot
1 parent 9e28810 commit 5875c39

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: micall/core/contig_stitcher.py

+4
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,10 @@ def main(args):
697697
logger.setLevel(logging.WARN)
698698

699699
logging.basicConfig(level=logger.level)
700+
if args.plot and logger.level > logging.DEBUG:
701+
logging.error("Option --plot requires --debug.")
702+
exit(1)
703+
700704
write_contig_refs(args.contigs.name, args.stitched_contigs, stitcher_plot_path=args.plot)
701705
args.contigs.close()
702706
args.stitched_contigs.close()

0 commit comments

Comments
 (0)