You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Optimize Geometry function sometimes fails, with the optimizing routine apparently arbitrarily adding its own H atoms contradicting the given structure. Optimize Geometry appears to run for a reasonable number of iterations, but then gives the error message:
"Number of atoms in obabel output (22) does not match the number of atoms in the original molecule (19)."
(This example of 19 atoms refers to histidine with the carboxylate group protonated and prime amine group unprotonated i.e. ...NH with 1 H atom, no charge. That is, neutral histidine)
The problem seems to happen for pH-dependent molecules such as amino acids, where carboxylate and amine groups may or may not be protonated.
If I manually click on "Adjust Hydrogens", then avogadro2 adds 3 protons, 1 to the amine group and 1 each to the C and double-bonded O of the carboxylate. So it's converting the carboxylic acid group to a methandiol group. By the count of atoms in the error message, it looks like this is what Optimize Geometry is doing to the structure before running optimization.
So it looks as though Optimize Geometry is interfering with the given structure and not working with the structure as presented.
To Reproduce
Steps to reproduce the behavior:
Create an amino acid. Glycine will do. If "Adjust Hydrogens" is set. then avogadro2 will create the amine group as ...NH2 (glycine cation).
Delete one of the amine hydrogens to get neutral glycine H2CNHCOOH
Click Extensions->Open Babel->Optimize Geometry.
Iterations will proceed, then give the error message
"Number of atoms in obabel output (10) does not match the number of atoms in the original molecule (9)."
Expected behavior
Optimize Geometry should work strictly with the given structure, and not add (or remove) hydrogen atoms.
The text was updated successfully, but these errors were encountered:
Ensures hydrogens are not added automatically.
FixesOpenChemistry#442 (and probably other issues)
Signed-off-by: Geoff Hutchison <geoff.hutchison@gmail.com>
Avogadro version: 1.93.0:
Desktop version: :
Describe the bug
The Optimize Geometry function sometimes fails, with the optimizing routine apparently arbitrarily adding its own H atoms contradicting the given structure. Optimize Geometry appears to run for a reasonable number of iterations, but then gives the error message:
"Number of atoms in obabel output (22) does not match the number of atoms in the original molecule (19)."
(This example of 19 atoms refers to histidine with the carboxylate group protonated and prime amine group unprotonated i.e. ...NH with 1 H atom, no charge. That is, neutral histidine)
The problem seems to happen for pH-dependent molecules such as amino acids, where carboxylate and amine groups may or may not be protonated.
If I manually click on "Adjust Hydrogens", then avogadro2 adds 3 protons, 1 to the amine group and 1 each to the C and double-bonded O of the carboxylate. So it's converting the carboxylic acid group to a methandiol group. By the count of atoms in the error message, it looks like this is what Optimize Geometry is doing to the structure before running optimization.
So it looks as though Optimize Geometry is interfering with the given structure and not working with the structure as presented.
To Reproduce
Steps to reproduce the behavior:
"Number of atoms in obabel output (10) does not match the number of atoms in the original molecule (9)."
Expected behavior
Optimize Geometry should work strictly with the given structure, and not add (or remove) hydrogen atoms.
The text was updated successfully, but these errors were encountered: