class HTS::Bam::Aux

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(bam1 : Pointer(LibHTS::Bam1T)) #

[View source]

Instance Method Detail

def [](tag : String) #

Array-style access to specific tags


[View source]
def each(&) #

Iterate over all auxiliary tags


[View source]
def get_float(tag : String) #

[View source]
def get_int(tag : String) #

Type-specific access methods


[View source]
def get_string(tag : String) #

[View source]
def to_s(io : IO) : Nil #

HTSlib sam_format_aux1 compliant output with original type information


[View source]