Generate all k-mers. starting with the given sequence on the given alphabet Generate k-mers with the given k and probabilities of nucleotides next to each other (markov chain).
generate.kmers(.k, .seq = '', .alphabet = c('A', 'C', 'G', 'T'))generate.kmers.prob(.k, .probs, .count = 1, .alphabet = c('A', 'C', 'G', 'T'),
.last.nucl = 'X')
Size of k-mers or either integer or vector with k-s for generate.kmers.prob.
Prefix of all generated k-mers.
Alphabet.
Matrix with probabilities for generating adjacent symbol with |alphabet| X |alphabet| size. Order of letters is
given in the .alphabet
parameter.
Number of kmers to be generated.
Adjacent nucleotide from which start generation. If 'X' than choose one of the nucleotides with equal probabilities.
Vector of all possible k-mers for generate.kmers
or a vector of generated kmers for generate.kmers.prob
.