Profile
- Name
- 654 comment structs
- ID
- 44616
- Shared with
- Public
- Parent
- None
- Children
- None
- Created on
- November 22, 2012 at 01:48 AM UTC
- Updated on
- November 22, 2012 at 01:48 AM UTC
- Description
yields the 653 structs which are also 654 predicted for convenience
Best for
Code
newprog = "654 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,2,"L")
Restore_One_Stuct(3,4,"H")
Restore_One_Stuct(5,8,"L")
Restore_One_Stuct(9,9,"H")
Restore_One_Stuct(10,25,"L")
Restore_One_Stuct(26,33,"H")
Restore_One_Stuct(34,35,"L")
Restore_One_Stuct(36,40,"H")
Restore_One_Stuct(41,46,"L")
Restore_One_Stuct(47,50,"H")
Restore_One_Stuct(51,54,"L")
Restore_One_Stuct(55,57,"E")
Restore_One_Stuct(58,60,"L")
Restore_One_Stuct(61,66,"E")
Restore_One_Stuct(67,71,"L")
Restore_One_Stuct(72,80,"E")
Restore_One_Stuct(81,85,"L")
Restore_One_Stuct(86,86,"E")
Restore_One_Stuct(87,94,"L")
Restore_One_Stuct(95,101,"E")
Restore_One_Stuct(102,112,"L")
Restore_One_Stuct(113,124,"E")
Restore_One_Stuct(125,126,"L")
Restore_One_Stuct(127,132,"H")
Restore_One_Stuct(133,133,"L")
Restore_One_Stuct(134,138,"E")
Restore_One_Stuct(139,139,"L")
Restore_One_Stuct(140,145,"E")
Restore_One_Stuct(146,149,"L")
end -- function Restore_Structs
print("begin ",newprog)
if structure.GetCount() == 149 then -- num segs match
Make_All_Loop()
Restore_Structs()
else -- print warning line
print("segment number mismatch -- no action taken")
end
print("end ",newprog)