# DNA ending effect

**URL:** <https://gromacs.bioexcel.eu/t/dna-ending-effect/3812>\
**Category:** User discussions\
**Created:** [March 9, 2022, 3:54pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812 "2022-03-09T15:54:29Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![amnah](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amnah](https://gromacs.bioexcel.eu/u/amnah)\
**Post date:** [March 9, 2022, 3:54pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/1 "2022-03-09T15:54:30Z")

</div>

GROMACS version:  
GROMACS modification: Yes/No  
Here post your question

Hello everyone

I have a question regarding DNA simulation

How to restrain the terminal ends to avoid the ending (Fraying ) effect due to the lack of WC structure at the ends of the DNA duplex?  
How can I modify the top file to do so?

Thank you so much

---

<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:** [March 10, 2022, 2:32am UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/2 "2022-03-10T02:32:09Z")

</div>

Use distance restraints to enforce the hydrogen bonds between terminal base pairs.

---

<div class="post-metadata">

**Author:** ![amnah](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amnah](https://gromacs.bioexcel.eu/u/amnah)\
**Post date:** [March 10, 2022, 2:01pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/3 "2022-03-10T14:01:46Z")

</div>

Thank you, Justin!  
Do I need to merge the two DNA topologies, then define groups in an index file that represent the heavy atoms in the terminal base pairs?

---

<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:** [March 10, 2022, 2:13pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/4 "2022-03-10T14:13:56Z")

</div>

You need a merged topology but no special index groups. Distance restraints are defined within the topology (using the merged `[moleculetype]` definition) and thus no index group is needed.

---

<div class="post-metadata">

**Author:** ![amnah](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amnah](https://gromacs.bioexcel.eu/u/amnah)\
**Post date:** [March 10, 2022, 3:34pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/5 "2022-03-10T15:34:34Z")

</div>

Thank you again, Justin.

so then I need to add the following code to the [bonds] section of the topology file to keep the terminal base pairs (T-A) hydrogen-bonded

; atom\_i atom\_j func r0 r1 r2 k(kJ mol^-1 nm^-2)  
20 3602 10 0.0 0.5 0.6 10000  
21 3605 10 0.0 0.5 0.6 10000

20,21 , 3602, 3605 are the residue numbers of the heavy atoms

Am I doing this correctly?

Thank you again for your help

---

<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:** [March 11, 2022, 3:55am UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/6 "2022-03-11T03:55:37Z")

</div>

Those lines do not belong in a `[bonds]` directive, they belong in `[distance_restraints]`.

---

<div class="post-metadata">

**Author:** ![amnah](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amnah](https://gromacs.bioexcel.eu/u/amnah)\
**Post date:** [March 11, 2022, 6:52pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/7 "2022-03-11T18:52:00Z")

</div>

So, I need to create a new section `[distance_restraints]` , and copy these lines, right?

Thank you so much, Justin, for your generous help.

---

<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:** [March 11, 2022, 7:03pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/8 "2022-03-11T19:03:02Z")

</div>

Yes, see the manual.

---

<div class="post-metadata">

**Author:** ![amnah](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amnah](https://gromacs.bioexcel.eu/u/amnah)\
**Post date:** [March 11, 2022, 8:06pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/9 "2022-03-11T20:06:44Z")

</div>

I was reading the manual, I found this:

For restraints not derived from NMR data, this functionality will usually suffice and a section of [  
bonds ] type 10 can be used to apply individual restraints between pairs of atoms, see Topology file  
(page 406). For applying restraints derived from NMR measurements, more complex functionality  
might be required, which is provided through the [distance\_restraints] section and is  
described below.

The distance restraints I used were not derived from NMR experiments. So If I understood correctly, I need to add those lines to the bond section? I am confused

---

<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:** [March 12, 2022, 7:02pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/10 "2022-03-12T19:02:33Z")

</div>

The mathematical form of distance restraints is taken from NMR structure fitting, so it can directly interface with experimental data, but there is no requirement to do so. You can achieve the same thing a number of ways, e.g. type 10 bonds, pull code, etc. However you do it is up to you.

---

<div class="post-metadata">

**Author:** ![amnah](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amnah](https://gromacs.bioexcel.eu/u/amnah)\
**Post date:** [March 12, 2022, 7:45pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/11 "2022-03-12T19:45:00Z")

</div>

> [@amnah](#):
>
> bonds ] type 10

Got it!

Thank you so much, Justin

---

<div class="post-metadata">

**Author:** ![genie](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@genie](https://gromacs.bioexcel.eu/u/genie)\
**Post date:** [March 15, 2022, 8:21pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/12 "2022-03-15T20:21:44Z")

</div>

Another approach is using the “pull” distance constraints between terminal bases. In this case, we can use standard topologies.  
We discussed this problem earlier: [Constraining terminal basepairs in DNA](https://gromacs.bioexcel.eu/t/constraining-terminal-basepairs-in-dna/2549)

---

<div class="post-metadata">

**Author:** ![kandresen](https://dub1.discourse-cdn.com/flex017/user_avatar/gromacs.bioexcel.eu/kandresen/32/747_2.png) [@kandresen](https://gromacs.bioexcel.eu/u/kandresen)\
**Post date:** [March 15, 2022, 9:25pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/13 "2022-03-15T21:25:09Z")

</div>

Amnah,

I had this same issue. I went into it in the post that genie alluded to. Genie gave a great example of how to do the “pull” function and I tried my best to go into detail with how to do the approach that Justin suggests. In case you missed the link above:  
[https://gromacs.bioexcel.eu/t/constraining-terminal-basepairs-in-dna/2549](https://gromacs.bioexcel.eu/t/constraining-terminal-basepairs-in-dna/2549)

---

<div class="post-metadata">

**Author:** ![amnah](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@amnah](https://gromacs.bioexcel.eu/u/amnah)\
**Post date:** [March 15, 2022, 10:51pm UTC](https://gromacs.bioexcel.eu/t/dna-ending-effect/3812/14 "2022-03-15T22:51:58Z")

</div>

Thank you so much. will try that!
