# \[Strategy Market\]\[Switch\]Predicted probability of MS2 hairpin fully forming

**URL:** https://forum.eternagame.org/t/strategy-market-switch-predicted-probability-of-ms2-hairpin-fully-forming/2336
**Category:** Strategy Market - Switches
**Created:** [June 22, 2015, 9:24pm UTC](https://forum.eternagame.org/t/strategy-market-switch-predicted-probability-of-ms2-hairpin-fully-forming/2336 "2015-06-22T21:24:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Omei](https://forum.eternagame.org/user_avatar/forum.eternagame.org/omei/32/4420_2.png) [@Omei](https://forum.eternagame.org/u/Omei)
#### Post date: [June 22, 2015, 9:24pm UTC](https://forum.eternagame.org/t/strategy-market-switch-predicted-probability-of-ms2-hairpin-fully-forming/2336/1 "2015-06-22T21:24:00Z")

</div>

From the dot plots produced by ViennaFold 2.2 for the ON and OFF state, pull the probability of the pair forming at the base of MS2 hairpin. Here’s a picture to illustrate the pair, but the exact base numbers will depend on where the hairpin is in the submission.

[![](https://d2he8ud106d9gn.cloudfront.net/original/2X/2/25072a391ea0e4d11322612147eb308e1d6679fd.png)](https://d2r1vs3d9006ap.cloudfront.net/s3_images/1225160/JL146.png?1435007532)

If the probability in the ON state is below a threshold TBD, deduct a penalty. If the probability in the OFF state is above a (different) threshold, deduct a different penalty. Presumably, these thresholds and penalties will need to be calculated independently for the switch direction and type of aptamer (MS2 vs miRNA).

My expectation is that this will be useful for weeding out some poorly scoring designs, but not particularly useful for distinguishing great designs from mediocre ones. Thus, the most effective thresholds will probably be fairly tolerant ones.

For an explanation of why I’m nominating this, see [Dot Plot / melt plot converted to data](https://getsatisfaction.com/eternagame/topics/dot-plot-melt-plot-converted-to-data).

---

<div class="post-metadata">

### Author: ![vineetkosaraju](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/v/4491bb/32.png) [@vineetkosaraju](https://forum.eternagame.org/u/vineetkosaraju)
#### Post date: [June 29, 2015, 7:41pm UTC](https://forum.eternagame.org/t/strategy-market-switch-predicted-probability-of-ms2-hairpin-fully-forming/2336/2 "2015-06-29T19:41:00Z")

</div>

Dear Omei Turnbull,&nbsp;

Your strategy has been added to our implementation queue and we should have it completed within the next two to three weeks. You can check the status of the implementation [here](https://github.com/vineetsk1/Switch-Strategies/issues/10).

We will also be uploading the code used to write your strategy on this [page](https://github.com/vineetsk1/Switch-Strategies) if you are interested in reading it later.

After implementing your idea, we will post the direct link to the code here. Then, we will then optimize the parameters, and test it. At that point, we will tell you the correlation of how good your strategy was and what the new optimized parameters are.

Thanks for sharing your idea!

Vineet Kosaraju  
The EteRNA Team

---

<div class="post-metadata">

### Author: ![vineetkosaraju](https://forum.eternagame.org/letter_avatar_proxy/v4/letter/v/4491bb/32.png) [@vineetkosaraju](https://forum.eternagame.org/u/vineetkosaraju)
#### Post date: [July 3, 2015, 9:50pm UTC](https://forum.eternagame.org/t/strategy-market-switch-predicted-probability-of-ms2-hairpin-fully-forming/2336/3 "2015-07-03T21:50:00Z")

</div>

Dear Omei Turnbull,

I am pleased to announce that a preliminary version of your strategy has been implemented with 17 lines of code. The code might slightly change in the future to remove bugs, but you can check the current version [here](https://github.com/vineetsk1/Switch-Strategies/blob/master/omei_turnbull_predicted_probability_of_MS2_hairpin_fully_forming.py "Link https//githubcom/vineetsk1/Switch-Strategies/blob/master/omei\_turnbull\_predicted\_probability\_of\_MS2\_hairpin\_fully\_formingpy"). We will soon work on optimizing your parameters and testing the strategy.

Thank you again for sharing your switch strategy!

Vineet Kosaraju  
The EteRNA Team
