Local Wiggle Sequence

Case number:699969-991267
Topic:General
Opened by:tristanlbailey
Status:Open
Type:Question
Opened on:Friday, December 9, 2011 - 12:29
Last modified:Saturday, December 10, 2011 - 11:48

I am having major difficulties trying to convert one of my GUI recipes, to either a V1 or V2 LUA script. The recipe relies upon the "Local Wiggle Sequence" ingredient, but I don't know what the equivalent of the ingredient is in the library of LUA functions for Foldit.

If there is an equivalent, could you please let us know exactly what the equivalent is?
(all the functions involved, a certain number of iterations per function, etc.)

If there isn't, will there be an equivalent for the Local Wiggle Sequence in the coming weeks?

Thanks in advance.

(Fri, 12/09/2011 - 12:29  |  5 comments)


Joined: 06/17/2010

See my V1 in V2 library script:
http://fold.it/portal/recipe/31012

Joined: 09/22/2011
Groups: None

Thanks for your reply, Rav3n_pl. I wasn't expecting a reply that quickly!
However, I don't think you understood what I was getting at in my post. I don't need to convert from a V1 script to a V2 script.

It's probably been a very long time since you did anything with the GUI version of recipe making, but that's what I need to do; to convert a GUI recipe to a script (manually typing the automated equivalents of GUI recipe "ingredients" to LUA script functions - either V1 or V2).

I was hoping to eventually improve the recipe's efficiency this way.

Joined: 06/17/2010

Ah, sorry, misunderstood :)
GUI ones are in some cases superior over LUA. GUI walkers tends to make more points than LUA ones doing exact same things/algo.
See: http://foldit.wikia.com/wiki/Lua_Scripting

void do_local_wiggle([integer iterations])
Run local wiggle. Run for 'iterations' iterations if given; otherwise, until stopped.

You need select parts you want to wiggle.
"typical" freezing+lws:

deselect_all()
do_unfreeze_all()
select_index(1)
select_index(5)
do_freeze(true,true)
deselect_all()
select_index_range(2,4)
do_local_wiggle(2)
do_unfreeze_all()
deselect_all()

Joined: 09/22/2011
Groups: None

Yeah, I have already tried the method you have posted, but it definitely does not work properly, as it brings the score down; a stark contrast to what the GUI version currently does.
Also, it happens with Clashing Importance set to 1.0, so it's not that...

I suspect that this problem is why Kuwaga built the Kuwaga Repeat Settle recipe in the way that he did. Might have to wait for the devs to explain what's going on...

Joined: 06/17/2010

That is one of GUI advantages: LWS on ci=1 ALWAYS makes points or nothing at all.
See my Worm LWS, Precise LWS or Total LWS to see how I handle "dropping points" LWS.

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