-
Notifications
You must be signed in to change notification settings - Fork 50
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
Parameterization issue for protein receptor + Zn ion with espaloma charges #310
Comments
Hi @itaneja2 |
Hi @itaneja2 I can reproduce the same error on an oxide ion ([O2-]). See details at the end of comment. Therefore, the origin of this issue might not be limited to Zn being an unsupported element (see choderalab/espaloma#206) but also any lone atom. I will look at Meeko's codes, the get_espaloma_graph part, to see if we have a workaround (like direct assignment of formal charge), and if we can implement guards and better error handling for this situation. Thanks again for reporting. espaloma version
inputfrom meeko import MoleculePreparation
from meeko import Monomer
from rdkit import Chem
from rdkit.Chem import AllChem
mk_config = {
"merge_these_atom_types": [],
"load_atom_params": ["openff"],
"charge_model": "espaloma",
"dihedral_model": "openff",
"rigid_macrocycles": True,
}
mk_prep = MoleculePreparation.from_config(mk_config)
oa_smi = "[O-2]"
oa_mol = Chem.MolFromSmiles(oa_smi)
AllChem.EmbedMolecule(oa_mol)
oa_monomer = Monomer(
raw_input_mol=oa_mol,
rdkit_mol=oa_mol,
mapidx_to_raw = {0:0},
)
oa_monomer.padded_mol = oa_mol
oa_monomer.parameterize(mk_prep, ["A:1"]) output
|
Simple workaround if ion charge parameters can be treated independent of ligand:
|
According to choderalab/espaloma#191 For single-atom molecules, we can pass the formal charge directly. For possible diatomic molecules in biological systems (molecular oxygen, CO, ...), we still need a bypass to get charges and bond parameters. Not very sure how to do that at the moment.. For unsupported elements, it seems like espaloma usually raises |
When using Meeko to create a Polymer consisting of a protein receptor and Zn ion, I receive the following error when trying to parameterize the Polymer with espaloma charges:
input file: 5msb_A_receptor_water.json
The text was updated successfully, but these errors were encountered: