nameKmer: naming Kmer (nameKmer)

Description Usage Arguments Value Examples

View source: R/nameKmer.R

Description

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

Usage

1
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

1
2
3
4
5
all_kmersAA<-nameKmer(k=2,type="aa")

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

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

ftrCOOL documentation built on Nov. 30, 2021, 1:07 a.m.

Related to nameKmer in ftrCOOL...