Icon representing a recipe

Recipe: 717 comment structs

created by gramps

Profile


Name
717 comment structs
ID
46119
Shared with
Public
Parent
None
Children
None
Created on
May 22, 2013 at 16:48 PM UTC
Updated on
May 22, 2013 at 16:48 PM UTC
Description

yields the structures listed in the comments under the puzzle 717 page

Best for


Code


newprog = "717 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,14,"L") Restore_One_Stuct(15,29,"H") Restore_One_Stuct(30,43,"L") Restore_One_Stuct(44,66,"H") Restore_One_Stuct(67,70,"L") Restore_One_Stuct(71,82,"H") Restore_One_Stuct(83,88,"L") Restore_One_Stuct(89,89,"H") Restore_One_Stuct(90,94,"L") Restore_One_Stuct(95,110,"H") Restore_One_Stuct(111,121,"L") Restore_One_Stuct(122,122,"H") Restore_One_Stuct(123,124,"E") Restore_One_Stuct(125,128,"L") Restore_One_Stuct(129,135,"H") Restore_One_Stuct(136,138,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 138 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 717 comment structs
everything has been changed to a loop
Loop(1,14)
Helix(15,29)
Loop(30,43)
Helix(44,66)
Loop(67,70)
Helix(71,82)
Loop(83,88)
Helix(89,89)
Loop(90,94)
Helix(95,110)
Loop(111,121)
Helix(122,122)
Sheet(123,124)
Loop(125,128)
Helix(129,135)
Loop(136,138)
end 717 comment structs

puzzle 717 page:
https://fold.it/portal/node/995186

These structs are also supposed to be available from the extended chain in the alignment tool but I couldn't figure out how to get them that way.