New Lua functions, any suggestions?

Started by Timo van der Laan

Timo van der Laan Lv 1

Hi all,

In a short while I will be working as a volunteer for Foldit.
One of the first things I will be doing is adding new Lua functions.
Of course I have a list of functions I would like to add for instance:

  • bonus functions
  • an extra parameter to recentbest to return only valid scoring positions
  • some cutpoint functions
  • and more
    However, I would like to hear the opinion of other script writers, which functions they would like to see.

Happy Folding, Timo

jeff101 Lv 1

Below are some old Feedbacks listed in
http://fold.it/portal/feedback/filter/all/author:421719%20assigned:421719

Make LUA commands band.SetNote and band.GetNote
http://fold.it/portal/node/993966

recipe.GetName and recipe.GetRecipeID in LUA
http://fold.it/portal/node/2001463

One-directional bands (like bumpers) for Contact Map puzzles
http://fold.it/portal/node/996372

How to tell within LUA recipes if an autosave/quicksave-slot is already occupied?
http://fold.it/portal/node/1998859

Dialog boxes that allow mouse-free input
http://fold.it/portal/node/1998680

Make dialog.AddLogSlider() similar to dialog.AddSlider()
http://fold.it/portal/node/998413

Can ui.AlignGuide() output an RMSD value?
http://fold.it/portal/node/998412

LUA function structure.GetAtom to return atom types
http://fold.it/portal/node/997504

Create hoops (like bands, but the protein can slide through them)
http://fold.it/portal/node/992670

Allow recipes to read keyboard, mouse buttons, mouse position, etc.
http://fold.it/portal/node/992669

Recipe command for "Align Protein to Density"
http://fold.it/portal/node/992656

Improving the "Align Protein to Density" or "Center Protein on Density" button
https://fold.it/portal/node/993959#comment-32465
Having a LUA implementation of the
Nelder-Mead Simplex Direct Search Method
for optimization would be very helpful.

Let us get/set (read/change) the wiggle power
from within scripts.

Enzyme2 Lv 1

In addition to many of jeff101's that I would like o see:

recipebest methods similar to recentbest but without the set. The set is auto when the recipe begins. This would allow the recipe to set recentbest throughout, then recipebest.Restore() at the end

The ability to call recipes(with and without parameters) from within another recipe(including the ability for the recipe to verify it's existence first). Also the ability to call methods from within the other recipe without running the entire recipe.

get/set the rama map from within recipes

the ability to set blueprints from within scripts

  • any other button in the UI which doesn't yet have a script equivalent

Enzyme2 Lv 1

the ability to detect which segments are affected by various filters like the Core, Residue IE, SS Design, Ideal Loop, etc filters

Bruno Kestemont Lv 1

In addition to what jeff101 recalled above:

Pause a recipe for some times (71 votes):
http://fold.it/portal/node/986021
http://fold.it/portal/node/998144
http://fold.it/portal/node/2002242

Timed wiggles and shakes (12 votes):
https://fold.it/portal/node/987798

Wiggle power function (11 votes):
https://fold.it/portal/node/996831

Change status (title of the Output window when a recipe is running)(8 votes)
https://fold.it/portal/node/987953

Ideal SS (7 votes):
https://fold.it/portal/node/997505

Tweak tool (6 votes):
https://fold.it/portal/node/994411

Add "auto" argument to get/set secondary structure (4 votes)
https://fold.it/portal/node/2002998

Meta tool for running recipes from the cookbook (4 votes):
https://fold.it/portal/node/990676

Load, save, share solutions (3 votes):
https://fold.it/portal/node/998025
https://fold.it/portal/node/2000684
https://fold.it/portal/node/2002598

Save.SaveObject() - LoadObject() (or any hidden segment or note)(2 votes):
https://fold.it/portal/node/994274

Bruno Kestemont Lv 1

Dialog display timing:

When a dialog is displayed, if the user doesn't react after some times, the recipe can go on with some default ("ok"). The problem today is that you can run a recipe for night, butwhen you come back, you discover that it was stiffed on a dialog you forgot to click "ok" …

Bruno Kestemont Lv 1

Drug Design tools:

  • first numbering the atoms (like residues are numbered)
  • then we can add, delete atoms and structure at atom x the same way we go through all remix possible solutions (no need to know what we add: we just automatically mass try everything that is proposed)

Bruno Kestemont Lv 1

puzzle.GetPuzzleFilterScorePartNames()

and

.GetFilterScore (string FilterScorePart)

where FilterScorePartare any "puzzle level" (not by residue) scores like:

Filters (default): the one we see on the top of the score window (total points from filters)
Core
SS
SS Design
Residue Count
Ideal Loop

etc

Then rewriting the (unused) SetFiltersDisabled(bollean setting) the following way:

behavior.GetFiltersDisabled(string FilterScorePart)
behavior.SetFiltersDisabled(string FilterScorePart)

smortier Lv 1

From Blipperman on the news post:

"Mutatable VoidCrusher
I have often desired to have the mutate all after crushing and before wiggling."