Learn R Programming

ftrCOOL (version 2.0.0)

nameKmer: naming Kmer (nameKmer)

Description

This function creates all possible k-combinations of the given alphabets.

Usage

nameKmer(k = 3, type = "aa", num = 0)

Arguments

k

is a numeric value.

type

can be one of "aa", "rna", "dna", or "num".

num

When type is set to "num", it shows the numeric alphabet( 1,..,,num).

Value

a string vector of length (20^k for 'aa' type), (4^k for 'dna' type), (4^k for 'rna' type), and (num^k for 'num' type).

Examples

Run this code
# NOT RUN {
all_kmersAA<-nameKmer(k=2,type="aa")

all_kmersDNA<-nameKmer(k=3,type="dna")

all_kmersNUM<-nameKmer(k=3,type="num",num=2)
# }

Run the code above in your browser using DataLab