-
Notifications
You must be signed in to change notification settings - Fork 1
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
Fix issue #156: A bug in the preparation.protonate._fix_pybel_output and its potential cause #161
Fix issue #156: A bug in the preparation.protonate._fix_pybel_output and its potential cause #161
Conversation
…pybel, and raise ValueError if improper hydrogen atoms are detected in _fix_pybel_output.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty good overall start! I appreciate the attention to detail and think this is a great contribution to the workflow since there are many problems with pybel. I do think a lot of what you wrote is somewhat redundant since there are other functions that do what you want to do. I mostly noticed PDBParser()
not being used as well as parsing values from a PDB file, which is usually achieved more easily with the PyMOLInterface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address the comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see the comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing all the comments! Approved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work on the PR, Yinjie!
Dear Colleagues,
The issue #156 is now fixed in this pull request.
Major modifications are performed to
enzy_htp/preparation/protonate.py
.The function
protonate_ligand_with_pybel
can now detect the existence of hydrogen atom(s) and raise an info if Hydrogen atom(s) is detected, then remove hydrogen atoms.The function
_fix_pybel_output
can now raise aValueError
if there is any hydrogen atom in the middle, i.e., the hydrogen atom(s) should be absent or at the end of the file.Some updates to
dev-tools/conda-install
script are also performed to enable users to automatically install EnzyHTP solely or as a dependency, while a warning will be prompted if a user is to install it tobase
environment.Best,
Yinjie.