count(seq,word,frame=0)
count
counts the occurence of all words by moving a window of
length word
. The window step is always an unit. frame
controls the starting position in the sequence for the count.table
a=s2c("acgggtacggtcccatcgaa")
##To count the occurences of dinucleotides of a:
count(a,2)
##To count the occurences of trinucleotides of a in frame 2:
count(a,3,2)
Run the code above in your browser using DataLab