Closed JSLJ23 closed 4 months ago
Hey @JSLJ23 - I'm not on the Espaloma team but I can provide a couple of breadcrumbs
I am wondering if espaloma is having issues with the Fe2+ atom
Precisely - that's what the error message is trying to communicate out. Espaloma's non-bonded parameters come from Sage, which do not yet have parameters for coordinated metal ions.
Additionally, probably because OpenFF doesn't have Fe2+ to begin with, Espaloma must not have been trained with this N-Fe bond. OpenFF (SMIRNOFF) force fields can be extended (here's an example) but I don't know how to extend Espaloma parameters. In this case you'd need to come up with both non-bonded and bonded parameters. Presumably if the SMIRNOFF force field has bonded parameters and Espaloma doesn't, it just won't override them ... I haven't tested this myself.
I did indulge myself to some code golf to see if I could get this from the OpenFF Toolkit's API:
In [1]: from openff.toolkit import ForceField
In [2]: from openff.units.elements import SYMBOLS
In [3]: from rdkit import Chem
In [4]: {
...: SYMBOLS[Chem.MolFromSmarts(parameter.smirks).GetAtomWithIdx(0).G
...: etAtomicNum()]
...: for parameter in ForceField("openff-2.0.0.offxml")["vdW"].parame
...: ters
...: }
Out[4]:
{'Br',
'C',
'Cl',
'Cs',
'F',
'H',
'I',
'K',
'Li',
'N',
'Na',
'O',
'P',
'Rb',
'S'}
Note that a couple of these elements are just aqueous ions pulled externally so that TIP3P can work in some solutions (don't recall the details).
This is really helpful, thank you. 👍
Dear espaloma devs,
I was trying to use espaloma to parameterise a few slightly more complex systems from PDBbind, specifically for the ligands and one system with a Heme prosthetic group is giving issues.
This raises
UnassignedBondError: BondHandler was not able to find parameters for the following valence terms:
I am wondering if espaloma is having issues with the Fe2+ atom, and if so, may I know if there's a way to go about fixing this temporarily (i.e. like manually assigning the bonded term?). Also, is there documentation to point out which atom elements espaloma supports?