Icon representing a recipe

Recipe: 678 jpred structs

created by gramps

Profile


Name
678 jpred structs
ID
45392
Shared with
Public
Parent
674 jpred structs
Children
None
Created on
February 18, 2013 at 16:58 PM UTC
Updated on
February 18, 2013 at 16:58 PM UTC
Description

678 is 674 with first 11 segs removed manually subtracted 11 from all numbers in 674 jpred structs to get this

Best for


Code


newprog = "678 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,11,"L") Restore_One_Stuct(1,7,"E") Restore_One_Stuct(8,16,"L") Restore_One_Stuct(17,18,"E") Restore_One_Stuct(19,28,"H") Restore_One_Stuct(29,33,"L") Restore_One_Stuct(34,42,"H") Restore_One_Stuct(43,58,"L") Restore_One_Stuct(59,59,"E") Restore_One_Stuct(60,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,136,"E") Restore_One_Stuct(137,137,"L") Restore_One_Stuct(138,145,"H") 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 jpred structs
everything has been changed to a loop
Sheet(1,7)
Loop(8,16)
Sheet(17,18)
Helix(19,28)
Loop(29,33)
Helix(34,42)
Loop(43,58)
Sheet(59,59)
Loop(60,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,136)
Loop(137,137)
Helix(138,145)
Loop(146,147)
end 678 jpred structs

derived from recipe 674 jpred structs (all recipe output numbers here should be 11 less than in that recipe, hopefully handraulics worked OK ;-)
http://fold.it/portal/recipe/45367