Mutable Locked Segments on 537

Started by brow42

brow42 Lv 1

I noticed that many locked segments on 537 CO2 and You Too were mutable via Lua 2, but not via the interface. This is unfortunate, since many of the locked protein segments are low scoring. For example, 298 Histadine scores -63…after mutating to Glycine via Lua it scores +9…that one change took me from rank 50 to rank 24. Non-scriptors, or even infrequent scriptors, may never have known they were mutable. Plus, given the size of the puzzle, many scripts might not even get to that segment, and there's no manual recourse to fix that horrible segment (I found it only by writing my own script).

Is this intentional i.e. you wanted the backbone locked but the sidechains mutable, and this is an unfortunate side effect?

main client 2012-02-24-47632-win_x86

Rav3n_pl Lv 1

pdb #298 his - on dev it is locked and not mutable.
same on main client when loaded my best solution and after reset - cant mutate, it is locked.
Can`t reproduce it, share your solution brow!

— EDIT
Just got #1 in tis puzzle when started http://fold.it/portal/recipe/40448 brow`s recipe on my best solution.
It is somehow moving locked sidechains…

brow42 Lv 1

We've determined that Rav's scripts do not see this, because he only mutates selected AAs, and locked segments cannot be mutated. I mutate by segment number. I find 215 mutable, Rav finds fewer.

count = 0
for i = 1, structure.GetCount() do
if structure.GetSecondaryStructure ~= 'M' then
if structure.IsMutable(i) then print(i) count = count+1 end
end
end
print('Total mutable:',count)

Rav3n_pl Lv 1

It is combination of 2 bugs.
This puzzle returns as mutable 215 segments where 120 of this segments are locked.
My mutate script is using "select" then "structure.SetAminoAcidSelected(type)".
Brow is using "structure.SetAminoAcid(number,type)".
Because locked can not be selected my script is not touching them, Brow`s script is directly using mutate on segment and puzzle setup ALLOWS mutation of locked segment.
Attached log and script.

edit:
It is working on DEV, MAIN still not have IsLocked functionality. Main also returns 215 mutables.

Rav3n_pl Lv 1

Loaded 529 - same thing can be done in this puzzle.
Tlalocs and Brows and any v2 script that are using mutate(sn,typ) broke it.

brow42 Lv 1

I wrote a diagnostic program to help catch this. It's updatable for future puzzles. It requires devprev and IsLocked, thanks for adding that function.

Good News: I used IsLocked so my script didn't make bad mutations for people using devprev.

Bad News: I have a rank 100 solution from the day before (which I uploaded to server), that only used GUI Mutate Sidechains, Raven Mutate Combo 1.4, Tlaloc Mutate All 4.0, and it has 2 bad mutations.

http://fold.it/portal/recipe/40456

537: CO2andYouToo!	04/08/12 23:29:00
Locked:	     (1 - 28), (37 - 52), (70 - 114), (125 - 164), (174 - 242), (255 - 368), (393 - 402)
Not Locked:  (29 - 36), (53 - 69), (115 - 124), (165 - 173), (243 - 254), (369 - 392), (403 - 418)
Mutable:     (3 - 21), (29 - 45), (52 - 55), (57 - 70), (114 - 124), (126 - 129), (165 - 178),
             (219 - 233), (241 - 260), (265 - 276), (284 - 306), (315 - 323), (329 - 333), (335 - 338),
             (368 - 393), (401 - 418)
Not Mutable: (1 - 2), (22 - 28), (46 - 51), 56, (71 - 113), 125, (130 - 164), (179 - 218), 
             (234 - 240), (261 - 264), (277 - 283), (307 - 314), (324 - 328), 334, (339 - 367), (394 - 400)
Mutable But Locked:	(1 - 2), (22 - 36), (46 - 51), (53 - 69), (71 - 113), (115 - 125), 
             (130 - 173), (179 - 218), (234 - 240), (243 - 254), (261 - 264), (277 - 283),
             (307 - 314), (324 - 328), 334, (339 - 367), (369 - 392), (394 - 400), (403 - 418)
Mutable and Not Locked:	(29 - 36), (53 - 55), (57 - 69), (115 - 124), (165 - 173), 
             (243 - 254), (369 - 392), (403 - 418)
Found bad mutations:	225, 319

brow42 Lv 1

Stupid Typos. Just to avoid any confusion, Mutable But Locked above is inverted. Correct list:
Mutable But Locked: (3 - 21), (37 - 45), 52, 70, 114, (126 - 129), (174 - 178), (219 - 233), (241 - 242), (255 - 260), (265 - 276), (284 - 306), (315 - 323), (329 - 333), (335 - 338), 368, 393, (401 - 402)