rolling
rolling copied to clipboard
Rolling window contains function
Essentially a rolling version of Python's in operator. Return True if the window contains a given string, e.g.:
>>> seq = 'rollrollingndsfw'
>>> r = rolling.Contains(seq, window_size=10, match='rolling')
>>> list(r)
[False, True, True, ...]
Could also be extended to match multiple fixed strings.