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

The charge is assigned by estimate_amino_acid_charges incorrectly if heteroresidue is bonded to functional group #25

Open
dargen3 opened this issue Dec 9, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@dargen3
Copy link

dargen3 commented Dec 9, 2024

Hello,

I'd like to report a potential bug. If I assign formal charges to the amino acids in protein 1rcm using the function hydride.estimate_amino_acid_charges(..., ph=10), the charges -1 are also assigned to the sulfur atoms to which the acetic acid (ACY) is bonded and the formal charge should be therefore 0.

I looked into https://github.com/biotite-dev/hydride/blob/main/src/hydride/charge.py and if I understand correctly the case where a hetero-residue is bonded to a functional group is not treated.

@dargen3
Copy link
Author

dargen3 commented Dec 9, 2024

Even sulfurs in a disulfide bond have a charge of -1.

@dargen3
Copy link
Author

dargen3 commented Dec 9, 2024

If I'm not mistaken, it might be enough to check if the atoms are not involved in an interresidual bond.

@padix-key
Copy link
Member

Your analysis seems to be totally correct 👍, thanks for reporting. Would you like to create a fix PR for it?

@padix-key padix-key added the bug Something isn't working label Dec 12, 2024
@dargen3
Copy link
Author

dargen3 commented Dec 12, 2024

I can if you want, but not until January. The end of the year is crazy in the academic world. I'll also add the selenocysteine and pyrolysine as i mentioned in issue 19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants