kmers: oligonucleotideFrequency, but less letters and more...

View source: R/kmers.R

kmersR Documentation

oligonucleotideFrequency, but less letters and more convenient.

Description

oligonucleotideFrequency, but less letters and more convenient.

Usage

kmers(x, k = 6)

Arguments

x

BSgenome, DFrame with sequence column, or DNAStringSet

k

the length of the kmers (default is 6)

Details

The companion kmax function finds the maximum frequency kmer for each contig and plots all of them together for comparison purposes.

Value

       a matrix of contigs (rows) by kmer frequencies (columns)

See Also

      kmax

Examples


data(genbank_mito, package="spiky") 
mtk6 <- kmers(genbank_mito, k=6)
kmax(mtk6)

data(phage, package="spiky") 
phk6 <- kmers(phage, k=6)
kmax(phk6)


trichelab/spiky documentation built on Sept. 17, 2022, 8:44 a.m.