gramps Lv 1
– 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