count_kmers: Count kmers

Description Usage Arguments

View source: R/RcppExports.R

Description

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.

Usage

1
count_kmers(sequences, kmer_size)

Arguments

sequences

A vector of Strings (DNA sequences) of length 'n'

kmer_size

Integer. Size of kmers to use for analysis.


lindberg-m/contextendR documentation built on Jan. 8, 2022, 3:16 a.m.