lhatsk / AlphaLink

AlphaLink: Integrating crosslinking MS data into OpenFold
Apache License 2.0
64 stars 17 forks source link

Run "python preprocessing_distributions.py --infile restraints.csv" but get an error #20

Closed chenx469 closed 10 months ago

chenx469 commented 11 months ago

Hi,

When I tried to get distance distributions from restraint lists by running "python preprocessing_distributions.py --infile restraints.csv", I received an error like below

$ python preprocessing_distributions.py --infile restraints.csv Traceback (most recent call last): File "/lscratch/14291792/preprocessing_distributions.py", line 50, in for line in restraints: TypeError: iteration over a 0-d array

The restraints.csv is a test file and only has one line 12,135,15.0,5.0,normal

Could you let me know how to solve this problem?

Really appreciate!

Xiang

lhatsk commented 11 months ago

Thanks for reporting this! Should be fixed now.

chenx469 commented 11 months ago

Thank you very much. It works now.

varvara-123 commented 11 months ago

I am falling into a different issue now. I am running preprocessing_distributions.py on a test file containing two lines: 12,135,15.0,5.0,normal 13,136,14.0,5.0,normal

I am seeing the following error after running the script:

$ python preprocessing_distributions.py --infile restraints.csv Traceback (most recent call last): File "/../preprocessing_distributions.py", line 54, in if line["type"] == "normal": ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Could you please help me with this problem?

Thank you, Varvara

lhatsk commented 11 months ago

Sorry! Also fixed now...