weka511 / bioinformatics

Code inspired by Bioinformatics Algorithms: an Active Learning Approach.
GNU General Public License v3.0
114 stars 35 forks source link

Solve SIMS #38

Open weka511 opened 3 years ago

weka511 commented 3 years ago

I was able to pass the test using my code from BA5H, but there is still something about sims.py which I don't understand. Here is the test harness from BA5H: if name=='main': import timeit with open('sims.txt',"w") as f: start_time = timeit.default_timer()
strings = create_strings(fasta=True)
d,s1,t1 = ba5h(strings[0],strings[1])
print ('Score = {0}'.format(d)) print (s1) print (t1) f.write(f'{d}\n') f.write(f'{s1}\n') f.write(f'{t1}\n') print ('Elapsed Time = {0}'.format(timeit.default_timer() - start_time))