count_kmers_helper: Count k-mers

Description Arguments Value

Description

Counts the occurrences of k-mers (the size of k-mer should be larger than one)

Arguments

s

integer vector representing encoded input sequence

d

integer vector representing gaps in k-mer

alphabet

integer vector representing encoded alphabet

num2str

hash map representing the sequence elements encoding between integer and string

kmer_decorator

function that can add extra characters in order to enhance the presentation of string k-mer

pos

logical value representing whether to count positional k-mers

Value

hash map whose key is a string presentation of k-mer and value is the number of its occurrences


piotr-ole/kmer documentation built on Nov. 14, 2019, 8:10 p.m.