update_kmers: Update k-mers in a 'hash map'

Description Arguments Details

Description

Update k-mers in a hash map

Arguments

kmers

a hash map reference representing the found k-mers (see details)

d

integer vector representing gaps in k-mer

s

integer vector representing an encoded sequence

kmer_hash

integer representing computed hash of k-mer

kmer_begin_index

integer representing the begin index of k-mer in s

num2str

hash map representing encoding of sequence items between integer and string

kmer_decorator

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

Details

k-mers hashmap contains key-value pairs: key is an integer representing a hash of k-mer, whereas the value represents a pair: (k-mer string for presentation, number of k-mer occurrences)


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