-
Notifications
You must be signed in to change notification settings - Fork 23
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. |
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: