Local/Global Wiggle Selected/All

Case number:845813-994671
Topic:Game: Tools
Opened by:Bruno Kestemont
Status:Closed
Type:Question
Opened on:Friday, March 8, 2013 - 10:14
Last modified:Monday, March 18, 2013 - 13:54

Question: How can I translate do_local_wiggle to LUA V2?

Question: Could anybody explain, in the Wiki, what are the differences with the new LA2 tools:

structure.LocalWiggleAll
Description: Local wiggle all segments.
V1 Function Name: New to V2
Question: how can it locally wiggle all segments ??????????

structure.LocalWiggleSelected
Description: Local wiggle selected segments.
V1 Function Name: Similar to do_global_wiggle_all
Question: local wiggle selected similar to global_wiggle_all ??????????

structure.WiggleSelected
Description: Global wiggle selected segments.
V1 Function Name: Similar to do_global_wiggle_all
Questionn: wiggle selected similar to wiggle_all ??????????

structure.WiggleAll
Description: Global wiggle all segments.
V1 Function Name: New to V2
Question: Not similar to do_global_wiggle_all ?

Thanks in advance !

(Fri, 03/08/2013 - 10:14  |  8 comments)


Joined: 06/17/2010

Wiggle and local wiggle are 2 different algorithms, so it will be bit different outcome.
Difference between "wiggle all" and "wiggle selected" is obvious if you are using selection interface :)
"Wiggle all" are touching all segments despite selection, "wiggle selected" only that part you have selected.
So in fact, there are 4 different wiggles.
WiggleAll = do_global.... on all seggments
WiggleSelected = do_global... on selected segments
LocalWiggleAll = do_local_wiggle on all segments
LocalWiggleSelected = do_local_wiggle on selected segments
By design local wiggle is optimized to wiggle small chunks, not entire protein.

If you need move script from V1 to V2 lua you can use my library: http://fold.it/portal/recipe/31012 (for use v1 functions in v2 script) or translator: http://fold.it/portal/node/991521 (to change v1 code to v2)

Joined: 09/24/2012
Groups: Go Science

So I could correct the Wiki like this, if you agree:

structure.LocalWiggleAll
Description: Local wiggle all segments.
V1 Function Name: (replaced: "New to V2" by) Similar to do_local_wiggle

structure.LocalWiggleSelected
Description: Local wiggle selected segments.
V1 Function Name: (replaced: "Similar to do_global_wiggle_all" by)New to V2
Question: local wiggle selected similar to do_local_wiggle_all ??????????

structure.WiggleSelected
Description: Global wiggle selected segments.
V1 Function Name: (replaced: "Similar to do_global_wiggle_all" by)New to V2

structure.WiggleAll
Description: Global wiggle all segments.
V1 Function Name: (replaced: "New to V2" by)similar to do_global_wiggle_all

Joined: 09/21/2011
Groups: Void Crushers

NO, the Wiki is correct. The V1 functions only work on selected segments, the V2 functions ...All dont care about selections.

Joined: 09/24/2012
Groups: Go Science

OK thanks. But I think there is still an error in the Wiki:

structure.LocalWiggleSelected

(...)
V1 Function Name: Similar to do_global_wiggle_all

should be replaced by

V1 Function Name: New to V2

do_global_wiggle_all is only equivalent to structure.WiggleAll

Joined: 09/21/2011
Groups: Void Crushers

I think you are right that that line is wrong (See also what Rav said) but it should be corrected to
V1 Function Name: simular to do_local_wiggle_all

Joined: 09/24/2012
Groups: Go Science

Well

do_local_wiggle_all

is not listed in the Lua 1 Wiki:
http://foldit.wikia.com/wiki/Simplified_List_of_Lua_Commands

Is it a valid command?

Joined: 09/21/2011
Groups: Void Crushers

My mistake: do_local_wiggle should it be.

Joined: 09/24/2012
Groups: Go Science
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, Boehringer Ingelheim, RosettaCommons