# Mol\_fix\_origin\_2=true doesn't works well for ligands in narrow pockets

**URL:** <https://ask.bioexcel.eu/t/mol-fix-origin-2-true-doesnt-works-well-for-ligands-in-narrow-pockets/5609>\
**Category:** HADDOCK\
**Created:** [April 18, 2025, 9:55am UTC](https://ask.bioexcel.eu/t/mol-fix-origin-2-true-doesnt-works-well-for-ligands-in-narrow-pockets/5609 "2025-04-18T09:55:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![regen](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@regen](https://ask.bioexcel.eu/u/regen)\
**Post date:** [April 18, 2025, 9:55am UTC](https://ask.bioexcel.eu/t/mol-fix-origin-2-true-doesnt-works-well-for-ligands-in-narrow-pockets/5609/1 "2025-04-18T09:55:19Z")

</div>

Ahoy!

I’m using haddock3 to docking a ligand ensemble with 50 conformers into a very narrow pocket.The shape of the pocket looks like the letter " λ" and the reference ligand fills up the whole pocket.

 ![屏幕截图_20250418_174936](https://europe1.discourse-cdn.com/flex013/uploads/bioexcel/original/2X/a/a83b8601448f815e0af5276dae0698a657c091d4.png)

Haddock refused to generate complex correctly because of the huge vdw repulsion in rigidbody step,even with a ±1 Å tolerence atom-level distance unambiguous restraint file.

I try to generate coords of the target ligands according to the same substructure atoms in reference ligand and fix it(mol\_fix\_origin\_2=true) and the protein(mol\_fix\_origin\_3=true,the first protein is free) in rigidbody step.But the ligand is not fixed.Most ligand conformers still tend to run away from the pocket.

Original coords(fig2) comparing with after rigidbody step(fig3).

I try to set `inter_rigid = 0.001;w_vdw = 0.0` and a 0 Å tolerence atom-level distance unambiguous restraint file in rigidbody step and cancel them in flexref step, and it works for me(fig4).

So by setting `mol_fix_origin_x=true`, is it fixed at the very first time,but huge vdw repulsion dirves the ligand outside later in rigidbody step?Or something else happens?

---

<div class="post-metadata">

**Author:** ![regen](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@regen](https://ask.bioexcel.eu/u/regen)\
**Post date:** [April 18, 2025, 9:55am UTC](https://ask.bioexcel.eu/t/mol-fix-origin-2-true-doesnt-works-well-for-ligands-in-narrow-pockets/5609/2 "2025-04-18T09:55:57Z")

</div>

can’t upload multiple media right now,splitting them in reply.

fig2:original coords before docking

 ![屏幕截图_20250418_173626](https://europe1.discourse-cdn.com/flex013/uploads/bioexcel/original/2X/8/81b2f8c3f722a82382db642ca37e8798f060f338.jpeg)

---

<div class="post-metadata">

**Author:** ![regen](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@regen](https://ask.bioexcel.eu/u/regen)\
**Post date:** [April 18, 2025, 9:56am UTC](https://ask.bioexcel.eu/t/mol-fix-origin-2-true-doesnt-works-well-for-ligands-in-narrow-pockets/5609/3 "2025-04-18T09:56:31Z")

</div>

fig3: after rigidbody step:

 ![屏幕截图_20250418_174731](https://europe1.discourse-cdn.com/flex013/uploads/bioexcel/original/2X/0/06e45664987c11ce0b0a6ac82cfb2a696143dae7.png)

---

<div class="post-metadata">

**Author:** ![regen](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@regen](https://ask.bioexcel.eu/u/regen)\
**Post date:** [April 18, 2025, 9:57am UTC](https://ask.bioexcel.eu/t/mol-fix-origin-2-true-doesnt-works-well-for-ligands-in-narrow-pockets/5609/4 "2025-04-18T09:57:59Z")

</div>

fig4:use a strict restraint file and scale down the vdw score,get what I want.

 ![屏幕截图_20250418_170137](https://europe1.discourse-cdn.com/flex013/uploads/bioexcel/original/2X/1/193bcd23460fb91af91c55ddeaa84718f19f8190.png)

---

<div class="post-metadata">

**Author:** ![amjjbonvin](https://dub1.discourse-cdn.com/flex013/user_avatar/ask.bioexcel.eu/amjjbonvin/32/23_2.png) [@amjjbonvin](https://ask.bioexcel.eu/u/amjjbonvin)\
**Post date:** [April 18, 2025, 12:52pm UTC](https://ask.bioexcel.eu/t/mol-fix-origin-2-true-doesnt-works-well-for-ligands-in-narrow-pockets/5609/5 "2025-04-18T12:52:20Z")

</div>

> I try to set `inter_rigid = 0.001;w_vdw = 0.0` and a 0 Å tolerence atom-level distance unambiguous restraint file in rigidbody step and cancel them in flexref step, and it works for me(fig4).

That’s the recommended way to do it (described in some haddock2.4 tutorials)

> So by setting `mol_fix_origin_x=true`, is it fixed at the very first time,but huge vdw repulsion dirves the ligand outside later in rigidbody step?Or something else happens?

You would have to fix both your receptor and ligand - but then effectively you are no longer doing the rigid body stage and can skip that module.

You might also try to follow our shape-docking protocol. There is an example provided.

And check the following tutorial:

[

| 

 ![banner_education-thin.jpg](https://europe1.discourse-cdn.com/flex013/uploads/bioexcel/original/1X/9cfac13c84d79c2705cfd715146e27e79620f62a.jpeg)

 |

| 

[HADDOCK2.4 shape-restrained protein-small molecule tutorial](https://www.bonvinlab.org/education/HADDOCK24/shape-small-molecule/)  
[bonvinlab.org](https://www.bonvinlab.org/education/HADDOCK24/shape-small-molecule/)

 |

](https://www.bonvinlab.org/education/HADDOCK24/shape-small-molecule/)

---

<div class="post-metadata">

**Author:** ![regen](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@regen](https://ask.bioexcel.eu/u/regen)\
**Post date:** [April 18, 2025, 2:13pm UTC](https://ask.bioexcel.eu/t/mol-fix-origin-2-true-doesnt-works-well-for-ligands-in-narrow-pockets/5609/6 "2025-04-18T14:13:02Z")

</div>

It’s strange that I have fixed both receptor and ligand before,but the ligand still runs out of the receptor,unless I use strict tbl file and scale down inter-rigid vdw term.

I also learned shape docking before and success in some scenarios.But I mainly dock PRO-TAC system this week,where 2 separate protein carrying with 2 reference ligands,while my ligand is a linker connecting with 2 reference ligands.

Fixing 2 shapes and 2 proteins seems not suitable for PRO-TAC ligands,as the relative distance of the 2 proteins are unknown.

Since the terminal groups of PRO-TAC are exactly reference ligands from known PDB structure,defining corresponding distance restraints on PRO-TAC is easier for me.
