class

Meru::Counter

Inherits Reference < Object

Constructors

count_files(paths : Array(String), k : Int32) : Counter
Source
count_files_parallel(paths : Array(String), k : Int32, threads : Int32, chunk_size : Int32 = 10000) : Counter

Worker-local counters. With Crystal multithreading enabled this can use CPU parallelism. Without it, the structure remains deterministic and easy to inspect.

Source
new(k : Int32)
Source

Instance methods

add_sequence(seq : String | IO::Memory)
Source
add_sequence_bytes(bytes : Bytes)
Source
counts
Source
merge!(other : Counter)
Source
total_bases
Source
total_bases=(total_bases : UInt64)
Source
total_reads
Source
total_reads=(total_reads : UInt64)
Source
valid_kmers
Source
valid_kmers=(valid_kmers : UInt64)
Source