Re: [R] GUI commands to call for a protein from protein data bank

2010-05-19 Thread j verzani
Amitoj S. Chopra gmail.com> writes: > > > Thank you it worked perfectly. I just needed to close the window that was > the problem. Do you know how to close the window automatically and why does > that matter? Thanks! > > Amitoj Not sure why this makes a difference, but if it does great. A

Re: [R] GUI commands to call for a protein from protein data bank

2010-05-18 Thread Amitoj S. Chopra
Thank you it worked perfectly. I just needed to close the window that was the problem. Do you know how to close the window automatically and why does that matter? Thanks! Amitoj On Tue, May 18, 2010 at 12:10 PM, Amitoj Chopra wrote: > I tried doing that and this is what I go: > > > dlg <-

Re: [R] GUI commands to call for a protein from protein data bank

2010-05-18 Thread Amitoj S. Chopra
I tried doing that and this is what I go: dlg <- aDialog(items=list( ProtienCode=stringItem("") ), OK_handler=function(.) { # . is reference to dlg object values <- .$to_R() f <- function(ProtienCode) pdb <- read.pdb(.$get_ProteinCode()) #cat("ProteinCode is",ProtienCode,"\n") do.call(f, values)

Re: [R] GUI commands to call for a protein from protein data bank

2010-05-18 Thread j verzani
Amitoj S. Chopra gmail.com> writes: > > > What I am trying to do is use GUI function, traitr, and to call for a pdb > file and save it and then display it. I want to call for it by taking it > from the user and then displaying it on the screen. I am having problems > with that. The line pdb <-

[R] GUI commands to call for a protein from protein data bank

2010-05-18 Thread Amitoj S. Chopra
What I am trying to do is use GUI function, traitr, and to call for a pdb file and save it and then display it. I want to call for it by taking it from the user and then displaying it on the screen. I am having problems with that. The line pdb <- read.pdb(""ProteinCode) where proteincode should b