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

Make CorrectForPH respect perceived chains. #2678

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fredrikw
Copy link
Contributor

@fredrikw fredrikw commented Mar 5, 2024

This fixes #2677
CorrectForPH currently clears all perceived attributes through mol.EndModify(). In my change, I check if chains are perceived before hand and in that case sets them as perceived also after since normally the residues and chains shouldn't change through pH-correction.
However, this is a breaking change if someone previously relied on the old behavior. In that case they need to manually reperceive the chains after the call to CorrectForPH (or reset the flag before...).

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.

Adding hydrogens with -p messes up the entire structure (not only residue numbers and names)
1 participant