Profile
Name: |
Jpred helper V1.0 |
ID: |
44826 |
Created on: |
Mon, 12/03/2012 - 08:20 |
Updated on: |
Mon, 12/03/2012 - 16:20 |
Description: |
prints out the model's AAs as a string in the output and also in a text box (use Cntl-C in text box to grab) |
Best For
Comments
|
| | |
|
Want to try?
Add to Cookbook!
To download recipes to your cookbook, you need to have the game client running.
| |
| | |
| | |
|
-- Jpred helper V1.0
--
-- prints out the model's AAs as a string in the output
-- and also in a text box (use Cntl-C in text box to retrieve)
--
-- the string of AAs can be put into the Jpred secondary structure
-- prediction server here:
-- http://www.compbio.dundee.ac.uk/www-jpred/
--
-- by gramps (John McLeod)
-- V1.0 -- December 3, 2012
--
progname = "Jpred helper V1.0"
--
jpred_url = "http://www.compbio.dundee.ac.uk/www-jpred/"
--
--
-- MAIN stuff
--
print(progname,"started")
--
local AA_string = ""
for i = 1, structure.GetCount() do
AA_string = AA_string .. structure.GetAminoAcid(i)
end
--
local ask = dialog.CreateDialog("Jpred helper")
ask.Instructions = dialog.AddLabel("grab this string of models AAs to put into Jpred")
ask.OK = dialog.AddButton("OK", 1)
ask.Cancel = dialog.AddButton("Cancel", 0)
ask.AAString = dialog.AddTextbox("Cntl-C grabs AAs", AA_string)
if (dialog.Show(ask) > 0) then
print("string of AAs for input to Jpred")
print(AA_string)
print("URL for Jpred")
print(jpred_url)
else
print("user canceled operation")
end
--
print(progname,"ended")
--
-- end Jpred helper V1.0