class Meru::Counter

Defined in:

meru/counter.cr

Constructors

Instance Method Summary

Constructor Detail

def self.count_files(paths : Array(String), k : Int32) : Counter #

[View source]
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.


[View source]
def self.new(k : Int32) #

[View source]

Instance Method Detail

def add_sequence(seq : String | IO::Memory) #

[View source]
def add_sequence_bytes(bytes : Bytes) #

[View source]
def counts : KmerCounts #

[View source]
def k : Int32 #

[View source]
def merge!(other : Counter) #

[View source]
def total_bases : UInt64 #

[View source]
def total_bases=(total_bases : UInt64) #

[View source]
def total_reads : UInt64 #

[View source]
def total_reads=(total_reads : UInt64) #

[View source]
def valid_kmers : UInt64 #

[View source]
def valid_kmers=(valid_kmers : UInt64) #

[View source]