Skip to content

Amber19SB and cmaps #1228

Description

@Valdes-Tresanco-MS

It needs to also remove the cmaps check here to handle Amber19SB topologies

if (struct.urey_bradleys or struct.impropers or struct.cmaps or
struct.trigonal_angles or struct.pi_torsions or
struct.out_of_plane_bends or struct.stretch_bends or
struct.torsion_torsions or struct.multipole_frames):
if (struct.trigonal_angles or struct.pi_torsions or
struct.out_of_plane_bends or struct.torsion_torsions or
struct.multipole_frames or struct.stretch_bends):
raise TypeError('AmberParm does not support all of the '
'parameters defined in the input Structure')
# Maybe it just has CHARMM parameters?
raise TypeError('AmberParm does not support all of the parameters '
'defined in the input Structure. Try ChamberParm')

Test code

# Read a GROMACS topology file with Amber19SB ff
com_top = parmed.load_file('topol.top') 
com_amb_prm = parmed.amber.AmberParm.from_structure(com_top)
com_amb_prm

Happy to open a PR

Mario S.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions