generateKmers: Generate K-mers

Description Usage Arguments Value Examples

View source: R/motif_analysis.R

Description

Given a list of characters, generates all possible fixed length strings

Usage

1
generateKmers(k, letters = c("A", "C", "G", "T"))

Arguments

k

The length of the strings to be generated

letters

A character vector

Value

Vector of strings

Examples

1
generateKmers(3, c('A', 'C', 'G'))

RCAS documentation built on Nov. 8, 2020, 8:03 p.m.