class

D4::Writer

Inherits Reference < Object

Constructors

new(path : String | Path, *, chromosomes : Array(Chromosome), dictionary : Dictionary, denominator : Float64 = 1.0, default_value : Int32 = 0, options : WriteOptions = WriteOptions.new, control : WriteControl = WriteControl.new)
Source

Instance methods

abort
Source
close
Source
closed?
Source
control
Source
finish
Source
finished?
Source
flush
Source
write_interval(chromosome : String, left : Int, right : Int, value : Int32) : Nil
Source
write_intervals(chromosome : String, intervals : Enumerable(RawInterval)) : Int64
Source
write_scaled_interval(chromosome : String, left : Int, right : Int, value : Float64, *, rounding : Rounding) : Nil
Source
write_scaled_values(chromosome : String, position : Int, values : Array(Float64) | Slice(Float64), *, rounding : Rounding) : Int64

Quantize known-size input before delegating to the prevalidated dense writer. This avoids publishing a prefix when a later value is invalid.

Source
write_scaled_values(chromosome : String, position : Int, values : Enumerable(Float64), *, rounding : Rounding) : Int64
Source
write_value(chromosome : String, position : Int, value : Int32) : Nil
Source
write_values(chromosome : String, position : Int, values : Array(Int32) | Slice(Int32)) : Int64
Source
write_values(chromosome : String, position : Int, values : Enumerable(Int32)) : Int64

Known-size input follows the prevalidated bulk path above. Lazy input is held in fixed-size chunks even for multi-gigabyte files.

Source