Icon representing a recipe

Recipe: 677 Structure 6 structs

created by gramps

Profile


Name
677 Structure 6 structs
ID
45374
Shared with
Public
Parent
None
Children
None
Created on
February 15, 2013 at 18:00 PM UTC
Updated on
February 15, 2013 at 18:00 PM UTC
Description

yields the structs from the extended chain likely the 673 default structs

Best for


Code


newprog = "677 Structure 6 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,11,"L") Restore_One_Stuct(12,19,"H") Restore_One_Stuct(20,24,"L") Restore_One_Stuct(25,27,"E") Restore_One_Stuct(28,35,"H") Restore_One_Stuct(36,36,"L") Restore_One_Stuct(37,37,"H") Restore_One_Stuct(38,41,"L") Restore_One_Stuct(42,46,"E") Restore_One_Stuct(47,60,"L") Restore_One_Stuct(61,67,"H") Restore_One_Stuct(68,74,"L") Restore_One_Stuct(75,79,"E") Restore_One_Stuct(80,84,"L") Restore_One_Stuct(85,88,"E") Restore_One_Stuct(89,91,"L") Restore_One_Stuct(92,97,"E") Restore_One_Stuct(98,108,"L") Restore_One_Stuct(109,113,"E") Restore_One_Stuct(114,115,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 115 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 677 Structure 6 structs
everything has been changed to a loop
Loop(1,11)
Helix(12,19)
Loop(20,24)
Sheet(25,27)
Helix(28,35)
Loop(36,36)
Helix(37,37)
Loop(38,41)
Sheet(42,46)
Loop(47,60)
Helix(61,67)
Loop(68,74)
Sheet(75,79)
Loop(80,84)
Sheet(85,88)
Loop(89,91)
Sheet(92,97)
Loop(98,108)
Sheet(109,113)
Loop(114,115)
end 677 Structure 6 structs

Can be used on the starts that don't have their own structs as a starting guess

Remember that public Recipe: autogen structure code V1 …
https://fold.it/portal/recipe/43480

can be used to capture / share manual structs edits