Resore best and structures

Started by steveB

steveB Lv 1

Could you add the following small feature, which would be really helpful ?

If you reload the secondary structures (Ctrl 9) when the protein is at the best score, could the programme be made to remember these new structures as being the new "best score".

Why ?

At present the following sequence (original interface), Ctrl 9 / A , will result in no change to the protein structures being displayed, and it is used a lot after running many recipes.

smilingone Lv 1

I usually wiggle the sidechains to gain at least .001 point. You then have a new best. Or, you can simply save it.

steveB Lv 1

That's what I do too smilingone, that's just why I am asking for the feature request, because it drives me crazy !

Deleted user

I do wish recipe writers would remember to restore structures if their recipes turn the protein into all loops. DRW recipes come to mind.

I would think that restoring the structures, then saving that status as the Best in the recipe would work.

brow42 Lv 1

Many scripts, such as Rav3n's DRW and Compress, do restore structure at the end of the script. However, the ability to restore structure when you cancel is a lua 2 capability, and a little obscure in the implementation. You'll see this more and more as the scripts get re-written in lua 2, such as in TvdL Enhance DRW or Tlaloc 4.xx scripts.

Deleted user

@ brow42

You're correct - it is more of a problem when a long-running recipe that is no longer making points is cancelled.

Can someone post a code snippet that can be included to restore the structures and save as "Best" ?