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

Can't backmap with test data #2

Open
qasmokez opened this issue Jul 11, 2024 · 0 comments
Open

Can't backmap with test data #2

qasmokez opened this issue Jul 11, 2024 · 0 comments

Comments

@qasmokez
Copy link

Hi,

Thank you for sharing this work!
I am trying to run the code on the provided test data as shared in the README.

When I "backmap the PDB test data using the PDB-trained model" with this command:
python run_eval.py --training_set PDB --data_type aa --pdb_dir ../data/PDB_test_pdbs/
It finishes all the steps successfully but errors when converting to mdtraj:

Traceback (most recent call last):
  File "/DiAMoNDBack/scripts/run_eval.py", line 260, in <module> 
    iterative_inference(data, training_set, cond_type, n_cond_res, model_name, pdb_save_names=pb_save_names, dtime=dtime,
  File "/DiAMoNDBack/scripts/run_eval.py", line 249, in iterative_inference
    crd_to_mdtrj(all_seqs, all_crds_ref, all_crds, end_id_list,
  File "/DiAMoNDBack/scripts/utils.py", line 792, in crd_to_mdtrj
    sb_ref = scn.StructureBuilder(s, crd=c)
  File "/home/md-mi/miniconda3/envs/diffback/lib/python3.10/site-packages/sidechainnet/structure/StructureBuilder.py", line 95, in __init__
    raise ValueError(
ValueError: The length of the coordinate matrix must match the sequence length. You have provided coords. shape[0] = 3080.

Additionally, when I "backmap the DES test set using the DES-finetuned model" with this command:
python run_eval.py --training_set PDB_DES-FT --data_type aa --pdb_dir ../data/all_train_test_pdbs/DES_test
It gives this error:

trained models/train_PDB_DES-FT/32-1-2-4-8-6128-11.0-05-gammal.0--rescale20.0- 1
Milestone = 15
Traceback (most recent call last):
  File "/DiAMoNDBack/scripts/run_eval.py", line 260, in <module>
    iterative_inference(data, training_set, cond_type, n_cond_res, model_name, pdb_save_names=pdb_save_names, dtime=dtime,
  File "/DiAMoNDBack/scripts/run_eval.py", line 181, in iterative_inference
    for i in range (max(n_res_list)):
ValueError: max() arg is an empty sequence

May I ask how to fix this?

Thanks

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

1 participant