# Describing direction in secondary structure

**URL:** https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421
**Category:** Guides and Tutorials
**Created:** [December 31, 2022, 3:15pm UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421 "2022-12-31T15:15:11Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Hearsall](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/h/f475e1/32.png) [@Hearsall](https://forum.eternagame.org/u/Hearsall)
#### Post date: [December 31, 2022, 3:15pm UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/1 "2022-12-31T15:15:11Z")

</div>

Is there any established terminology for describing direction in secondary structures? Primary structure has [“upstream” and “downstream”](https://en.wikipedia.org/wiki/Directionality_(molecular_biology)) but I haven’t seen any equivalent for secondary structure.

In relation to boosting internal loops in EternaFold, I’m looking for a word or simple term to refer to the end that is in the direction away from the hairpin loop or in the direction towards the hairpin loop respectively.

---

<div class="post-metadata">

### Author: ![DigitalEmbrace](https://forum.eternagame.org/user_avatar/forum.eternagame.org/digitalembrace/32/4445_2.png) [@DigitalEmbrace](https://forum.eternagame.org/u/DigitalEmbrace)
#### Post date: [January 1, 2023, 9:41pm UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/2 "2023-01-01T21:41:01Z")

</div>

Secondary structure direction is 5’ to 3’. You could identify the 5’ side or the 3’ side, particularly in multiloops. The other convention we follow is to list the pairs and boosts (non-canonical pairs) 5’ to 3’. The most commonly occurring boost is the GA boost, for example.

---

<div class="post-metadata">

### Author: ![Hearsall](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/h/f475e1/32.png) [@Hearsall](https://forum.eternagame.org/u/Hearsall)
#### Post date: [January 2, 2023, 10:18am UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/3 "2023-01-02T10:18:31Z")

</div>

It’s primarily the ends rather that the sides that I want to refer to, although I’ll need to mention the sides too. In secondary structures like hairpins, stacks and internal loops, 5’ and 3’ are both at the same end, so that won’t do in this context.

---

<div class="post-metadata">

### Author: ![JR1](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/j/dfb087/32.png) [@JR1](https://forum.eternagame.org/u/JR1)
#### Post date: [January 2, 2023, 3:19pm UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/4 "2023-01-02T15:19:11Z")

</div>

If you create a movie from a sequence in KineFold you can see how the secondary structure forms. From 5’ to 3’. So I always (and I believe everyone else does) refer the 5’ end as the start of the sequence since that’s where it starts and the 3’ end as the end of the structure since that’s where it stops.  
NT count also is always in that 5’ to 3’ direction.

---

<div class="post-metadata">

### Author: ![LFP6](https://forum.eternagame.org/user_avatar/forum.eternagame.org/lfp6/32/7_2.png) [@LFP6](https://forum.eternagame.org/u/LFP6)
#### Post date: [January 3, 2023, 3:01pm UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/5 "2023-01-03T15:01:54Z")

</div>

I think I see what you’re saying - given the below screenshot, you want to refer to the green vs blue end of the stack?

 ![image](https://d2he8ud106d9gn.cloudfront.net/original/2X/a/aa4e48a5857a395f4a9f4508e1e5ac8d7a5d4a74.png)

I actually haven’t seen any terminology used for that, aside from maybe the [closing pair](https://wiki.eternagame.org/wiki/Closing_Pair) being the pair directly next to a hairpin loop.

If you consider the secondary structure from a graph theory perspective as a [rooted tree](https://en.wikipedia.org/wiki/Tree_(graph_theory)#Rooted_tree), you might refer to it as being “closer to” or “further from” the root (or leaves), or maybe even a “parent” or “child” (depending on what part of the structure you’d identify as a “node”), but even then it’s still a bit squishy.

---

<div class="post-metadata">

### Author: ![LFP6](https://forum.eternagame.org/user_avatar/forum.eternagame.org/lfp6/32/7_2.png) [@LFP6](https://forum.eternagame.org/u/LFP6)
#### Post date: [January 3, 2023, 3:03pm UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/6 "2023-01-03T15:03:27Z")

</div>

(Also, side note, sorry that this post initially got stuck in the spam filter!)

---

<div class="post-metadata">

### Author: ![Hearsall](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/h/f475e1/32.png) [@Hearsall](https://forum.eternagame.org/u/Hearsall)
#### Post date: [January 3, 2023, 4:13pm UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/7 "2023-01-03T16:13:14Z")

</div>

That’s right (green versus red). If there’s no existing convention, I’m thinking of calling the green end the “front” and the red end the “back”, with the sides being “left” and “right” as viewed from the “front” end.

---

<div class="post-metadata">

### Author: ![rhiju](https://forum.eternagame.org/user_avatar/forum.eternagame.org/rhiju/32/3349_2.png) [@rhiju](https://forum.eternagame.org/u/rhiju)
#### Post date: [January 3, 2023, 4:14pm UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/8 "2023-01-03T16:14:50Z")

</div>

@Hearsall sometimes people will refer to the base pairs and loop that are the most ‘further out’ in a hairpin as ‘apical’ – and I guess the opposite would be “basal”.

Would that be useful terminology?

(For stems and loops that are not at hairpins, it becomes a bit ambiguous to define a “root” for the secondary structure, so we might have to always resort to pictures…)

---

<div class="post-metadata">

### Author: ![Hearsall](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/h/f475e1/32.png) [@Hearsall](https://forum.eternagame.org/u/Hearsall)
#### Post date: [January 4, 2023, 11:35am UTC](https://forum.eternagame.org/t/describing-direction-in-secondary-structure/4421/9 "2023-01-04T11:35:46Z")

</div>

That would certainly work. Although I think using everyday words might perhaps be more congenial for people who aren’t familiar with the jargon.
