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

AF2 Dependencies for af2_metrics.py #26

Closed
Germanki opened this issue Sep 15, 2022 · 4 comments
Closed

AF2 Dependencies for af2_metrics.py #26

Germanki opened this issue Sep 15, 2022 · 4 comments

Comments

@Germanki
Copy link

Germanki commented Sep 15, 2022

SOLUTION TO THIS PROBLEM IS TO COMMENT OUT LINE 40 of does af2_metrics.py that says "from alphafold.relax import relax"
(also discussed in #7)
Hi RFDesign Team,

Thank you very much for sharing RFDesign and providing the tutorials!

I am trying to run the af2_metrics.py script however the SE3-nvidia.yml file does not contain a number of modules required to run it.
So far I have identified the following needing to be installed: dm-tree, biopython, dm-haiku, absl-py, jaxlib, jax, ml_collections, tensorflow
I got up to PDBfixer and its requirement openmm but unfortunately, openmm wouldn't install because of environment conflicts.

I notice that the same issue has been highlighted in issue #7 and so I have tried to install various different correct versions of the different libraries and I have also gone to the alpha fold git repo to identify their requirements.txt folders. Unfortunately, I am still not having any luck with getting the environment conflicts to solve :(

You mentioned in #7 that you were working on a major update to the repo that would solve this env issue but I notice that the SE3-nvidia.yml file still doesn't contain some of the above.

I was wondering if you might be able to update the yml file to build the right conda environment?
Would I then be able to run the conda env -f create SE3-nvidia.yml again and it would overwrite the previous SE3-nvidia env with the new updated one?

Thank you!

@jueseph
Copy link
Collaborator

jueseph commented Sep 15, 2022 via email

@Germanki
Copy link
Author

Hi Jue,

Thank you so much for your quick reply!

Sorry to hear that it has been challenging to create a fully self-enclosed environment.

Yes, I started on a blank machine, created a new environment using the SE3-nvidia.yml file, then when I ran the af2_metrics command, as each error came back explaining which module was not installed, I installed them one by one using 'conda install'. This was successful up until openmm. ("conda install -c conda-forge openmm" had too many envrionment conflicts)

Thanks for the heads up about openmm. I was trying to install it because pdbfixer was required by af2_metrics.py (specifically when it called: cleanup.py - see attached code below) and installing pdbfixer apparently requires openmm (installation instructions for pdbfixer from their github: https://htmlpreview.github.io/?https://github.com/openmm/pdbfixer/blob/master/Manual.html)

File "/home/ec2-user/RFDesign/scripts/../hallucination/models/alphafold/alphafold/relax/amber_minimize.py", line 25, in <module>
    from alphafold.relax import cleanup
  File "/home/ec2-user/RFDesign/scripts/../hallucination/models/alphafold/alphafold/relax/cleanup.py", line 22, in <module>
    import pdbfixer
  File "/opt/conda/envs/SE3-nvidia/lib/python3.9/site-packages/pdbfixer-1.8.1-py3.9.egg/pdbfixer/__init__.py", line 2, in <module>
    from .pdbfixer import PDBFixer
  File "/opt/conda/envs/SE3-nvidia/lib/python3.9/site-packages/pdbfixer-1.8.1-py3.9.egg/pdbfixer/pdbfixer.py", line 35, in <module>
    import openmm as mm
ModuleNotFoundError: No module named 'openmm'

Though I note that this is indeed calling the amber relax function! Is there any way to stop this from happening when I run the af2_metrics.py command?
I am currently running: ./af2_metrics.py RFDesign/inpainting/mytests/out in the scripts folder

With Many Thanks,
Adam

@jueseph
Copy link
Collaborator

jueseph commented Sep 16, 2022 via email

@Germanki
Copy link
Author

Hi Jue,

Thank you for the suggestions!

Commenting out the line does af2_metrics.py that says "from alphafold.relax import relax" does indeed fix this particular problem!

Thank you!

Though there is now a problem that the alpha fold model parameters are not installed #27

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

2 participants