Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueError: Minimization failed after 100 attempts. #923

Open
rytakahashi opened this issue Apr 4, 2024 · 3 comments
Open

ValueError: Minimization failed after 100 attempts. #923

rytakahashi opened this issue Apr 4, 2024 · 3 comments

Comments

@rytakahashi
Copy link

rytakahashi commented Apr 4, 2024

...
I0404 21:01:29.229502 140648689870656 amber_minimize.py:69] Restraining 478 / 979 particles.
I0404 21:01:29.413306 140648689870656 amber_minimize.py:418] Unit "kilocalorie/mole" is not compatible with Unit "kilojoule/(nanometer*mole)".
I0404 21:01:29.493218 140648689870656 amber_minimize.py:408] Minimizing protein, attempt 100 of 100.
I0404 21:01:29.597103 140648689870656 amber_minimize.py:69] Restraining 478 / 979 particles.
I0404 21:01:29.781777 140648689870656 amber_minimize.py:418] Unit "kilocalorie/mole" is not compatible with Unit "kilojoule/(nanometer*mole)".
Traceback (most recent call last):
  File "/home/af2/alphafold_2.3.2/run_alphafold.py", line 570, in <module>
    app.run(main)
  File "/home/af2/miniconda3/envs/af_2.3.2/lib/python3.8/site-packages/absl/app.py", line 312, in run
    _run_main(main, args)
  File "/home/af2/miniconda3/envs/af_2.3.2/lib/python3.8/site-packages/absl/app.py", line 258, in _run_main
    sys.exit(main(argv))
  File "/home/af2/alphafold_2.3.2/run_alphafold.py", line 543, in main
    predict_structure(
  File "/home/af2/alphafold_2.3.2/run_alphafold.py", line 361, in predict_structure
    relaxed_pdb_str, _, violations = amber_relaxer.process(
  File "/home/af2/alphafold_2.3.2/alphafold/relax/relax.py", line 62, in process
    out = amber_minimize.run_pipeline(
  File "/home/af2/alphafold_2.3.2/alphafold/relax/amber_minimize.py", line 476, in run_pipeline
    ret = _run_one_iteration(
  File "/home/af2/alphafold_2.3.2/alphafold/relax/amber_minimize.py", line 420, in _run_one_iteration
    raise ValueError(f"Minimization failed after {max_attempts} attempts.")
ValueError: Minimization failed after 100 attempts.

what could be a solution for this in alphafold 2.3.2 ?
Thanks

@jumpintwo
Copy link

I have the same issue. My feeling of the problem is openmm version. I have openmm 8.1.0 in my conda environment and the newest requirement of alphafold is 7.7.0. I tried to downgrade my openmm in conda but, for some reason, my conda would not let me downgrade. So I have not test this.

@dingquanyu
Copy link

Hi all,

I encountered the same problem. complaining about the unit. I'm using openmm 8.1.1 and downgrading to 7.7.0 will crash the pdbfixer imports

@uniquelemon
Copy link

Hi all,

I encountered the same problem. complaining about the unit. I'm using openmm 8.1.1 and downgrading to 7.7.0 will crash the pdbfixer imports

Check the version of pdbfixer. Different versions of openmm require different versions of pdbfixer.

It is indeed the openmm version that causes this problem. The openmm8.1.1 installed had the same error, but reinstalling openmm8.0.0 can run normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants