# What is wrong with my complex

**URL:** <https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551>\
**Category:** User discussions\
**Created:** [July 21, 2020, 9:17pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551 "2020-07-21T21:17:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [July 21, 2020, 9:17pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/1 "2020-07-21T21:17:57Z")

</div>

GROMACS version:2020.2  
I did simulation gromacs 10ns, but now after simulation I opened complex file before simulation and I see that my ligand is not in docked position as it should be. I wanted to compare simulated pdb with complex pdb.  
Is there anything wrong with complex preparation in the beginning of complex or what is the matter?  
 ![complex](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/4ea305c6f068f2351679854514dca04d8145d80b.png) ![simulaiot](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/c779a97768b8f3787b98dbe9fb594bfe51f4f51b.png)

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [July 21, 2020, 9:18pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/2 "2020-07-21T21:18:45Z")

</div>

I followed protein-ligand gromacs tutorial

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [July 22, 2020, 11:47am UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/3 "2020-07-22T11:47:00Z")

</div>

[http://manual.gromacs.org/documentation/current/user-guide/terminology.html#gmx-pbc](http://manual.gromacs.org/documentation/current/user-guide/terminology.html#gmx-pbc)

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [July 23, 2020, 2:43pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/4 "2020-07-23T14:43:33Z")

</div>

Dea Sir,  
Could you please tell exactly what I need to do in order to eliminate this issue.

---

<div class="post-metadata">

**Author:** ![Masrul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/masrul/32/234_2.png) [@Masrul](https://gromacs.bioexcel.eu/u/Masrul)\
**Post date:** [July 23, 2020, 7:40pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/5 "2020-07-23T19:40:29Z")

</div>

Use gmx trjconv to make molecule whole.

gmx trjconv -f _.gro/_.trr -s \*tpr -pbc whole

Also familiarize yourself with periodic boundary conditions

---

<div class="post-metadata">

**Author:** ![Dr\_DBW](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/dr_dbw/32/42_2.png) [@Dr\_DBW](https://gromacs.bioexcel.eu/u/Dr_DBW)\
**Post date:** [July 23, 2020, 11:37pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/6 "2020-07-23T23:37:29Z")

</div>

Bit further down the link that I provided … [http://manual.gromacs.org/documentation/current/user-guide/terminology.html#suggested-workflow](http://manual.gromacs.org/documentation/current/user-guide/terminology.html#suggested-workflow)

You will need to try and see what works with your system, as it can be highly variable. I would try first making molecules whole, then centering your system on a molecule or residue (the ligand might be the best option).

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [August 2, 2020, 9:14pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/7 "2020-08-02T21:14:08Z")

</div>

Dear Gromacs experts,

I still have not found a solution for my problem, it looks messed.  
In complex.pdb is also the ligand far away from protein same as complex.gro

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 3, 2020, 12:33am UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/8 "2020-08-03T00:33:33Z")

</div>

Based on the files you sent me on ResearchGate, the initial coordinates are wrong as the ligand is not in the active site to start with. Correct that and start your simulation from a proper complex.

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [August 11, 2020, 11:17pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/9 "2020-08-11T23:17:14Z")

</div>

Dear Gromacs experts,

I am having again problems with complex.gro file, the ligand is far away from protein. I tried hundred ways but did not solve my problem. I used autodock vina for docking, I build complex.pdb like this: I open DIscovery studio, open protein.pdbqt then dragg our\_conf\_1.pdbqt and save as pdb file. Then through gromacs I separate ligand and protein. If there is anyone who can help I would be able to share my files, just to be helped.

sincereley,

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 12, 2020, 12:20pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/10 "2020-08-12T12:20:05Z")

</div>

1. Separate the protein and ligand from the **original docked complex** (assumes “LIG” is the ligand name, just substitute whatever it really is):

```
grep -v LIG complex.pdb > protein.pdb
```

1. Save the ligand coordinates (assumes it has all the H atoms you need, if not, you need to build those on in some modeling software and **ensure it does not alter the non-H coordinates** ):

```
grep LIG complex.pdb > lig.pdb
```

1. Generate ligand topology with whatever tools are available for the force field you’ve chosen to use.

2. Run `pdb2gmx` on the protein:

```
gmx pdb2gmx -f protein.pdb -o protein_processed.gro
```

1. Change coordinate format for the ligand. Strictly speaking, this isn’t necessary (you can use PDB format) but if any H were built on to the protein via `pdb2gmx` this may be easier:

```
gmx editconf -f lig.pdb -o lig.gro
```

1. Copy and paste the coordinates of `lig.gro` into `protein.gro` and save as `complex.gro`. Update the number of atoms in the second line of `complex.gro`.

2. Proceed as normal with positioning the complex within a box, solvate, etc.

Visually verify the correctness of the coordinates after every step. If something is amiss, you know what has gone wrong rather than trying “hundreds of ways.”

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 12, 2020, 12:29pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/11 "2020-08-12T12:29:49Z")

</div>

Also, if you haven’t done it already, run through this tutorial: [http://www.mdtutorials.com/gmx/complex/index.html](http://www.mdtutorials.com/gmx/complex/index.html)

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [August 12, 2020, 1:05pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/12 "2020-08-12T13:05:35Z")

</div>

I tried, but having problem with separated ligand (picture attached).  
For docking I used autodock vina, docked complex I prepared: Opening protein.pdbqt in pymol and then opening out\_ligand\_1.pdbqt, adding hydrogens to ligand and then ![Untitled](https://europe1.discourse-cdn.com/flex017/uploads/bioexcel1/original/1X/dda48b91606f9a30bdeeeb8fb43c66ab92e6e926.png) save as pdb file.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 12, 2020, 2:35pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/13 "2020-08-12T14:35:36Z")

</div>

OK, so you’re starting from incorrect coordinates. You need to solve the issue regarding PDBQT -\> PDB conversion. PDB is a fixed-column format, and my guess is that your conversion/export feature is violating the required column alignment.

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [August 12, 2020, 2:43pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/14 "2020-08-12T14:43:22Z")

</div>

Yeah, the problem is in pdb docked complex preparation. But I don`t know how to prepare properly, I tried using DS, PyMOL and Moe, but wrong. Maybe if I can send you pdbqt files (protein and ligand) would be a good idea.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 12, 2020, 3:25pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/15 "2020-08-12T15:25:38Z")

</div>

Open the protein and ligand PDB files and see if the columns line up. I suspect they don’t. It’s simple to fix in a text editor. If you need help doing that, attach the files to your post here.

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [August 12, 2020, 6:31pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/16 "2020-08-12T18:31:55Z")

</div>

Since here it is not possible to attach pdb, pdbqt files, I will send you at researchgate. Also please find attached complex.gro file that I build exactly as you recommended, when I opened to visualize the ligand was not there.

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 12, 2020, 6:44pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/17 "2020-08-12T18:44:25Z")

</div>

Please upload to Google Drive, etc. I do not want to have part of the conversation privately and the other publicly via this forum. The purpose of this forum is not just for you to get your problem solved but for others to learn from the discussion.

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [August 12, 2020, 7:18pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/18 "2020-08-12T19:18:33Z")

</div>

[https://drive.google.com/drive/folders/1zTU2gLM-htKF-QLzlNaWyXQEdf4hkb4g?usp=sharing](https://drive.google.com/drive/folders/1zTU2gLM-htKF-QLzlNaWyXQEdf4hkb4g?usp=sharing)

---

<div class="post-metadata">

**Author:** ![kastriotademi](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kastriotademi](https://gromacs.bioexcel.eu/u/kastriotademi)\
**Post date:** [August 12, 2020, 7:19pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/19 "2020-08-12T19:19:38Z")

</div>

unk files and complex.gro, complex.pdb are for one ligand tha I tried MD  
Wherease other files are autodock vina results for preparing compelx files

---

<div class="post-metadata">

**Author:** ![jalemkul](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/jalemkul/32/18_2.png) [@jalemkul](https://gromacs.bioexcel.eu/u/jalemkul)\
**Post date:** [August 12, 2020, 7:38pm UTC](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551/20 "2020-08-12T19:38:44Z")

</div>

The ligand coordinates from out\_ligand\_1.pdbqt and complex.pdb are completely different, so however you’re extracting the initial coordinates is not giving you the same ligand position as you’re likely expecting. I know very little about ADT/AutoDock but your problem lies there. Both complex.pdb and complex.gro have the same coordinates and the ligand is bound to the protein. If it’s not where it should be, then your export from ADT is what’s going wrong. You should seek help with using those tools on whatever help forum ADT offers.

[Next page](https://gromacs.bioexcel.eu/t/what-is-wrong-with-my-complex/551.md?page=2)
