kmers {spiky} | R 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)

[Package spiky version 1.0.0 Index]