Back to Recipes Homepage
recipe picture
Recipe: Stay Here!
Your rating: None Average: 4.5 (2 votes)


Name: Stay Here!
ID: 40513
Created on: Tue, 04/10/2012 - 07:38
Updated on: Sun, 04/15/2012 - 12:18

Pins Tool: Select or freeze segments you want pinned in place; they will pivot around their centres, while you work on the protein.

Best For


Joined: 09/22/2011
Groups: None
OK, so after taking a 2 month

OK, so after taking a 2 month break from playing Foldit, I couldn't resist plunging myself into the Immunotherapy and CO2 puzzles. While playing the Immunotherapy puzzle, a thought occured to me when I was watching Rav3n's Mutate Combo recipe; would it be any more useful to force the three segments to stay almost exactly where I wanted them, while they were mutated? I was reminded by an idea which I brought up for inclusion in Foldit; the Pins Tool.

The idea can be seen here:

I decided to try my hand at a V2 Lua script/recipe, to attempt to both illustrate my idea, and to maybe provide something useful for Folders to try at the same time.

Initially, I tried to set a band on a particular segment to a length of '0.01', but that caused the band to push the segment away during a wiggle. After some more thinking and testing, I found out that a length of '3.5' appeared to be the right length setting to keep the segment where it was, and modified the script to create 6 bands out from any segments selected by the user (they look like jacks).

I set the default strength to '8' out of '10', which allows for a little movement from centre, but not much. The user can change the strength value with a slider control.

So, you can use it on segments that you want kept in a particular position in space, while allowing the rest of the backbone to freely pivot around those segments. Since the script works on selected segments, you need to be using the "Selection Interface" to make it work (*sigh*). The script is by no means perfect to the cause, but better than nothing.

To perhaps get a better idea of what I'm getting at, if you are playing Puzzle 539 (Beginner Immunotherapy Design Puzzle), and you pull up or down on segment #121, the end of segment #119 stays exactly where it is (locomotively). Again, if you instead pull on segment #119, the end of segment #121 will stay exactly where it is. They appear to be pinned in space; the end 'atoms' of the segments won't move locomotively while opposite, but will still allow for rotation (or pivoting).

Joined: 09/22/2011
Groups: None

The recipe has now been modified to work in both Selection and Original Interfaces. If you are using the recipe in the Original Interface, you will need to freeze each segment first. Since the recipe can't detect which interface you are using, it will work on both selected and frozen segments.

Thanks goes to brow42 for this idea.

Joined: 09/22/2011
Groups: None
UPDATE - v0.3

I neglected to include the behaviour of the checkboxes before, so I have updated the recipe again, and they should now be working properly. Also, the segments should not be unfrozen or deselected, if the recipe is cancelled on the dialog box.

If a user wishes to use the script in the Selection Interface, the recipe can accept both selected segments, and frozen segments. The checkboxes for these options should only appear in the Selection Interface, when both selected and frozen segments exist. The default is to work with both types, if both are present.

Want to try?
Add to Cookbook!
To download recipes to your cookbook, you need to have the game client running.



Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, Boehringer Ingelheim, RosettaCommons