Need help debug my problem.
I have a few modules in the file mymotif.py and trying to use those modules in the file “Gibbs.py”. All the modules work on their on in file mymotif but not when imported into Gibbs.py. I attached the error message and two source code files with this post.
Goal is to make all the “import mymotif.py” work.
Error message:
Program does not run:
$ ./gibbs.py mydna.txt 6 100
Traceback (most recent call last):
File “./gibbs.py”, line 6, in
import mymotif
File “/home/c.bruce/BINF6308/binf6308-og-GEZHU0376/assmt8A2/mymotif.py”, line 63, in
print (profile(string_list,2))
File “/home/c.bruce/BINF6308/binf6308-og-GEZHU0376/assmt8A2/mymotif.py”, line 52, in profile
count = Count(string_list,p)
File “/home/c.bruce/BINF6308/binf6308-og-GEZHU0376/assmt8A2/mymotif.py”, line 42, in Count
Count[symbol][j-1] += 1
KeyError: ‘B’
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


