Skip to content

Commit

Permalink
handle Header ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Jun 8, 2021
1 parent f6c3bc0 commit 0bc50ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jigv.nim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import hts/bam
import hts/vcf
import hts/vcf except Header
import json
import hts/fai
import hts/bgzf/bgzi
Expand Down Expand Up @@ -65,7 +65,7 @@ proc encode*(ibam:Bam, region:string, hitid:int=int.high, drop_tags:seq[string]=
else:
new_header.add(line)

var h = bam.Header()
var h:bam.Header = Header()
h.from_string(new_header.join("\n"))

obam.write_header(h)
Expand Down

0 comments on commit 0bc50ea

Please sign in to comment.