# Position restraints in Martini model

**URL:** <https://gromacs.bioexcel.eu/t/position-restraints-in-martini-model/543>\
**Category:** User discussions\
**Created:** [July 21, 2020, 5:20am UTC](https://gromacs.bioexcel.eu/t/position-restraints-in-martini-model/543 "2020-07-21T05:20:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![darrenphua](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@darrenphua](https://gromacs.bioexcel.eu/u/darrenphua)\
**Post date:** [July 21, 2020, 5:20am UTC](https://gromacs.bioexcel.eu/t/position-restraints-in-martini-model/543/1 "2020-07-21T05:20:53Z")

</div>

GROMACS version: 2020.3

I have defined position restraints as described in 1UBQ tutorial on Martini webpage and simply copied the steps over to my own protein, an IgG.

But after running energy minimization, the protein structure is destroyed.  
Is there something that ive missed out or should i be adding more restraints?

Picture of the protein here:  
[imgur.com/grjq2Ot](https://imgur.com/grjq2Ot)

Just curious, do typical gromacs restraint options work in the same way for martini models?  
Anything in particular that i should be taking note of or changing to suit a martini model?

Position restraints do not seem to be restraining the backbone properly.

Copied from the protein.itp file:

#ifdef POSRES  
#ifndef POSRES\_FC  
#define POSRES\_FC 1000.00  
#endif  
[position\_restraints]  
1 1 POSRES\_FC POSRES\_FC POSRES\_FC  
3 1 POSRES\_FC POSRES\_FC POSRES\_FC  
5 1 POSRES\_FC POSRES\_FC POSRES\_FC  
… … …

This looks different from the typical position restraints of all-atom models.  
It seems that the force constant can be defined but im not sure what the syntax really means.  
If i used define = -DPOSRES in .mdp file, will it make POSRES\_FC = 1000 or 0 ?

---

<div class="post-metadata">

**Author:** ![kevinboyd](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@kevinboyd](https://gromacs.bioexcel.eu/u/kevinboyd)\
**Post date:** [July 22, 2020, 12:57am UTC](https://gromacs.bioexcel.eu/t/position-restraints-in-martini-model/543/2 "2020-07-22T00:57:54Z")

</div>

Are you sure the protein is being destroyed and not just appearing to cross periodic boundaries? Can’t really tell from that picture.

> [@darrenphua](#):
>
> If i used define = -DPOSRES in .mdp file, will it make POSRES\_FC = 1000 or 0 ?

It should be 1000 if not defined, and you definitely need the -DPOSRES

---

<div class="post-metadata">

**Author:** ![darrenphua](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@darrenphua](https://gromacs.bioexcel.eu/u/darrenphua)\
**Post date:** [July 22, 2020, 1:59am UTC](https://gromacs.bioexcel.eu/t/position-restraints-in-martini-model/543/3 "2020-07-22T01:59:45Z")

</div>

yes it seems that bonds are much longer than it should be.

> [@kevinboyd](#):
>
> It should be 1000 if not defined, and you definitely need the -DPOSRES

If not defined, it will be 1000? Wouldnt that mean if i used define, there’d be a restraint?

Here are some zoomed-in screenshots.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/7a14a5a149566b280afbb2a46bfe294acdf2160d.jpeg)

Highlighted bond is really long here.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/b7004a21eb0f0a9f3e7a53e2b086780815484ee7.png)

This is the middle of the IgG, supposedly the somewhat symmetrical-looking part but it has been broken in two.

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/18514da4755f8cd80bfdd32d7f230dd9453acd19.png)

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/2f110d3b4d407d9212d875fcbd06c3908468acbe.png)

Original structure should look like this. Bonds are not connected here because of the modeling software im using. I only know how to add in CONECT records from trajectories but this is from the first conversion of all-atom to martini model.

---

<div class="post-metadata">

**Author:** ![kevinboyd](https://avatars.discourse-cdn.com/v4/letter/k/c77e96/32.png) [@kevinboyd](https://gromacs.bioexcel.eu/u/kevinboyd)\
**Post date:** [July 22, 2020, 3:56am UTC](https://gromacs.bioexcel.eu/t/position-restraints-in-martini-model/543/4 "2020-07-22T03:56:31Z")

</div>

Right but bonds can appear stretched if one atom is poking through the box boundary, when in reality they’re fine. Minimization really shouldn’t move atoms much at all - really small adjustments. Have you visualized the trajectory video? Is everything breaking apart at once or moving over time? What visualizer are you using? In VMD you can duplicate the box in the x/y/z dimensions and that can make it clearer, or you can run gmx trjconv to put everything together.

RE the position restraints - #ifdef should be interpreted as “if defined”, #infndef is “if not defined”, so:

> [@darrenphua](#):
>
> #ifdef POSRES  
> #ifndef POSRES\_FC  
> #define POSRES\_FC 1000.00  
> #endif

means - if POSRES is defined, and POSRES\_FC is not defined, set POSRES\_FC to 1000.

---

<div class="post-metadata">

**Author:** ![darrenphua](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@darrenphua](https://gromacs.bioexcel.eu/u/darrenphua)\
**Post date:** [July 23, 2020, 4:56am UTC](https://gromacs.bioexcel.eu/t/position-restraints-in-martini-model/543/5 "2020-07-23T04:56:10Z")

</div>

These were the commands i input.

gmx grompp -p beva.top -r solvated\_neutralized.gro -c solvated\_neutralized.gro -f minimization.mdp -o minimization.tpr

gmx mdrun -deffnm minimization -v

gmx trjconv -s minimization.tpr -f minimization.trr -o minimization\_traj.pdb -pbc whole -conect

The last command should be putting the molecule together in one piece if its due to PBC.

Im currently using SAMSON software since ive been more familiar with it. I did try to familiarize with VMD previously but i couldnt understand how to operate it, much less visualize martini models in it.

It seems that from the very first image of trajectory, the structure is already broken up.

One question, i know editconf can add CONECT records into .gro files to produce .pdb files. Can this be done for martini models as well? From documentation, the topology is required for this. How should i include topology for this command? The manual doesnt state another file type (e.g. .top) to include in the command.
