Icon representing a recipe

Recipe: 657 jpred structs

created by gramps

Profile


Name
657 jpred structs
ID
44783
Shared with
Public
Parent
None
Children
None
Created on
November 28, 2012 at 02:38 AM UTC
Updated on
November 28, 2012 at 02:38 AM UTC
Description

yields the structures predicted in the jpred screen linked on the puzzle 657 home page

Best for


Code


newprog = "657 jpred 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,1,"L") Restore_One_Stuct(2,6,"H") Restore_One_Stuct(7,12,"L") Restore_One_Stuct(13,28,"H") Restore_One_Stuct(29,32,"L") Restore_One_Stuct(33,46,"H") Restore_One_Stuct(47,48,"L") Restore_One_Stuct(49,58,"H") Restore_One_Stuct(59,65,"L") Restore_One_Stuct(66,77,"E") Restore_One_Stuct(78,81,"L") Restore_One_Stuct(82,92,"E") Restore_One_Stuct(93,96,"L") Restore_One_Stuct(97,103,"E") Restore_One_Stuct(104,107,"L") Restore_One_Stuct(108,112,"E") Restore_One_Stuct(113,114,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 114 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 657 jpred structs
everything has been changed to a loop
Loop(1,1)
Helix(2,6)
Loop(7,12)
Helix(13,28)
Loop(29,32)
Helix(33,46)
Loop(47,48)
Helix(49,58)
Loop(59,65)
Sheet(66,77)
Loop(78,81)
Sheet(82,92)
Loop(93,96)
Sheet(97,103)
Loop(104,107)
Sheet(108,112)
Loop(113,114)
end 657 jpred structs

Puzzle 657 home page:
https://fold.it/portal/node/993977