Icon representing a recipe

Recipe: 626 comment structs

created by gramps

Profile


Name
626 comment structs
ID
44124
Shared with
Public
Parent
None
Children
None
Created on
September 06, 2012 at 18:18 PM UTC
Updated on
September 06, 2012 at 18:18 PM UTC
Description

predicted structures from the comment under puzzle 626 page

Best for


Code


newprog = "626 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,4,"L") Restore_One_Stuct(5,14,"H") Restore_One_Stuct(15,20,"L") Restore_One_Stuct(21,24,"E") Restore_One_Stuct(25,28,"L") Restore_One_Stuct(29,36,"E") Restore_One_Stuct(37,39,"L") Restore_One_Stuct(40,45,"E") Restore_One_Stuct(46,49,"L") Restore_One_Stuct(50,56,"E") Restore_One_Stuct(57,61,"L") Restore_One_Stuct(62,62,"H") Restore_One_Stuct(63,64,"L") Restore_One_Stuct(65,74,"H") Restore_One_Stuct(75,81,"L") Restore_One_Stuct(82,82,"E") Restore_One_Stuct(83,84,"L") Restore_One_Stuct(85,89,"E") Restore_One_Stuct(90,94,"L") Restore_One_Stuct(95,103,"E") Restore_One_Stuct(104,107,"L") Restore_One_Stuct(108,114,"E") Restore_One_Stuct(115,119,"L") Restore_One_Stuct(120,125,"E") Restore_One_Stuct(126,139,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 139 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 626 comment structs
everything has been changed to a loop
Loop(1,4)
Helix(5,14)
Loop(15,20)
Sheet(21,24)
Loop(25,28)
Sheet(29,36)
Loop(37,39)
Sheet(40,45)
Loop(46,49)
Sheet(50,56)
Loop(57,61)
Helix(62,62)
Loop(63,64)
Helix(65,74)
Loop(75,81)
Sheet(82,82)
Loop(83,84)
Sheet(85,89)
Loop(90,94)
Sheet(95,103)
Loop(104,107)
Sheet(108,114)
Loop(115,119)
Sheet(120,125)
Loop(126,139)
end 626 comment structs