How to get the Martini CG of an AA polymer? #579
-
I am trying to CG a molecule of polystyrene (styrene with a degree of polymerization: 20) while I have the input .gro file, the top file, and I am able to generate the AA ff file, the mapping file, and the CG ff file. I have added this polymer as a new reidue in my local martini folder. The number and type of atoms match everywhere (322) atoms for AA and 80 beads for CG. Vermouth-martinize2 runs without any error. However, it does not give me any results even after multiple hours. Is this an internal issue, or am I doing something wrong? This is where it gets frozen:
And the command I am using to get here is: |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 7 replies
-
That's indeed not really desired behaviour, for a polymer this small martinize2 shouldn't take much more than a few seconds.. There are a few steps in the pipeline whose runtime scales exponentially with the size of the residue.
|
Beta Was this translation helpful? Give feedback.
-
Hey @pckroon, I want to clarify the fact that I am CGing my polymer (322 atoms: 20-polystyrene) as a single residue, is that a reason why it is scaling exponentially? What do you suggest I do in that case, martinize monomers and then connect them manually? Right now, I have the ITP for 322 atoms and the GRO for the same 322 atoms, all representing 20 polystyrene in the form of a single residue. Should I relabel the styrene monomers in these GROs and ITPs to represent the building blocks of styrene that have been used? The issue with this question is that the polymer's head and tail atoms have satisfied valency by a hydrogen atom, which is removed for polymerization. The monomer unit has 16 atoms. The polymer unit is represented by 16x20 = 320 atoms in total, but to satisfy the valency of the end atoms, we add two hydrogens, bringing up the total number to 322. Here is a plot showing how the degree of polymerization currently scales. Beyond ~112 atoms, the martinize2 time becomes infinity. I also used the -v command as you recommended, and that had this output, and no progress from thereon:
|
Beta Was this translation helpful? Give feedback.
-
@pckroon, say I want 19 links for the 20 monomers. I am beading styrene into 4 CG beads. and the CG4 of every monomer needs to be connected to another monomer's CG4, and so on. S stands for styrene and 20 stands for 20 monomers. Should the [ links ] part of my CF-ff file look like this:
I am really confused and I need some clarification here. Yes, I read the documentation you shared earlier. |
Beta Was this translation helpful? Give feedback.
-
How did you generate your gro file? Either that is mildly misformatted (note the inconsistent outlining of the lines below), or there is something wrong with our gro parser :)
Martinize2 does tell you what's going wrong: At-a-glance your ff file looks sane. You'll still need a mapping (.map or .mapping) file as well, but martinize2 will complain when we get there. |
Beta Was this translation helpful? Give feedback.
-
I do have a mapping file, and to note again upto 9PS there is no issue and the martinized structure for 9-polystyrene is generating correctly. About 10S and onwards I have tried moving the 10S column one space to the left as wel as tried introducing a space between 9S and the others above, however the gro parser fails both the times. Yes, I have converted into a pdb and passed it through martinize2, it didn't work out! @pckroon |
Beta Was this translation helpful? Give feedback.
-
From the gromacs documentation on the .gro file format:
Since your gro file is misformatted I'm not surprised converting it to pdb doesn't help: the conversion will propagate the same problem. |
Beta Was this translation helpful? Give feedback.
-
@pckroon Got it, that was the error as you mentioned, it worked! |
Beta Was this translation helpful? Give feedback.
-
@pckroon How do I extend the CG version of PS20 onto a box containing 100 polymer chains in GROMACS? Keeping the intra-chain connections intact. |
Beta Was this translation helpful? Give feedback.
-
@pckroon Are there any GROMACS commands like insert-molecule that can help? |
Beta Was this translation helpful? Give feedback.
From the gromacs documentation on the .gro file format:
Since your gro file is misformatted I'm not surprised converting it to pdb doesn't help: the conversion will propagate the same problem.