Back to Recipes Homepage
recipe picture
Recipe: Jpred helper V1.0
Created by gramps 78 1437
0
Your rating: None

Profile

Name: Jpred helper V1.0
ID: 44826
Created on: Mon, 12/03/2012 - 16: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

gramps's picture
User offline. Last seen 5 years 12 weeks ago. Offline
Joined: 12/16/2010
source code

-- 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

Want to try?
Add to Cookbook!
To download recipes to your cookbook, you need to have the game client running.
Parent

none

Children

none

Authors
Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons