get_total_size_of_kmer: Get the total size of k-mer

Description Arguments Details Value

Description

Computes the number of characters of the result k-mer taking into account the base alphabet.

The number of characters of the result k-mer (after decoding from integer to string)

Arguments

s

integer vector of encoded elements of a sequence (see Details)

d

integer vector which denotes the gaps in k-mer

begin_index

integer representing the begin index (in s) of the k-mer

kmer

integer vector representing the encoded kmer (get_total_size_of_kmer)

num2str

hash map representing the encoding between the integer and string

Details

Each element of a sequence is previously encoded to an integer in order to make hashing computation more convenient

Value

int denoting the total size (number of characters) of k-mer

the number of characters in the result string that is the result of decoding each integer from kmer


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