Skip to content

Discrepancy in atom types assigned by OpenFF and AmberTools #46

@sbkashif

Description

@sbkashif

Overview

There is an issue that is blocking PR #36 merge , and a workaround is currently under progress at https://github.com/sbkashif/polymerizeit/issues/29

Issue details

For a typical polymerization reaction to work with existing PolymerizeIt infrastructure, atom types must be assigned in a certain way to be able to make similar atoms with similar tags. More specifically, there should be enough distinction between dissimilar atoms. For example, in a trimesoyl chloride (TMC) molecule, AmberTools assigns different atom types for carbon in aromatic (ca) and carboxylic (co) groups. However, @tramp037 's proposed merge with MuPT currently depends on using OpenFF Interchange to generate initial gro and top files from SMILES strings, where _merge_atom_types utility assigns the same atom type (C1) to both the said carbons because they have same non-bonded parameters (consistent with OpenFF philosophy). While assigned same atom types, bonded parameters are still different for ca-ca and co-co bonds. It later creates incorrect unified ff_bonded.itp file (in a PolymerezeIt! utility) which relies on mapping atom indices to atom types to create [bondtypes] section. Thus, it creates two entries for C1-C1 with different k0 and x0 values as both ca and co are assigned C1 atom type.

Image

Possible solution

We are woking on a solution to allow invoking AmberTools for GAFF parameterization. Currently, the workflow from MuPT representation to PolymerizeIt-Ready files has OpenFF the sole option for parameterizing initial monomers and repeat units. Please follow the issue thread in PolymerizeIt repo for details. We will mark the PR #36 ready for review once this issue is sorted.

Metadata

Metadata

Labels

MuPT 2.0target for MuPT 2.0bugSomething isn't workingreactionsFunctionality for preparing templates for reactive MD simulations

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions