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

Saving AMBER prmtop files (or convert Gromacs top to AMBER formats) #63

Open
mmagithub opened this issue Mar 17, 2023 · 9 comments
Open

Comments

@mmagithub
Copy link

mmagithub commented Mar 17, 2023

Hi,

I am wondering if there is a straightforward way to save amber compatible prmtop files, as attempting to convert the gromacs generated top/itp files is not straightforward due to the Urey-Bradley terms I am speculating, parmed cannot handle this conversion easily,

Thanks,
Marawan

@mmagithub mmagithub changed the title Using am1-bcc charges from antechmaber Saving AMBER prmtop files (or convert Gromacs top to AMBER formats) Mar 22, 2023
@mmagithub
Copy link
Author

I keep getting this error when converting the qforce files to amber prmtop with parmed:

raise TypeError('ChamberParm does not support all potential terms '
TypeError: ChamberParm does not support all potential terms defined in the input Structure

or intermol:

parmed.exceptions.GromacsWarning: 9 1-4 pairs were missing from the [ pairs ] section and were set to zero; make sure you
know what you're doing!
INFO 2023-03-21 14:48:38 Finished!

Any clue ?

@selimsami
Copy link
Owner

Hi Marawan,

There is a PR (#62) to write amber files but the authors have not yet addressed my final concerns so it's kinda stuck there.

One option could be to have a look there and finalize that.

Alternatively, keep in mind that UB terms is simply writing a harmonic bond and a harmonic angle together:

[ angles ]
; ai aj ak f theta0 k_theta r0 k_bond
1 2 3 5 120.000 290.220 0.21704 11255.9

can simply be written as:

[bonds]
; ai aj f r0 k_bond
1 3 1 0.21704 11255.9

[ angles ]
; ai aj ak f theta0 k_theta
1 2 3 1 120.000 290.220

then your conversion tools should probably work.

@selimsami
Copy link
Owner

Regarding your second comment,
I am not exactly sure what that means - What kind of output does it produce and what exactly does it set to zero?
Q-Force does write out [ pairs ] section and its parameters are read from [ nonbond_params ] section.
Could you try to copy the contents of [ nonbond_params ] to a new section called [ pairtypes ] .
If [pairtypes] is empty GROMACS reads this from [ nonbond_params ] , but maybe your conversion tool does not figure that out.

@mmagithub
Copy link
Author

Thanks Selim,
Just wondering if you have ever tried to do the conversion before, it may be straightforward to do using the right tool,

I have asked this question on parmed and intermol repositories and it does not seem that there is a straightforward solution,

Parmed:
ParmEd/ParmEd#1298 (comment)

Intermol:
shirtsgroup/InterMol#393 (comment)

And I am not a big fan of manually editing parameter files, you can easily mess up things and never know that there is a fundamental issue with the parameters.

I tried copying the sections as you said, it did not help, I am still getting the same error messages.

What tool do you use to write the qforce itp & top file, is it a tool you developed internally or you are using standard tools from gromacs or parmed ?

@mmagithub
Copy link
Author

According to the parmed/intermol threads, it seems the topology files written by qforce are missing some parameters, namely the 1-4 interactions terms, would you please confirm that it is what is happening or if there is a better explanation for this behavior.

@selimsami
Copy link
Owner

selimsami commented Sep 6, 2023

I'm afraid the AMBER file writing seems to be suck, there was some incompatibility between the functional forms I think. It should definitely be fixable but I never user AMBER, so I have no motivation or knowledge to take care of this. I might soon implement an OpenMM format though.

I am not sure if something useful came of the discussions in intermol/parmed githubs? What is it that you are currently stuck with regarding the conversion?

If it's just the RB dihedral type, I could make to option to write the dihedrals in Fourier format if this will allow for a successful conversion?

@mmagithub
Copy link
Author

Thanks Selim, OpenMM format is also good. I will see how can I make the most use of Gromacs formatted files in my applications.

@mmahmedgithub
Copy link

8wrfqf

@selimsami
Copy link
Owner

Hi Marawan,

I am sorry that I never got back to this. Love the meme though! :D

Amber compatible files formats, as I mentioned in my previous message, are pretty much stuck since there's no one in the development team that is using amber. Feel free however to take the existing PR (#62) and fix the discrepancies if you have the time/desire.

Both OpenMM file format and the single point at higher level of theory pretty much done though. However, we're coupling all these to the Q-Force 2.0 release, which is what is taking the extra time. Aiming to push these to the main branch by the end of August, hopefully sooner.

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

No branches or pull requests

3 participants