module Meru::Kmer

Extended Modules

Defined in:

meru/kmer.cr

Constant Summary

MAX_K = 32

Instance Method Summary

Instance Method Detail

def canonical(forward : Encoded, reverse_complement : Encoded) : Encoded #

[View source]
def each_canonical(seq : String | IO::Memory, k : Int32, & : Encoded -> ) #

Rolling 2-bit encoding keeps the implementation compact while avoiding re-encoding every window from scratch.


[View source]
def each_canonical_bytes(bytes : Bytes, k : Int32, & : Encoded -> ) #

[View source]
def reverse_complement(kmer : Encoded, k : Int32) : Encoded #

[View source]
def validate_k!(k : Int32) #

[View source]