예제 #1
0
def setup():
    global sa
    indexname = "./gludna"
    sa = SuffixArray.from_indexname(indexname)
    sa.bwt_from_indexname(indexname)
    sa.occ_from_indexname(indexname)
    sa.pos_from_indexname(indexname)
    sa.seq_from_indexname(indexname)
예제 #2
0
def main(indexname, num=1000, length=200):
    sa = SuffixArray.from_indexname(indexname)
    sa.bwt_from_indexname(indexname)
    sa.occ_from_indexname(indexname)
    for i in range(num):
        print("PATTERN",i)
        pat, opt = random_pattern(length)
        run_ms(sa, pat, opt)
    pass