daquang / YAMDA

Yet Another Motif Discovery Algorithm
MIT License
51 stars 7 forks source link

Testing with protein leads to TypeError #8

Closed noamteyssier closed 5 years ago

noamteyssier commented 5 years ago

tried a test run with run_em on protein sequences and resulted in a TypeError

full trace with input : errorcode

daquang commented 5 years ago

I pushed an update. Changing line 152 to convert the number to cpu. Can you check if this update works?

Also, I've never done motif discovery with proteins before, so I'm very interested in your results.

noamteyssier commented 5 years ago

So I was able to get it running by editing lines 153, 320, 330, and 342 in Mixture.py by converting to cpu.

One last update is in utils.py in the print statement of the PPM to make it relative to the number of letters in the alphabet and not just the 4 DNA sequences.

I'm just back from the holidays so I will be comparing the results I receive with YAMDA with those of MEME and keep you updated!