Profile


Name
Toaster
ID
108423
Shared with
Public
Parent
None
Children
None
Created on
October 06, 2023 at 14:02 PM UTC
Updated on
October 06, 2023 at 14:06 PM UTC
Description

A script that allows you to automate the creation of proteins

Best for


Code


-- -- A script that allows you to automate the creation of proteins -- function start (wt, mt, st) structure.WiggleAll ( wt ) structure.MutateSidechainsAll ( mt ) structure.ShakeSidechainsAll ( st ) message() end function form () local formDial = dialog.CreateDialog ( "Toaster" ) formDial["wt"] = dialog.AddTextbox ( "Wiggle times", "2" ) formDial["mt"] = dialog.AddTextbox ( "Mutate times", "2" ) formDial["st"] = dialog.AddTextbox ( "Shake times", "2" ) formDial.ok = dialog.AddButton ( "Start", 1 ) formDial.cancel = dialog.AddButton ( "Cancel", 0 ) rc = dialog.Show ( formDial ) if rc > 0 then start (tonumber(formDial["wt"].value), tonumber(formDial["mt"].value), tonumber(formDial["st"].value)) end end function message () local okMsg = dialog.CreateDialog ( "Toaster" ) okMsg.l15 = dialog.AddLabel ( "Toaster finished" ) okMsg.OK = dialog.AddButton ( "OK", 1 ) dialog.Show ( okMsg ) end form ()

Comments