Error with EnzRank

#1
by amk522 - opened

When I enter my peptide sequence and small molecule ID, I get a error stating: "UnboundLocalError: local variable 'compound_feature' referenced before assignment" with a traceback error:
File "/home/user/.local/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 564, in _run_script
exec(code, module.dict)
File "/home/user/app/app.py", line 186, in
main()
File "/home/user/app/app.py", line 179, in main
y = ld_model.predict([compound_feature, prot_feature])

Please help, I would love to be able to use EnzRank.

EDIT: I believe something is wrong with my small molecule ID. I ran my peptide sequence with the default small molecule ID and it worked. Then I changed the ID and it no longer worked. Anyone have any words of advice?

amk522 changed discussion status to closed
amk522 changed discussion status to open

Hi, It was an issue with hugging face and streamlit updates. I have fixed the issue. Please let me know if you still get the same error from your end. Thanks for pointing out the issue!

Can you please provide the input seq and molecule that you want to use for the prediction. I will try to figure out the issue and fix it. Thanks

Sign up or log in to comment