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

AtomTyper bug #31

Closed
ungsik opened this issue Sep 26, 2019 · 5 comments
Closed

AtomTyper bug #31

ungsik opened this issue Sep 26, 2019 · 5 comments

Comments

@ungsik
Copy link

ungsik commented Sep 26, 2019

During the processing of 1a42_1 of scPDB, I got following error.
File ".../site-packages/moleculekit/tools/atomtyper.py", line 56, in getPDBQTAtomType
bond = np.where(mol.bonds == aidx)[0][0]
IndexError: index 0 is out of bounds for axis 0 with size 0
I checked the case and one HG atom is present in the protein.
The getPDBQTAtomType code is not handling the HG atom case properly.
There are more than 50 proteins containg HG atom in the scPDB.

@stefdoerr
Copy link
Contributor

Hi @ungsik, which version of moleculekit are you using? I believe I fixed all issues with these atoms in the last version.
To check the version run conda list moleculekit in your conda environment

@ungsik
Copy link
Author

ungsik commented Sep 26, 2019 via email

@stefdoerr
Copy link
Contributor

Hm yes indeed. Ok I will have to take a look at it tomorrow. I will try to run the whole scPDB this time. I was having some issues with disk space last week and could not test it thoroughly. Sorry for this.

@ungsik
Copy link
Author

ungsik commented Sep 26, 2019 via email

@stefdoerr
Copy link
Contributor

Okay, with the last commit in github the issue you mentioned is fixed.
The molecules you mentioned above have multiple cofactors bound to the protein which need to be removed.
But there is also another issue with some terminal residues not recognized correctly as part of the protein due to missing bonds and bad topology. I will open a new issue on that. For now you could remove the terminal residues which are not recognized as protein if they are not close to the binding site but it might be a bad idea.

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

2 participants