Back to Recipes Homepage
recipe picture
Recipe: wiggle by ones + score condition V1.96
Your rating: None Average: 3.7 (3 votes)
Used 123 times with an average impact of 40 points.


Name: wiggle by ones + score condition V1.96
ID: 1889
Created on: Tue, 10/20/2009 - 08:39
Updated on: Tue, 10/20/2009 - 15:39

themarquis' script , where I added score-conditional wiggle repeating, default condition is >.0002 difference per extra wiggle. Change it to your needs. Be careful with stopping!

Best For


Joined: 04/13/2009
Groups: Contenders
thanks crashguard for coming

thanks crashguard for coming up with a great mod to my script. using score as a conditional is a potential goldmine for foldit scripting.

a note for programming neophytes: in a conditional, we check something (in this case, the score) and see if it's increasing/decreasing/whatever we want it to be doing (crashguard has it set up so we see if the score has increased by a certain amount) then based on whether or not the condition is true, we do something.

so in this script, if the score is increasing (condition is true), continue to wiggle the protein. If the score is no longer increasing (condition is false) then don't do anything. Crashguard has set it up as a while loop so it just keeps looping around and around and around "while" the condition is true. The moment the condition becomes false, the loop stops.

It's pretty easy to see that there could be lots of other great scripts that use score as a conditional!

I may include your modification in my wiki tutorial if you don't mind!

Joined: 04/13/2009
Groups: Contenders

hmm ... I don't like the fact that it takes the first few words as a subject if you don't enter one : "thanks crashguard for coming". Sounds a little ... er ... strange, doesn't it?

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