class
Meru::Counter
- Meru::Counter
- Reference
- Object
Defined in:
meru/counter.crConstructors
- .count_files(paths : Array(String), k : Int32) : Counter
-
.count_files_parallel(paths : Array(String), k : Int32, threads : Int32, chunk_size : Int32 = 10000) : Counter
Worker-local counters.
- .new(k : Int32)
Instance Method Summary
- #add_sequence(seq : String | IO::Memory)
- #add_sequence_bytes(bytes : Bytes)
- #counts : KmerCounts
- #k : Int32
- #merge!(other : Counter)
- #total_bases : UInt64
- #total_bases=(total_bases : UInt64)
- #total_reads : UInt64
- #total_reads=(total_reads : UInt64)
- #valid_kmers : UInt64
- #valid_kmers=(valid_kmers : UInt64)
Constructor Detail
def self.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.