Skip to content

Commit

Permalink
Merge pull request #255 from HadrienG/cov_fix
Browse files Browse the repository at this point in the history
fix crash when using --coverage (#253)
  • Loading branch information
HadrienG authored Feb 23, 2024
2 parents 418c92b + 7858571 commit 8f16beb
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 8f16beb

Please sign in to comment.