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

I have the problem when "deeprank-gnn-esm-predict 1B6C.pdb " #4

Open
liusfore opened this issue Aug 28, 2023 · 3 comments
Open

I have the problem when "deeprank-gnn-esm-predict 1B6C.pdb " #4

liusfore opened this issue Aug 28, 2023 · 3 comments

Comments

@liusfore
Copy link

2023-08-28 14:39:42,737 predict:218 INFO - Generating graph, using 95 processors
/mnt/data/anaconda/envs/deeprank-gnn-esm-gpu/lib/python3.9/site-packages/pdb2sql/interface.py:147: UserWarning: No contact atoms detected in pdb2sql
warnings.warn('No contact atoms detected in pdb2sql')
Issue encountered while computing graph /tmp/tmpckjcd5ha/1B6C.pkl
list index out of range
Graphs added to the HDF5 file
Traceback (most recent call last):
File "/mnt/data/anaconda/envs/deeprank-gnn-esm-gpu/bin/deeprank-gnn-esm-predict", line 8, in
sys.exit(main())
File "/mnt/data/anaconda/envs/deeprank-gnn-esm-gpu/lib/python3.9/site-packages/deeprank_gnn/predict.py", line 336, in main
graph = create_graph(pdb_path=pdb_file.parent, workspace_path=workspace_path)
File "/mnt/data/anaconda/envs/deeprank-gnn-esm-gpu/lib/python3.9/site-packages/deeprank_gnn/predict.py", line 223, in create_graph
GraphHDF5(
File "/mnt/data/anaconda/envs/deeprank-gnn-esm-gpu/lib/python3.9/site-packages/deeprank_gnn/GraphGenMP.py", line 141, in init
self._add_embedding(outfile=outfile, pdbs=pdbs, embedding_path=embedding_path)
File "/mnt/data/anaconda/envs/deeprank-gnn-esm-gpu/lib/python3.9/site-packages/deeprank_gnn/GraphGenMP.py", line 247, in _add_embedding
assert not torch.all(torch.eq(embedding_tersor, 0))
AssertionError

@ntxxt
Copy link
Collaborator

ntxxt commented Sep 5, 2023

Hi there,

It seems to be a problem with pdb2sql, no contacting atoms were found in the structure and it caused the following error. I can not reproduce this error with 1B6C.pdb. May I ask how you got your pdb file and what the version of your pdb2sql package is?

@jnoske
Copy link

jnoske commented Sep 16, 2023

Hi, I get the same error when I just download 1b6c from pdb and my pdb2sql version is 0.5.3.

@ntxxt
Copy link
Collaborator

ntxxt commented Sep 17, 2023

Hi, Thanks for pointing it out.

I apologize for mixing up the chainIDs in the example. ChainA and chainE are not interacting, which caused the error. I think it should work now.

I also updated the code to support custom input chain IDs. Let me know if there is any issue. @jnoske @liusfore

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