Skip to content

Commit

Permalink
closes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Sep 3, 2019
1 parent 98d31d7 commit 3cef0aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ v0.2.21 (dev)
=======
+ hts/vcf allow setting id.
+ hts/vcf flush stdout on close.
+ hts/bam correct check for EOF (#48)

v0.2.20
=======
Expand Down
2 changes: 1 addition & 1 deletion src/hts/bam.nim
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ proc open*(bam: var Bam, path: cstring, threads: int=0, mode:string="r", fai: cs
if mode[0] == 'r' and 0 != threads and 0 != hts_set_threads(hts, cint(threads)):
raise newException(ValueError, "error setting number of threads")

if mode[0] == 'r' and bam.hts.format.format != hts_concat.sam and hts_check_EOF(hts) != 1:
if mode[0] == 'r' and hts_check_EOF(hts) < 1:
raise newException(ValueError, "invalid bgzf file")

if mode[0] == 'w':
Expand Down

0 comments on commit 3cef0aa

Please sign in to comment.