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

Reading local PDB file failed, got file from PDB database. No bug info printed and it stayed 0% instead of 100%. #421

Open
DUAN-GAO opened this issue Mar 13, 2025 · 3 comments

Comments

@DUAN-GAO
Copy link

DUAN-GAO commented Mar 13, 2025

Describe the bug
Reading local PDB file failed, got file from PDB database. No bug info printed and it stayed 0% instead of 100%.
To Reproduce
Output:
Reading PDB file... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--

That's all I got from running the below code:

file = "mmdb_8FYW.pdb"

from graphein.protein.config import ProteinGraphConfig
from graphein.protein.graphs import construct_graph

config = ProteinGraphConfig(

)
G = construct_graph(path=file, config=config)
print(G)

Expected behavior
The reading finished and a graph printed.
Screenshots
Image

  • OS: [Win 10]
  • Python Version 3.9.21
  • Graphein Version [1.7.7] & pip installed

Additional context
Could u help, many thanks.

@a-r-j
Copy link
Owner

a-r-j commented Mar 13, 2025

Hi @DUAN-GAO could you kindly share the PDB file so I can reproduce the error?

@DUAN-GAO
Copy link
Author

@prabhsuratsingh
Copy link

When i try to read a pdb file, i also get the same error
Reading PDB file... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:--make: *** [Makefile:7: run] Error -1073740791

From what i found out this is Error code: STATUS_STACK_BUFFER_OVERRUN, i could be wrong.
I verified the pdb file from BioPython's pdb parser, and it was valid. Even RCSB 3D viewer is rendering the protein.
This wasnt happening a year ago when i last used graphein. Could this be happening because i re-installed C++ Build Tools?

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