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

Issue with alphafold-complex predication with initial guess of binder position #38

Open
QILINY opened this issue Nov 21, 2022 · 2 comments

Comments

@QILINY
Copy link

QILINY commented Nov 21, 2022

I got the following error messages when running af2_interface_metrics.py

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "../../../../../../scripts/af2_interface_metrics.py", line 600, in <module>
    predict_structure(tag_buffer, feature_dict_dict, binderlen_dict, initial_guess_dict, sfd_out, scorefilename)
  File "../../../../../../scripts/af2_interface_metrics.py", line 429, in predict_structure
    prediction_result = jax.vmap(model_runner.apply, in_axes=(None,None,0,0))(model_runner.params, jax.random.PRNGKey(0), processed_feature_dict, processed_initial_guess_dict)
  File "/HOME/scz3220/.conda/envs/rfdesign/lib/python3.8/site-packages/haiku/_src/transform.py", line 127, in apply_fn
    out, state = f.apply(params, {}, *args, **kwargs)
  File "/HOME/scz3220/.conda/envs/rfdesign/lib/python3.8/site-packages/haiku/_src/transform.py", line 354, in apply_fn
    out = f(*args, **kwargs)
TypeError: _forward_fn() takes 1 positional argument but 2 were given

it seems like the current version of alphafold attached in this directory hallucination/models/alphafold/alphafold/ is not compatible with the scripts af2_interface_metrics.py.

May I ask how to modify alphafold scripts to pass initial guess of binders' position? Thanks for sharing this great work! and best wishes~

@aravinda1879
Copy link

Did you find a solution for this? I am having the same issue and I wonder if you found a solution.

@jueseph
Copy link
Collaborator

jueseph commented Mar 30, 2023

see my reply in #48

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

3 participants