Open EliyaGold opened 1 year ago
I think I ran into the same issue with the (very useful!) relax_amber.ipynb colab notebook. Thanks in advance for putting it back in circulation! Here's the error message:
AssertionError Traceback (most recent call last)
8 frames /usr/local/lib/python3.8/dist-packages/numpy/testing/_private/utils.py in assert_array_compare(comparison, x, y, err_msg, verbose, header, precision, equal_nan, equal_inf) 842 verbose=verbose, header=header, 843 names=('x', 'y'), precision=precision) --> 844 raise AssertionError(msg) 845 except ValueError: 846 import traceback
AssertionError: Arrays are not almost equal to 7 decimals
Mismatched elements: 7 / 2916 (0.24%) Max absolute difference: 1. Max relative difference: 0. x: array([1, 1, 1, ..., 0, 0, 0], dtype=int32) y: array([0., 1., 0., ..., 0., 0., 0.])
Thanks for the reports... Still trying to debug why this is happening...
One quick solution is to run with CPU only. For some reason, GPU version is having some issues with recent updates (either from AlphaFold side or Amber side...)
Hello, I don't know if it can be of any help but I get a similar issue when executing ColabFoldLocal on my M1 Mac:
Command: colabfold_batch --amber --templates --num-recycle 3 --use-gpu-relax /Users/xxxxx/Downloads/A1B2C3/A1B2C3.fasta /Users/xxxxx/Downloads/A1B2C3
File "/Users/xxxxx/opt/ColabFold/colabfold_batch/colabfold-conda/lib/python3.8/site-packages/alphafold/relax/amber_minimize.py", line 419, in _run_one_iteration
raise ValueError(f"Minimization failed after {max_attempts} attempts.")
ValueError: Minimization failed after 100 attempts
I'll try with CPU only as suggested. Or without amber :-)
Hmm, running on CPU only didn't seem to solve the issue on my side.
I also have this issue.
You can try to set the relax iterations to unlimited (--relax-max-iterations 0
). This is the AF2 default behavior, but it was resulting in very long relaxation times.
Hi,
We are trying to use the only AMBER relax notebook and encountered an issue. Do you have any ideas why it could have happened?
Thank you!
Expected Behavior
Uploading a PDB file to relax_amber.ipynb and getting the relaxed structure
Current Behavior
After uploading, the minimization fails, with the error in the ColabFold output part.
Steps to Reproduce (for bugs)
we provided the PDB file that was used, just renamed it to .txt instead of .pdb amber1.txt
ColabFold Output (for bugs)
Context
We run AF2 locally but could not install AMBER, so we wanted to run relax_amber.ipynb
Your Environment
Colab