start
and width
parameter.
From each position of the search window, a DNA k-mer is identified on the
left hand side on the reverse complement of the given DNA sequence.
Each value in the start
vector defines the right border
of a search window.
The size of the search window is given by the appropriate value
in the width
vector.
revCountDnaKmers(dna, k ,start, width)
character
. Single DNA sequence (vector of length 1).
dna
must not contain other characters than "ATCGN".
Capitalization does not matter.
When a 'N' character is found, the ongoing identification
of a DNA k-mer is terminated.numeric
. Number of nucleotides in tabled DNA motifs.numeric
. Vector of (1-based) start positions for
reading frames.numeric
. Defines number of k-mers (size of search
window) for each start position. Must have the same length as
start
or length 1 (in which case the values of width
are recycled.)rseq <- "TATTAT"
revCountDnaKmers(rseq, 2,6:4, 2)
Run the code above in your browser using DataLab