Icon representing a recipe

Recipe: 667 comment structs

created by gramps

Profile


Name
667 comment structs
ID
45156
Shared with
Public
Parent
None
Children
None
Created on
January 10, 2013 at 11:48 AM UTC
Updated on
January 10, 2013 at 11:48 AM UTC
Description

yields the predicted structs cited in the 667 puzzle comments ultimately from puzzle 452

Best for


Code


newprog = "667 comment structs" -- -- autogenerated code local Struct_Types = { ["L"] = "Loop", ["E"] = "Sheet", ["H"] = "Helix", ["M"] = "Ligand" } function Make_All_Loop() selection.SelectAll() structure.SetSecondaryStructureSelected("L") print("everything has been changed to a loop") selection.DeselectAll() end -- function Make_All_Loop function Restore_One_Stuct(s_start,s_end,s_type) selection.SelectRange(s_start,s_end) print(Struct_Types[s_type].."("..s_start..","..s_end..")") structure.SetSecondaryStructureSelected(s_type) selection.DeselectAll() end -- function Restore_One_Stuct function Restore_Structs() Restore_One_Stuct(1,8,"L") Restore_One_Stuct(9,14,"E") Restore_One_Stuct(15,22,"L") Restore_One_Stuct(23,28,"E") Restore_One_Stuct(29,36,"L") Restore_One_Stuct(37,40,"E") Restore_One_Stuct(41,45,"L") Restore_One_Stuct(46,46,"E") Restore_One_Stuct(47,50,"L") Restore_One_Stuct(51,57,"E") Restore_One_Stuct(58,58,"L") Restore_One_Stuct(59,63,"E") Restore_One_Stuct(64,85,"L") Restore_One_Stuct(86,95,"E") Restore_One_Stuct(96,97,"L") Restore_One_Stuct(98,106,"H") Restore_One_Stuct(107,112,"L") Restore_One_Stuct(113,120,"E") Restore_One_Stuct(121,125,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 125 then -- num segs match Make_All_Loop() Restore_Structs() else -- print warning line print("segment number mismatch -- no action taken") end print("end ",newprog)

Comments


gramps Lv 1

begin 667 comment structs
everything has been changed to a loop
Loop(1,8)
Sheet(9,14)
Loop(15,22)
Sheet(23,28)
Loop(29,36)
Sheet(37,40)
Loop(41,45)
Sheet(46,46)
Loop(47,50)
Sheet(51,57)
Loop(58,58)
Sheet(59,63)
Loop(64,85)
Sheet(86,95)
Loop(96,97)
Helix(98,106)
Loop(107,112)
Sheet(113,120)
Loop(121,125)
end 667 comment structs

predicted structs (ultimately under puzzle 452)
http://fold.it/portal/node/990282

puzzle 667 page
https://fold.it/portal/node/994285