Icon representing a recipe

Recipe: 678 comment structs

created by gramps

Profile


Name
678 comment structs
ID
45393
Shared with
Public
Parent
None
Children
None
Created on
February 18, 2013 at 19:21 PM UTC
Updated on
February 18, 2013 at 19:21 PM UTC
Description

yields structs predicted in the 674 comments with first 11 segs removed manual transcription was needed

Best for


Code


newprog = "678 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,"E") Restore_One_Stuct(5,16,"L") Restore_One_Stuct(17,19,"E") Restore_One_Stuct(20,21,"L") Restore_One_Stuct(22,24,"H") Restore_One_Stuct(25,30,"E") Restore_One_Stuct(31,31,"L") Restore_One_Stuct(32,42,"H") Restore_One_Stuct(43,57,"L") Restore_One_Stuct(58,60,"E") Restore_One_Stuct(61,62,"L") Restore_One_Stuct(63,65,"H") Restore_One_Stuct(66,67,"L") Restore_One_Stuct(68,69,"H") Restore_One_Stuct(70,73,"L") Restore_One_Stuct(74,77,"E") Restore_One_Stuct(78,81,"L") Restore_One_Stuct(82,84,"E") Restore_One_Stuct(85,89,"L") Restore_One_Stuct(90,97,"E") Restore_One_Stuct(98,102,"L") Restore_One_Stuct(103,113,"E") Restore_One_Stuct(114,119,"L") Restore_One_Stuct(120,124,"E") Restore_One_Stuct(125,130,"L") Restore_One_Stuct(131,145,"E") Restore_One_Stuct(146,147,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 147 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 678 comment structs
everything has been changed to a loop
Sheet(1,4)
Loop(5,16)
Sheet(17,19)
Loop(20,21)
Helix(22,24)
Sheet(25,30)
Loop(31,31)
Helix(32,42)
Loop(43,57)
Sheet(58,60)
Loop(61,62)
Helix(63,65)
Loop(66,67)
Helix(68,69)
Loop(70,73)
Sheet(74,77)
Loop(78,81)
Sheet(82,84)
Loop(85,89)
Sheet(90,97)
Loop(98,102)
Sheet(103,113)
Loop(114,119)
Sheet(120,124)
Loop(125,130)
Sheet(131,145)
Loop(146,147)
end 678 comment structs

puzzle 678 page
https://fold.it/portal/node/994534

There's a link on the 678 page going to the comment under 674. As noted on the 678 page, the present puzzle omits 11 segs (from the N-end, old segs 1-11) so to use the comment structs you have to subtract 11 from each of the diagram numbers.