Description Usage Arguments Details Value Author(s) See Also Examples
Counting overlapping words of length K in DNA/RNA sequences.
1 |
sequences |
Vector of sequences (text). |
K |
Word length (integer). |
col.names |
Logical indicating if the words should be added as columns names. |
For each input sequence, the frequency of every word of length K
is counted.
Counting is done with overlap. The counting itself is done by a C++ function.
With col.names=TRUE
the K-mers are added as column names, but this makes the
computations slower.
A matrix with one row for each sequence in sequences
and one column for
each possible word of lengthK
.
Kristian Hovde Liland and Lars Snipen.
multinomTrain
, multinomClassify
.
1 | KmerCount("ATGCCTGAACTGACCTGC",K=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.