Back to Recipes Homepage
recipe picture
Recipe: Sidechain flipper 1.0
Created by spvincent 55 34
4.212765
Your rating: None Average: 4.2 (47 votes)
Used 2159 times with an average impact of -62063 points.

Profile

Name: Sidechain flipper 1.0
ID: 2509
Created on: Sun, 05/23/2010 - 18:59
Updated on: Sun, 05/23/2010 - 18:59
Description:

Prints progress and any improvements to scripting window. See top of script for how it works and parameters to change.



Best For


Comments

Joined: 09/18/2009
Groups: SETI.Germany
Coprime

This coprime stategy for getting a "random" segment-to-work-on order is interesting.

Joined: 09/18/2009
Groups: SETI.Germany
Question

Why does it make a difference if a sidechain is frozen?

Joined: 09/18/2009
Groups: SETI.Germany
Hint...

As moving of the sidechains can change the number of snap positions, I reccomend to change the the line:

do_sidechain_snap(idx,r)

to

if r<=get_sidechain_snap_count(idx) then do_sidechain_snap(idx,r) end

to prevent an error.

spvincent's picture
User offline. Last seen 13 hours 39 min ago. Offline
Joined: 12/07/2007
Groups: Contenders
Thanks for the suggestion

Thanks for the suggestion Crashguard but I believe this issue is already addressed through the use of the boolean variable improvement_made.

(And if you didn't freeze the sidechain you'd always return to the starting position)

Joined: 09/18/2009
Groups: SETI.Germany
So...

...the "bad argument" for snapping already doesn't occur anymore?

spvincent's picture
User offline. Last seen 13 hours 39 min ago. Offline
Joined: 12/07/2007
Groups: Contenders
I do see it occasionally on

I do see it occasionally on this script and have no idea why: suspect a possible bug in foldIt.

Joined: 08/24/2010
Thanks crashguard303

Thanks Crashguard303, your suggestion worked. "r" is being used without being correctly bounds checked.

I don't know why anyone would intentionally introduce a vulnerability into their code.

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

none

Children
Authors
Sitemap

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, RosettaCommons