Skip to content

Commit

Permalink
polishing coverage bugfix #620
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolmogorov committed Sep 8, 2023
1 parent 911957b commit 7198b7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion flye/__build__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__build__ = 1794
__build__ = 1795
2 changes: 2 additions & 0 deletions flye/polishing/polish.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ def polish(contig_seqs, read_seqs, work_dir, num_iters, num_threads, read_platfo
with open(stats_file, "w") as f:
f.write("#seq_name\tlength\tcoverage\n")
for ctg_id in contig_lengths:
if ctg_id not in coverage_stats:
coverage_stats[ctg_id] = 0
f.write("{0}\t{1}\t{2}\n".format(ctg_id,
contig_lengths[ctg_id], coverage_stats[ctg_id]))

Expand Down

0 comments on commit 7198b7d

Please sign in to comment.