Coronavirus made it tough but we keep working remotely with no delays. Get 15% OFF your First Order
Get 15% OFF your First Order

Programming

Need help debug my problem.

Need help with my Python question – I’m studying for my class.

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’

Looking for this or a Similar Assignment? Click below to Place your Order

× How can I help you?