Beispiel #1
0
def clumps(s, k, L, t):
    candidates = [x for x, v in ro.kmer_counter(s, k).iteritems() if v >= t]
    return (x for x in candidates if shortest_clump(list(ro.find_all(s, x)), t) <= L)
Beispiel #2
0
def one_c(f):
    pattern, text = ro.read_lines(f)
    return ' '.join(map(str, ro.find_all(text, pattern)))