Repository navigation
Fix Gasteiger-Marsili parameters for sp2 carbon in partial_charges() - #1107
Merged
padix-key merged 1 commit intoNov 28, 2026
Merged
Conversation
padix-key
force-pushed
the
fix/charges-sp2-carbon-params
branch
from
November 26, 2026 14:53
d3271b1 to
b2052b9
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
partial_charges()used the parametersa=8.79, b=9.18, c=1.88for sp2 carbon, wherebandcwere duplicated from the sp3 row. The correct Gasteiger-Marsili parameters area=8.79, b=9.32, c=1.51.As the original article is paywalled, I checked the values against two independent implementations: the parameter table in RDKit's
Code/GraphMol/PartialCharges/GasteigerParams.cpplistsC sp2 8.79 9.32 1.51, andGasteigerSigmaChi()in Open Babel'ssrc/molchrg.cppuses the electronegativities 0.98, 8.79 and 19.62 for the anion, neutral atom and cation of sp2 carbon, which is equivalent tob=9.32andc=1.51. The sp3 and sp carbon rows are consistent with both sources.The charges of molecules with sp2 carbon atoms change slightly (e.g. third to fourth decimal place for acetone and benzene); the existing tests, including the comparison with the reference values from the article, pass unchanged. Only the partial charges in the docstring example of
PDBQTFilehad to be updated, as seven of them changed in the last decimal place.Closes #1065
Authored by Claude