create_kmer: Create k-mer

Description Arguments Value

Description

Creates k-mer (of type string) from encoded (integer) vector based on encoding described in num2str and kmer_decorator

Creates k-mer (of type string) from encoded (integer) vector based on encoding described in num2str and kmer_decorator

Arguments

s

integer vector representing an encoded sequence

d

integer vector representing the gaps in k-mer

begin_index

integer representing the start of k-mer (in s)

kmer

integer vector representing an encoded sequence

num2str

hash map representing encoding of sequence items between integer and string

kmer_decorator

a function that can add extra characters to k-mer (for example position information)

Value

a string representing a result k-mer (that is used for presentation)

a string representing a result k-mer (that is used for presentation)


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