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.
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.
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,
AmberToolsassigns different atom types for carbon in aromatic (ca) and carboxylic (co) groups. However, @tramp037 's proposed merge with MuPT currently depends on usingOpenFF Interchangeto generate initial gro and top files from SMILES strings, where_merge_atom_typesutility 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 forca-caandco-cobonds. It later creates incorrect unifiedff_bonded.itpfile (in a PolymerezeIt! utility) which relies on mapping atom indices to atom types to create[bondtypes]section. Thus, it creates two entries forC1-C1with differentk0andx0values as both ca and co are assigned C1 atom type.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.