Skip to content

Commit

Permalink
fix crash when using --coverage (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
HadrienG committed Feb 23, 2024
1 parent e335ca9 commit 7858571
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion iss/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 0 additions & 1 deletion iss/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 7858571

Please sign in to comment.