-
Notifications
You must be signed in to change notification settings - Fork 116
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
ACE ignored when calling addMissingHydrogens #319
Comments
You're completely right. We only want it to use user-supplied templates there, not ones from the templates directory. That's what |
The fix is in #320, if you want to test it out. |
Just tested #320 on the system that I was having the issue with and now it seems to be fixed - Hs are added to the ACE. Thanks! |
Thanks! |
I was using this tool to add an ACE cap to my protein and then add missing hydrogens. I noticed that hydrogens were added to all residues except for the ACE. Looking at the code I believe I can see why this happens: when getting the variants for ACE, in the call to
_describeVariant
, there is the following logicThis branch is taken because
ACE
is not in_standardResidues
. But the template is just the default one loaded from thetemplates
directory, which doesn't have any hydrogens. As a result, the value returned from_describeVariant
is an empty list, instead ofNone
. Consequently, since theModeller
has the following branch:no hydrogens will be added.
My questions are:
The text was updated successfully, but these errors were encountered: