module

SparseBinary

Class methods

read(filename : String)

Reader method to verify the written data

Source
write(filename : String, coords : Array(Int64), values : Array(UInt32), read_names : Array(String), nnz : Int64, num_rows : Int64, num_cols : Int64) : Bool

Write sparse tensor with read names included in custom binary format coords: flattened coordinates array [row0, col0, row1, col1, ...] values: k-mer count values (UInt32) read_names: array of strings for row names nnz: number of non-zero elements num_rows: number of rows in the matrix num_cols: number of columns in the matrix filename: output file path Returns true on success, false on error

Source
write_slice(filename : String, coords : Slice(Int64), values : Slice(UInt32), read_names : Array(String), nnz : Int64, num_rows : Int64, num_cols : Int64) : Bool

Alternative method with slices for better performance with large data

Source