Skip to content

Commit f17fdbf

Browse files
committed
Add sam_hdr_set and sam_hdr_get functions
1 parent 74b6013 commit f17fdbf

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

lib/hts/libhts/sam.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,18 @@ def self.sam_itr_next(htsfp, itr, r)
738738
:bam_mods_recorded,
739739
[HtsBaseModState, :pointer],
740740
:pointer
741+
742+
# Sets the header to the file
743+
attach_function \
744+
:sam_hdr_set,
745+
[HtsFile, SamHdr, :int],
746+
:int
747+
748+
# Get the header from the file pointer
749+
attach_function \
750+
:sam_hdr_get,
751+
[HtsFile],
752+
SamHdr
741753
end
742754
end
743755

0 commit comments

Comments
 (0)