# LINCS error during Alchemical free energy calculation

**URL:** https://ask.bioexcel.eu/t/lincs-error-during-alchemical-free-energy-calculation/2904
**Category:** pmx
**Created:** [May 4, 2021, 10:33am UTC](https://ask.bioexcel.eu/t/lincs-error-during-alchemical-free-energy-calculation/2904 "2021-05-04T10:33:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rbhadane](https://avatars.discourse-cdn.com/v4/letter/r/e480ec/32.png) [@rbhadane](https://ask.bioexcel.eu/u/rbhadane)
#### Post date: [May 4, 2021, 10:33am UTC](https://ask.bioexcel.eu/t/lincs-error-during-alchemical-free-energy-calculation/2904/1 "2021-05-04T10:33:11Z")

</div>

I want to discuss the issue i am facing with pmx based free energy calculations.  
Briefly i have taken my protein which is in bound and unbound conformation, Then using pmx web-server i introduce one mutation (F2L) at position 46 in my protein.  
Then i have prepared files for forward and reverse transformation for both bound and unbound conformation.  
I did 1. Minimization (max steps 100000), 2. the NPT simulation for 1ns with positional restraints and 3. 100ns equilibrium simulation  
After completing this i have split trajectory frames starting from 50ns into 50 input files for non-equilibrium simulation to run them for 5ns.  
But during this stage LINCS error start appearing after 85ps of simulation and simulation stopped.

I did several modifications to avoid LINCS error during my simulation,  
Ex. 1. Changing soft core potential value from 0.3 to 0.2 or 0.5,  
2. I used PME method but also tested Reaction field method,  
3. changes in tau\_p values,  
4. Simulation steps size from 0.002 to 0.001,  
5. Constrained option in LINCS from all atoms to H-atoms only  
6. Centering the protein during trjconv step,  
7. Running the energy minimization on gromacs output file after trjconv step exactly before non-equilibrium simulation.  
but none of these options worked for me.

The error I am getting is for the mutated F2L atoms as i confirmed this by looking into the topology files and LINCS error.

During input file preparation i have got two warning which i have ignored by using -maxwarn 2 (One of this warning is about presence of charge 1.0000 in B-state (Do i need to worry about this charge? or this charge is the source of error? How i can avoid this?

---

<div class="post-metadata">

### Author: ![vgapsys](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@vgapsys](https://ask.bioexcel.eu/u/vgapsys)
#### Post date: [September 30, 2021, 1:31pm UTC](https://ask.bioexcel.eu/t/lincs-error-during-alchemical-free-energy-calculation/2904/2 "2021-09-30T13:31:02Z")

</div>

LINCS error: make sure that running in the direction F-\>L you are setting init-lambda=0 and delta-lambda=1/nsteps, while for the reverse direction F\<-L init-lambda=1 and delta-lambda=-1/nsteps

> [@rbhadane](#):
>
> (One of this warning is about presence of charge 1.0000 in B-state (Do i need to worry about this charge? or this charge is the source of error? How i can avoid this?

Since F2L is charge conserving mutation, the +1 charge should also be present in the A-state. The warning should not be ignored, but rather the system should be neutralized with counter ions.
