class HTS::Bcf::Info

Defined in:

hts/bcf/info.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(record : Bcf::Record) #

[View source]
def self.new(record : Bcf::Record::AccessorContext) #

[View source]

Instance Method Detail

def delete(tag : String) : Bool #

[View source]
def get_flag(tag) : Bool | Nil #

[View source]
def get_float(tag) : Array(Float32) | Nil #

[View source]
def get_float_opt(tag) : Array(Float32 | Nil) | Nil #

[View source]
def get_int(tag) : Array(Int32) | Nil #

[View source]
def get_int64(tag) : Array(Int64) | Nil #

[View source]
def get_int64_opt(tag) : Array(Int64 | Nil) | Nil #

[View source]
def get_int_opt(tag) : Array(Int32 | Nil) | Nil #

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

[View source]
def update_flag(tag : String, present : Bool = true) #

[View source]
def update_float(tag : String, value : Number) #

[View source]
def update_float(tag : String, values : Array(Float32)) #

[View source]
def update_int(tag : String, value : Int) #

[View source]
def update_int(tag : String, values : Array(Int32)) #

[View source]
def update_int64(tag : String, value : Int) #

[View source]
def update_int64(tag : String, values : Array(Int64)) #

[View source]
def update_string(tag : String, value : String) #

[View source]
def with_f32_buffer(tag : String, & : Slice(Float32) -> ) : Bool #

Yields a borrowed view of the raw Float32 INFO values.

Returns false without yielding when the field is absent. The slice is valid only during the block and may be invalidated earlier by another INFO Float32 getter on the same record.

EXPERIMENTAL


[View source]
def with_i32_buffer(tag : String, & : Slice(Int32) -> ) : Bool #

Yields a borrowed view of the raw Int32 INFO values.

Returns false without yielding when the field is absent. The slice is valid only during the block and may be invalidated earlier by another INFO Int32 getter on the same record.

EXPERIMENTAL


[View source]
def with_i64_buffer(tag : String, & : Slice(Int64) -> ) : Bool #

Yields a borrowed view of the raw Int64 INFO values.

Returns false without yielding when the field is absent. The slice is valid only during the block and may be invalidated earlier by another INFO Int64 getter on the same record.

EXPERIMENTAL


[View source]
def with_string_view(tag : String, & : Bytes -> ) : Bool #

EXPERIMENTAL


[View source]