Icon representing a recipe

Recipe: 663 comment structs

created by gramps

Profile


Name
663 comment structs
ID
45054
Shared with
Public
Parent
None
Children
None
Created on
December 22, 2012 at 02:01 AM UTC
Updated on
December 22, 2012 at 02:01 AM UTC
Description

yields predicted structs from the 663 puzzle page comment

Best for


Code


newprog = "663 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,29,"L") Restore_One_Stuct(30,30,"E") Restore_One_Stuct(31,37,"L") Restore_One_Stuct(38,41,"E") Restore_One_Stuct(42,50,"L") Restore_One_Stuct(51,57,"E") Restore_One_Stuct(58,61,"L") Restore_One_Stuct(62,64,"E") Restore_One_Stuct(65,67,"L") Restore_One_Stuct(68,74,"E") Restore_One_Stuct(75,78,"L") Restore_One_Stuct(79,85,"E") Restore_One_Stuct(86,95,"L") Restore_One_Stuct(96,98,"E") Restore_One_Stuct(99,107,"L") Restore_One_Stuct(108,111,"E") Restore_One_Stuct(112,114,"H") Restore_One_Stuct(115,117,"L") Restore_One_Stuct(118,121,"E") Restore_One_Stuct(122,124,"L") Restore_One_Stuct(125,148,"H") Restore_One_Stuct(149,152,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 152 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 663 comment structs
everything has been changed to a loop
Loop(1,29)
Sheet(30,30)
Loop(31,37)
Sheet(38,41)
Loop(42,50)
Sheet(51,57)
Loop(58,61)
Sheet(62,64)
Loop(65,67)
Sheet(68,74)
Loop(75,78)
Sheet(79,85)
Loop(86,95)
Sheet(96,98)
Loop(99,107)
Sheet(108,111)
Helix(112,114)
Loop(115,117)
Sheet(118,121)
Loop(122,124)
Helix(125,148)
Loop(149,152)
end 663 comment structs

663 puzzle page
http://fold.it/portal/node/994182