class
HTS::Bcf::Format
- HTS::Bcf::Format
- Reference
- Object
Defined in:
hts/bcf/format.crConstructors
Instance Method Summary
- #delete(tag : String) : Bool
-
#each_genotype(tag : String = "GT", & : Int32, GenotypeView -> ) : Bool
Yields each sample index and a borrowed view of its encoded GT values.
EXPERIMENTAL
-
#each_scalar_f32(tag : String, & : Int32, Float32 -> ) : Bool
EXPERIMENTAL
-
#each_scalar_i32(tag : String, & : Int32, Int32 -> ) : Bool
EXPERIMENTAL
-
#each_string_view(tag : String, & : Int32, Bytes -> ) : Bool
EXPERIMENTAL
-
#each_vector_f32(tag : String, & : Int32, Slice(Float32) -> ) : Bool
EXPERIMENTAL
-
#each_vector_i32(tag : String, & : Int32, Slice(Int32) -> ) : Bool
EXPERIMENTAL
-
#genotype_at(tag : String, sample_index : Int, & : GenotypeView -> ) : Bool
Yields a borrowed GT view for one sample without traversing other samples.
EXPERIMENTAL
- #genotypes : Array(Int32) | Nil
- #get_float(tag) : Array(Float32) | Nil
-
#get_genotypes : Array(Int32) | Nil
ameba:disable Naming/AccessorMethodName
- #get_int(tag) : Array(Int32) | Nil
-
#get_string(tag) : Array(String) | Nil
Returns one String per sample.
- #update_float(tag : String, value : Number)
- #update_float(tag : String, values : Array(Float32))
- #update_genotypes(values : Array(Int32))
- #update_int(tag : String, value : Int)
- #update_int(tag : String, values : Array(Int32))
- #update_string(tag : String, value : String)
- #update_string(tag : String, values : Array(String))
-
#with_f32_buffer(tag : String, & : Slice(Float32) -> ) : Bool
Yields a borrowed view of the raw Float32 FORMAT values.
EXPERIMENTAL
-
#with_i32_buffer(tag : String, & : Slice(Int32) -> ) : Bool
Yields a borrowed view of the raw Int32 FORMAT values.
EXPERIMENTAL
Constructor Detail
Instance Method Detail
Yields each sample index and a borrowed view of its encoded GT values.
Returns false without yielding when GT is absent. A view is valid only during its block invocation and excludes trailing vector-end sentinels.
EXPERIMENTAL
Yields a borrowed GT view for one sample without traversing other samples. Returns false without yielding when GT is absent.
EXPERIMENTAL
Returns one String per sample. Character FORMAT fields are handled here too.
Yields a borrowed view of the raw Float32 FORMAT 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 FORMAT Float32 getter on the same record.
EXPERIMENTAL
Yields a borrowed view of the raw Int32 FORMAT 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 FORMAT Int32 or genotype getter on the same record.
EXPERIMENTAL