Lua secondaryStructure: add "A" (auto)

Started by Bruno Kestemont

Bruno Kestemont Lv 1

In order to implement the following idea http://fold.it/portal/node/2002996 (recognizing ideal loops), it would be nice to have an "auto" argument for SetSecondaryStructure.

See:
structure.SetSecondaryStructure(integer segmentIndex, string secondaryStructure)
structure.SetSecondaryStructureSelected(string secondaryStructure)

We have:
secondaryStructure= "L", "S", "H", "M"

Add: "A" for Auto (set by Foldit)

=============
OR add a command:

structure.GetSecondaryStructure(integer segmentIndex, [boolean auto])

if boolean auto == nil or false: returns current SS
if boolean auto == true: returns auto expected SS

=============
Reason: currently, with player's SS, Susume's idea doesn't work if a player's loop is not recognized as loop by Foldit.