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

TIP4P #888

Open
n-salvi opened this issue Jun 18, 2019 · 9 comments
Open

TIP4P #888

n-salvi opened this issue Jun 18, 2019 · 9 comments

Comments

@n-salvi
Copy link

n-salvi commented Jun 18, 2019

This is somewhat related to an old closed issue #590

What is the most convenient way of building a system with a 4P water model, for example for the sake of running simulations in acemd? I tried plenty of options in the past including starting with both charmm and amber force field, with no luck. Eventually I ended up running my simulations in gromacs, but with the new ACEMD3 is would be interesting to try again.

Is there any way of perhaps using Parmed to migrate input files from gromacs to acemd?

@j3mdamas
Copy link
Contributor

Hi @n-salvi,

I recently made a PR that solved that issue: #594

That PR included changes that override Amber default paths. Check the new amber.build argument teleapimports: https://github.com/Acellera/htmd/blob/master/htmd/builder/amber.py#L220

If it does not work, can you share with us a system so we can try it out?

João

@n-salvi
Copy link
Author

n-salvi commented Jun 19, 2019

Hi @j3mdamas,

Thanks, the link you provided seems to be what I am looking for on the amber file.
Is there anything similar for the CHARMM builder?

Many thanks,

Nicola

@j3mdamas
Copy link
Contributor

No, for charmm.build we do not have it.

@stefdoerr
Copy link
Contributor

Hi @n-salvi did you manage to build the TIP4P system? If so we could close this issue.

@n-salvi
Copy link
Author

n-salvi commented Aug 3, 2019

I gave it a try but did not work straight out of the box for me. Sorry I didn't have time to try to understand the issue in details but I intend to do so when I come back from holidays. Of course, if you have a working example to share it would be a tremendous help.

@n-salvi
Copy link
Author

n-salvi commented Aug 5, 2019 via email

@stefdoerr
Copy link
Contributor

I gave it a try with CHARMM and managed to build and run the system but it doesn't really work yet due to psfgen not supporting LONEPAIR statements yet.

Once they are supported, this should work:

First of all we don't include the TIP4P parameters in HTMD. You need to download them from the CHARMM parameter zip and then modify the stream file a bit to only contain a single parameter section.

toppar_water_ions_tip4p.str.tar.gz

Then you need to remove the TIP3P from the default parameters of building by explicitly passing the other default parameter files as below.

Lastly you need to disable the angle and dihedral regeneration of psfgen which I added in this PR because it creates angles between the lone pair "atom" and the other real water atoms and the simulation will complain that there are no parameters for that angle.

from htmd.ui import *
from htmd.protocols.equilibration_v2 import Equilibration

mol = Molecule('3ptb')
mol.filter('protein')
smol = solvate(mol)
smol.resname[smol.resname == 'TIP3'] = 'TIP4'
bmol = charmm.build(smol, ionize=True, outdir='/tmp/test/', stream=['./toppar_water_ions_tip4p.str'], param=['par/par_all36_prot.prm', 'par/par_all36_lipid.prm', 'par/par_all36_cgenff.prm'], regenerate=None)

eq = Equilibration(_version=3)
eq.write('/tmp/test/', '/tmp/test_run/')

This builds and runs fine at the moment but is probably very wrong since the LONEPAIR statements are ignored. Once there is a new psfgen release we will update this issue.

@stefdoerr
Copy link
Contributor

there seems to be lots of active development currently on psfgen:
https://www.ks.uiuc.edu/Research/vmd/vmd-new/devel.html

I think with version 2.0 of psfgen in VMD 1.9.4 we should be able to do it.

@n-salvi
Copy link
Author

n-salvi commented Aug 19, 2019

Thank you @stefdoerr, this is very helpful. I think we need to wait for psfgen 2.0 then...

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

No branches or pull requests

3 participants