Icon representing a recipe

Recipe: Blind ED 2 rumoured structs

created by gramps

Profile


Name
Blind ED 2 rumoured structs
ID
44687
Shared with
Public
Parent
None
Children
None
Created on
November 22, 2012 at 00:07 AM UTC
Updated on
November 22, 2012 at 00:07 AM UTC
Description

yields predicted structs for puzzle Blind Electron Density 2 as mentioned in global chat by Susume use as 1st approximation

Best for


Code


newprog = "Blind ED 2 rumoured 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,7,"L") Restore_One_Stuct(8,16,"H") Restore_One_Stuct(17,21,"L") Restore_One_Stuct(22,27,"E") Restore_One_Stuct(28,32,"L") Restore_One_Stuct(33,38,"E") Restore_One_Stuct(39,49,"L") Restore_One_Stuct(50,62,"H") Restore_One_Stuct(63,72,"L") Restore_One_Stuct(73,75,"E") Restore_One_Stuct(76,86,"L") Restore_One_Stuct(87,92,"E") Restore_One_Stuct(93,95,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 95 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 Blind ED 2 rumoured structs
everything has been changed to a loop
Loop(1,7)
Helix(8,16)
Loop(17,21)
Sheet(22,27)
Loop(28,32)
Sheet(33,38)
Loop(39,49)
Helix(50,62)
Loop(63,72)
Sheet(73,75)
Loop(76,86)
Sheet(87,92)
Loop(93,95)
end Blind ED 2 rumoured structs

Here's the puzzle's home page
http://fold.it/portal/node/993935