Help! Stuck with patternsearch
I try to calculate something for which I need to count the number of doublets (like AA, AC, TT etc) in a string
For example ACGATTGC gives AC CG GA AT TT TG and GC
My problem arises when there is more than two repeats: TTT should be two occurences of TT but patternsearch will only see one.
TTTT should be three occurences, but patternsearch only sees two.
Is there a variation of patternsearch which can do this?