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

add swig exception for pdbqt_parse_error #139

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

shazj99
Copy link

@shazj99 shazj99 commented Oct 17, 2022

While doing large scale virtual screening using vina, the python process may corrupt due to invalid atoms in some of ligand pdbqt files. The error shows as bellow:

PDBQT parsing error: Atom type B is not a valid AutoDock type (atom types are case-sensitive).
 > ATOM      1  B   UNL     1       0.126  -0.559   0.434  1.00  0.00     0.400 B

The reason of corruption is the calling of exit() in underlying C++ codes like parse_ligand_pdbqt_from_file() or parse_ligand_pdbqt_from_string(). So we add a swig exception to throw it out instead of exit directly.

The test code is attached here: parse_test.tar.gz

@diogomart
Copy link
Member

Thank you @shazj99 for this.

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

Successfully merging this pull request may close these issues.

2 participants