From 7858571967a72385157b1a56c619fe737727204c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hadrien=20Gourl=C3=A9?= Date: Fri, 23 Feb 2024 09:38:22 +0100 Subject: [PATCH] fix crash when using --coverage (#253) --- iss/app.py | 2 +- iss/generator.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/iss/app.py b/iss/app.py index 12656a0..bbcdbdd 100644 --- a/iss/app.py +++ b/iss/app.py @@ -64,7 +64,7 @@ def generate_reads(args): if readcount_dic is not None: n_reads = sum(readcount_dic.values()) logger.info("Generating %s reads" % n_reads) - elif not (args.coverage or args.coverage_file): + else: n_reads = util.convert_n_reads(args.n_reads) logger.info("Generating %s reads" % n_reads) diff --git a/iss/generator.py b/iss/generator.py index f948d7b..70033f5 100644 --- a/iss/generator.py +++ b/iss/generator.py @@ -560,7 +560,6 @@ def load_readcount_or_abundance( abundance_dic = abundance.parse_abundance_file(coverage_file) elif coverage in abundance_dispatch: # todo coverage distribution with --draft - logger.warning("--coverage is an experimental feature") logger.info("Using %s coverage distribution" % coverage) if draft: abundance_dic = abundance.draft(