Icon representing a recipe

Recipe: 650 comment structs

created by gramps

Profile


Name
650 comment structs
ID
44470
Shared with
Public
Parent
None
Children
None
Created on
November 05, 2012 at 13:49 PM UTC
Updated on
November 05, 2012 at 13:49 PM UTC
Description

yields predicted structs from the 650 puzzle page which refers to puzzle 645 page

Best for


Code


newprog = "650 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,"L") Restore_One_Stuct(5,11,"E") Restore_One_Stuct(12,21,"H") Restore_One_Stuct(22,25,"L") Restore_One_Stuct(26,34,"E") Restore_One_Stuct(35,40,"L") Restore_One_Stuct(41,44,"E") Restore_One_Stuct(45,47,"L") Restore_One_Stuct(48,58,"H") Restore_One_Stuct(59,66,"L") Restore_One_Stuct(67,73,"E") Restore_One_Stuct(74,76,"L") Restore_One_Stuct(77,80,"E") Restore_One_Stuct(81,85,"L") Restore_One_Stuct(86,94,"H") Restore_One_Stuct(95,95,"L") Restore_One_Stuct(96,97,"H") Restore_One_Stuct(98,100,"L") end -- function Restore_Structs print("begin ",newprog) if structure.GetCount() == 100 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 650 comment structs
everything has been changed to a loop
Loop(1,4)
Sheet(5,11)
Helix(12,21)
Loop(22,25)
Sheet(26,34)
Loop(35,40)
Sheet(41,44)
Loop(45,47)
Helix(48,58)
Loop(59,66)
Sheet(67,73)
Loop(74,76)
Sheet(77,80)
Loop(81,85)
Helix(86,94)
Loop(95,95)
Helix(96,97)
Loop(98,100)
end 650 comment structs
</Foldit:ScriptOutput>

Puzzle 650 page (refers puzzle 645 page for struct predictions):
https://fold.it/portal/node/993847

comment structs creation how-to:
http://fold.it/portal/recipe/44263#comment-19933