Closed mattiafelice-palermo closed 8 months ago
Hi @mattiafelice-palermo, the behavior you're seeing there is because when you re-run the apply
step, the atomtype map is regenerated and overwrite the modification you're done above. Furthermore, they way you're modifying the mol_ff
object only changed the name of the atomtype, but not the charge or parameters associated with it. I am guess you're rerunning the apply
step to get the updated bond/angle/dihedral type? If that's the case, I think it may be better to modify the opls.xml
(a local version for your project) to update the override/smarts string of opls_158
to overwrite whatever atomtype was assigned there in the first place.
Eventually I moved on doing exactly as you suggested :) Thank you for the help!
Dear Foyer Development Team,
Thank you for developing Foyer, it is a really helpful tool in my work routine!
I have a question regarding a specific use case: I need to manually modify the atomtype of a particular atom in a molecule obtained from Foyer's
apply
method, and then rerunning the parametrization considering this change:However, when I manually modify the atomtype in the generated ParmEd structure and rerun
apply
giving the newly modified structure as input, the original atomtypes are reassigned, ignoring my changes.Is there a way to achieve this in Foyer, or does it fall outside its intended functionality?
Apologies if this seems trivial; I've been trying to find a solution without success.
Kind regards,
Mattia