Count the number of sequences that contain kmers. For example, the set of
sequences c("AAAAAA", "AGCAGC", "TTAAGG")
will detect
"AAA" only once, in the first sequence. Even though the kmer "AAA" occurs
more than once in the first sequence - it's only in one sequence (the two
other sequences does not contain any "AAA" kmer) - so the function will
return a count of 1.
1 | count_kmers(sequences, kmer_size)
|
sequences |
A vector of Strings (DNA sequences) of length 'n' |
kmer_size |
Integer. Size of kmers to use for analysis. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.