-
Notifications
You must be signed in to change notification settings - Fork 24
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
All atom force field file generation #356
Comments
Hi @saabirpetker, It should be easy enough to generate the ff-input files so you can use polyply. I've three questions before:
|
Hi @fgrunewald I've only just seen this now despite living on this repo for 2 weeks - not sure how I missed it! I've been up to solving my above problem, at least rudimentarily, to understand how I can use polyply. The tutorials were great, thanks. Your help would be much appreciated!
I'll share what I've got... It's quite basic and pretty much all manually done.
These are not the same, but they are not far off and I will be looking into using OPLS parameters in the future anyway, so going through that workflow would be helpful nonetheless, if that would be easier for you.
I'm just looking at random copolymers. Thanks for your help, |
@saabirpetker no worries about the delayed response. You're lucky because from tomorrow onwards I'll take a longer vacation. I've had a look at your input files and they look pretty good. So I think you are simply missing two ingredients to deal with the dihedrals / pairs spanning more than two residues and the head-to-tail vs head-head linkage issue. Here we go:
Next, you need to use gen_params with a .json sequence graph where the edges are annotated with HH or HT. This tutorial talks a bit about how to do that. To generate I wrote a little script that assigns the different linkages. I used the networkx library. The most important functions are the json export and how to set edge attributes. You need to do this a bit manually because certain connections are not allowed. For example, you cannot have two heads connecting to the same tail at the same residue. However, you need to double-check if that this script actually does what you need.
You can call the code like so:
It will generate a residue graph with random choices of BTN and ACN and random linkage, but take into account that a head-head cannot follow another head-head. Essentially the idea is to end up with a .json input file that looks like so:
You can now generate the polymer using the following command:
Enjoy! Please note that I will be back only in March and have limited access to the internet. In the meantime, @ricalessandri might help you out as well. |
Thanks @fgrunewald, I'll give it a go. Have a good holiday! |
@saabirpetker did you have any success? |
@fgrunewald Thank you, yes I have. I could not quite get the ++ notation to work for me - so just wrote a Python script to do the trick, but it is a bit hacky. I should hopefully get back to you on that after my department review this July, when I may be thinking about building new structures... I was away for quite some time, so I am still validating the NBR structures I have generated - essentially looking for changes in glass transition with changes in ACN residue wt%. This seems to be going well so far! |
Hi, I was hoping to get some help as to why polyply cannot generate structures to target densities, or even densities greater than of order 1 kgm-3, for the attached forcefields. I'm not sure what I am doing wrong here. An example .top, .json, .itp is also attached. |
Something seems wrong with the itp or force field files. The boxsize seems too small for the density requested. However, I don't have a lot of time to look into it right now. @ricalessandri perhaps you can have a look. |
Just to follow up, I tried a few things differently, but still get the same volume issues. There is attached a gro of the very low density structure that can be generated too. |
@saabirpetker let me take a look. |
@saabirpetker The problem is that you're giving the density in g/cm3 (
while polyply needs it in kg/m3, that is, you need Take a look at:
which gives:
Please try it out and let us know. |
@ricalessandri The example above is just to show that polyply can generate a low density structure. We are both on the same page that this is not a valid structure. When I try to generate at any higher a density, the structure is not generated, with the output remaining on "INFO - step - generating system coordinates". Even for 10 kgm-3 this step remains at 75%. Any higher and it's 0% for the 10 minutes I leave this running. |
@ricalessandri Thanks for taking a look! |
Hi, just following up to see if there are any more suggestions based on polyply getting stuck on >1kgm-3 target densities for the previous forcefield files uploaded |
Yes, @saabirpetker. Good news there is a mistake in your topology file. I think you switched the sigma epsilon columns. This mistake leads polyply to believe your atoms are 3nm in size and therefore the size of the particle in the random-walk is estimated to be about 3nm, which is non-sense of course. Below is the more correct file. I did not check if the epsilon or sigma parameters make sense though.
|
I see, thank you. The issue was I had the sigma column in angstroms and not nm. So it was the right way round but the wrong scale! Now I can generate structures extremely quickly. I plan on expanding my work to other OPLS-based parameters in the next few weeks, so will let you know of any other issues, but if you have any quick tips please let me know. Thanks again. |
Hello,
Thank you for your great software and helpful issue responses. I am having trouble generating a valid .ff file for an all-atom model of nitrile butadiene, acrylonitrile-butadiene copolymer. I would like to use parameters from https://doi.org/10.1021/acs.jpcb.6b09690 to build my copolymer systems. These parameters are in an OPLS style. Please could you assist?
Many thanks.
The text was updated successfully, but these errors were encountered: