Skip to content

Commit

Permalink
actually write the index
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Nov 24, 2024
1 parent d1b19aa commit f97272e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mosdepth.nim
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ proc main(bam: hts.Bam, chrom: region_t, mapq: int, min_len: int, max_len: int,
when defined(d4):
if use_d4:
fd4.close
doAssert index_build_sfi(prefix & ".per-base.d4")

if fbase != nil and close(fbase) != 0:
stderr.write_line("[mosdepth] error writing per-base file\n")
Expand Down

0 comments on commit f97272e

Please sign in to comment.