Skip to content

DatasetBuilder() fails to correctly read in Urey-Bradley bonds from CHARMM generated topology #50

@arnosschnizler

Description

@arnosschnizler

Hi, I am trying to create a grappa training dataset using the DatasetBuilder() using orca calculations and custom topology files generated from charmm. The custom topology files parameterise bonds according to Urey-Bradley, i.e. the forcefield.itp file reads:

Image

For reference: "normal" topology file:
Image

Using the DatasetBuilder(), I try to add the nonbonded parameters calling:

add_nonbonded_from_gmx_top(mol_id=mol_id, top_file=mol_topol)

Resulting in the error: Image

This error arises in from_openmm_system due to the UB-angles parameterised in the .itp files being interpreted as additional harmonic bonds when generating the OpenMM System object leading to a topology mismatch. A similar problem has been documented before.

How to best deal with it? Is this something that could be addressed in the DatasetBuilder()? Thank you for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions