class
HTS::Bam::Aux
- HTS::Bam::Aux
- Reference
- Object
Overview
Provides iteration over auxiliary tags in BAM records
This class enables efficient access to all auxiliary tags using HTSlib's bam_aux_first and bam_aux_next functions.
Usage examples:
Iterate over all tags
record.aux.each do |tag, value| puts "#{tag}: #{value}" end
Access specific tag
as_score = record.aux["AS"]
Defined in:
hts/bam/auxi.crConstructors
Instance Method Summary
-
#[](tag : String)
Array-style access to specific tags
-
#each(&)
Iterate over all auxiliary tags
- #get_char(tag : String)
- #get_float(tag : String)
-
#get_int(tag : String)
Type-specific access methods
- #get_string(tag : String)
-
#to_s(io : IO) : Nil
HTSlib sam_format_aux1 compliant output with original type information
- #update_array(tag : String, values : Array(Number), subtype : Char = 'i')
- #update_char(tag : String, value : Char)
- #update_double(tag : String, value : Number)
- #update_float(tag : String, value : Number)
- #update_hex(tag : String, value : String)
- #update_int(tag : String, value : Int)
- #update_int16(tag : String, value : Int)
- #update_int32(tag : String, value : Int)
- #update_int8(tag : String, value : Int)
- #update_string(tag : String, value : String)
- #update_uint16(tag : String, value : Int)
- #update_uint32(tag : String, value : Int)
- #update_uint8(tag : String, value : Int)