Back to Recipes Homepage
recipe picture
Recipe: Overnight_Script
Your rating: None Average: 4.1 (95 votes)
Used 4846 times with an average impact of -88786 points.


Name: Overnight_Script
ID: 2014
Created on: Mon, 12/14/2009 - 05:35
Updated on: Mon, 12/14/2009 - 13:35

My first script, a little something to run overnight

Best For


Joined: 06/23/2009

What does it do?

xedr's picture
User offline. Last seen 1 year 30 weeks ago. Offline
Joined: 05/16/2008
Function summary

so... when you read the code, you see a "rebuild(x)" function that steps through the protein (for i=1 to N) and operates on the chunk from i to i+x. The "operation" is a rebuild followed by various wiggles and shakes (with a clashing importance adjustment) to see if the rebuild helped. If not, the recent best is restored and the function moves to the next segment.

The body of the script calls this rebuild(x) function with x varying from 1 to 5. The body itself is repeated 24 times.

In essence, this is a brute-force approach. "The beatings will continue until morale improves". Judging from the ratings and the usage it has gotten, it probably works pretty well.

xedr's picture
User offline. Last seen 1 year 30 weeks ago. Offline
Joined: 05/16/2008
oh yeah

I forgot to mention that the script stores the protein structure in an array, and sets the whole protein to "Loop" before calling the rebuild function. If the script ever completes, it restores the protein structure from the information stored in the array.

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