Re: [Jmol-users] Help with Jmol Math

2010-02-20 Thread Robert Hanson
On Fri, Feb 19, 2010 at 7:48 PM, Otis Rothenberger wrote: > Bob, > > Attempting the latter did raise a question: Can you use variables as > coordinates in a data statement? I've tried all sorts of x y z variations in > the "C x y z" component of the data statement without success - @x, @{x} , > x,

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Otis Rothenberger
Bob, That's certainly more straight forward than addition. I was just envisioning situations where an individual atom is deleted, and a user wants to add some atom back in. Creating a quarternary nitrogen would also require addition of a new atom. At this point, via click, I can replace atoms, ch

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Robert Hanson
I think you should always be able to know where the atom is to go. If it were me, I would always do atom replacement, so when, say, I click on an H atom, it becomes a CH3. Isn't that the way Spartan does it? I would just follow their lead on that. No need to reinvent the wheel here. Bob On Fri, F

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Rolf Huehne
Otis Rothenberger schrieb: > Rolf, > > Yup, that seems to work for getting the atomIndex. It just took a while > for me to find the correct dot notation by playing with: > > var z={*}.atomIndex.max;echo @z; > > I'm new to the math component of Jmol, so I'm doing a lot of trial and > error with

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Otis Rothenberger
Rolf, Yup, that seems to work for getting the atomIndex. It just took a while for me to find the correct dot notation by playing with: var z={*}.atomIndex.max;echo @z; I'm new to the math component of Jmol, so I'm doing a lot of trial and error with math notation right now. I have not tried you

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Rolf Huehne
Otis Rothenberger schrieb: > Subsequent methylamine to ethylamine adds the carbon atom, but it will > not connect, nor will it add hydrogens. Checking all three atomInfo's > shows the problem. There is atomIndex confusion with all the deleting > and adding going on. The array lengths are correct

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Otis Rothenberger
Bob and Rolf, A fairly lengthy data list is appended to this email. It looks like atomIndex assignment has problems with my approach. The JavaScript function is now: function appendC(x) { var scpt = "select;var z={*}.length;set appendNew false;data 'append'|1|add|C 5 5 5|end 'append';show da

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Otis Rothenberger
Thanks Bob and Rolf. {*}.length to get the atomIndex of the appended atom makes the embarrassing astatine trick go away. It also has some general utility. Bob, putting the appended atom anywhere in the reach of other atoms seems to always get it mired in a web of strange bonds after "minimize add

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Robert Hanson
On Thu, Feb 18, 2010 at 11:20 PM, Otis Rothenberger wrote: > Hello- > > I'm working on an atom append script to click append a C atom (methyl group > actually) to an existing atom in a Jmol model. The following JavaScript > function works, but it is far from elegant. I'm fairly sure that there are

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Rolf Huehne
On 02/19/2010 06:20 AM, Otis Rothenberger wrote: > 1) The ridiculous addition of astatine relates to my inability to use > getProperty for the atomIndex of the newly appended atom, so I appended a > very rare element, selected it, and changed it to carbon. Is there a way to > get this atomIndex a b

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Rolf Huehne
On 02/19/2010 11:19 AM, Rolf Huehne wrote: > I am not sure if I understand what the problem is here. > Is it that you want to display everything except the appended atom at > "50 50 50" filling the view? > If this is the problem you could try "zoomto (atom expression)". > Sorry, I forgot the impor

Re: [Jmol-users] Help with Jmol Math

2010-02-19 Thread Rolf Huehne
On 02/19/2010 06:20 AM, Otis Rothenberger wrote: > Hello- > > I'm working on an atom append script to click append a C atom (methyl group > actually) to an existing atom in a Jmol model. The following JavaScript > function works, but it is far from elegant. I'm fairly sure that there are > Jmol ma

[Jmol-users] Help with Jmol Math

2010-02-18 Thread Otis Rothenberger
Hello- I'm working on an atom append script to click append a C atom (methyl group actually) to an existing atom in a Jmol model. The following JavaScript function works, but it is far from elegant. I'm fairly sure that there are Jmol math approaches to deal with some specific script actions that

Re: [Jmol-users] Help with Jmol and jQuery?

2009-05-28 Thread Jeff Hansen
Thanks to everyone for helping with this. I understand where I was going wrong and I've got things in much better shape now. I have another question. I've pulled data out of the file loaded into Jmol and used it to plot points in an svg element. I would like to use jQuery to access thos

Re: [Jmol-users] Help with Jmol and jQuery?

2009-05-27 Thread Robert Hanson
Interesting idea. Probably without the points would be nicer. On Wed, May 27, 2009 at 4:43 PM, Xavier Prat-Resina wrote: > Not sure if it's useful, I'm using jQuery/flot here > http://www.chemeddl.org/collections/molecules/index.php > click the IR spectrum button and a flot chart pops up > > Xavi

Re: [Jmol-users] Help with Jmol and jQuery?

2009-05-27 Thread Xavier Prat-Resina
Not sure if it's useful, I'm using jQuery/flot here http://www.chemeddl.org/collections/molecules/index.php click the IR spectrum button and a flot chart pops up Xavier On Wed, May 27, 2009 at 3:37 PM, Robert Hanson wrote: > Jeff, I'm using jQuery at > > http://chemapps.stolaf.edu/jmol/docs/exa

Re: [Jmol-users] Help with Jmol and jQuery?

2009-05-27 Thread Robert Hanson
Jeff, I'm using jQuery at http://chemapps.stolaf.edu/jmol/docs/examples-11/jmol-flot.htm and http://chemapps.stolaf.edu/jmol/docs/examples-11/jmol-flot-energy.htm I'm sure your problems do not arise from Jmol.js. The jQuery business is quite well modularized. Bob On Wed, May 27, 2009 at 11:

Re: [Jmol-users] Help with Jmol and jQuery?

2009-05-27 Thread Jeff Hansen
Andreas, It looks to me like some kind of timing issue. I've made a page with some jQuery stuff on it. It works. I add a Jmol applet. Everything still works. I then put a function that grabs data from the Jmol applet inside the (document).ready wrapper and put a call to that function

Re: [Jmol-users] Help with Jmol and jQuery?

2009-05-27 Thread Andreas Prlic
Hi Jeff, Now sure what's exactly the problem from your description, perhaps you can send some example code? We are using a mix between JQuery and self written javacript on the new RCSB-PDB web site: e.g. this page tracks the Jmol console output to a div and shows the command history: http://www.

[Jmol-users] Help with Jmol and jQuery?

2009-05-27 Thread Jeff Hansen
Does anyone have any experience using jQuery on a page with Jmol? I wanted to do this as it would greatly simplify some things I wanted to do. Unfortunately, none of the jQuery seems to be working. Let me explain. I can load a Jmol applet and structure and write javascript to manipulate

Re: [Jmol-users] Help with Jmol

2007-06-05 Thread Paul Pillot
For small molecules, you can use this website : http://davapc1.bioch.dundee.ac.uk/programs/prodrg/ It allows to design small molecules through the JRE applet and calculates a minimized energy model. Other websites such as Klotho or Drugbank are great for organic molecules. Paul David Kim a écrit

Re: [Jmol-users] Help with Jmol

2007-06-05 Thread Bob Hanson
David, you might also be interested in a site we developed here at St. Olaf, as it has about 1000 small molecules; http://www.stolaf.edu/depts/chemistry/mo/struc/ with associated model files in http://www.stolaf.edu/depts/chemistry/mo/struc/data/ Bob Hanson David Kim wrote: > Hello, > > My

Re: [Jmol-users] Help with Jmol

2007-06-05 Thread Angel Herraez
(I have answered to David through the developers list) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get

[Jmol-users] Help with Jmol

2007-06-05 Thread David Kim
Hello, My name is David Kim and I am currently an employee of the National Center for Supercomputing Applications. I am currently working in the Education department and we are trying to incorporate Jmol into one of our workshops. The program is called ICLCS and we are trying to assist teachers i