def main(filename):
    dat = readdat(filename)
    print 'Approach 1:'
    startt = time.clock()
    print ltclumps(*dat)
    endt = time.clock()
    print 'Wall time /sec:', endt - startt
    # this don't work: timeit.repeat('ltclumps(genome, k, l, t)', setup='from __main__ import ltclumps', repeat=3, number=100)
    print 'Approach 2:'
    startt = time.clock()
    print ltclumps2(*dat)
    endt = time.clock()
    print 'Wall time /sec:', endt - startt
def main(filename):
    dat = readdat(filename)
    print 'Approach 1:'
    startt = time.clock()
    print ltclumps(*dat)
    endt = time.clock()
    print 'Wall time /sec:', endt - startt
    # this don't work: timeit.repeat('ltclumps(genome, k, l, t)', setup='from __main__ import ltclumps', repeat=3, number=100)
    print 'Approach 2:'
    startt = time.clock()
    print ltclumps2(*dat)
    endt = time.clock()
    print 'Wall time /sec:', endt - startt
def main(filename):
    dat = readdat(filename)
    print pattern_freq(*dat)
def main(filename):
    dat = readdat(filename)
    print min_skew_prefix_len(*dat)
Esempio n. 5
0
def main(filename):
    dat = readdat(filename)
    counts = count_nuc(dat[0])
    rosalind_format_output(counts)
def main(filename):
    dat = readdat(filename)
    with open('ba1k_out.txt', 'w') as fout:
        for item in freq_array(*dat):
            fout.write(str(item) + ' ')
def main(filename):
    dat = readdat(filename)
    print hamming_dist(*dat)
Esempio n. 8
0
def main(filename):
    dat = readdat(filename)
    with open('ba1h_out.txt', 'w') as fout:
        fout.write(approx_pat_posi(*dat))
def main(filename):
    dat = readdat(filename)
    counts = count_nuc(dat[0])
    rosalind_format_output(counts)
Esempio n. 10
0
def main(filename):
    dat = readdat(filename)
    print hamming_dist(*dat)
Esempio n. 11
0
def main(filename):
    dat = readdat(filename)
    maxfreq_mm(*dat)
Esempio n. 12
0
def main(filename):
    dat = readdat(filename)
    with open('ba1k_out.txt', 'w') as fout:
        for item in freq_array(*dat):
            fout.write(str(item) + ' ')
Esempio n. 13
0
def main(filename):
    dat = readdat(filename)
    print pattern_freq(*dat)
Esempio n. 14
0
def main(filename):
    dat = readdat(filename)
    with open('ba1h_out.txt', 'w') as fout:
        fout.write(approx_pat_posi(*dat))
def main(filename):
    dat = readdat(filename)
    print rev_comp(dat[0])