Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amber19SB and cmaps #1228

Closed
Valdes-Tresanco-MS opened this issue Feb 15, 2022 · 4 comments · Fixed by #1233
Closed

Amber19SB and cmaps #1228

Valdes-Tresanco-MS opened this issue Feb 15, 2022 · 4 comments · Fixed by #1233

Comments

@Valdes-Tresanco-MS
Copy link
Contributor

Valdes-Tresanco-MS commented Feb 15, 2022

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.

@swails
Copy link
Contributor

swails commented Feb 17, 2022

Is this just in the v3.4 branch, or also master?

@Valdes-Tresanco-MS
Copy link
Contributor Author

In both, although the one I have tested is the v3.4 branch

v3.4

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')

master
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')

@swails
Copy link
Contributor

swails commented Feb 18, 2022

Thanks for the report. Fixed by #1233

@swails
Copy link
Contributor

swails commented Feb 18, 2022

Fixed by #1234 for the v3.4 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants