Learn R Programming

kmeRtone (version 1.0)

buildKmerTable: Count k-mers from given sequence(s) and build a data.table of k-mer counts.

Description

Only existed k-mers are returned in data.table object.

Usage

buildKmerTable(dna.seqs, k, method = "auto", remove.N = TRUE)

Value

A data.table object with column kmer and N.

Arguments

dna.seqs

String of sequence(s).

k

Size of kmer.

method

K-mer counting method: "Biostrings", "sliding", or "auto". Default is "auto"; For k > 8, sliding method is used.

remove.N

Remove unknown base? Default is TRUE.