Eric and Luciano,
  
 I believe Eric is quite correct on this point. To avoid some browser crash 
problems that I was having, I use JSmol.min.js, and I don't think 
jmolEvaluate is available via this route (Bob???), hence my use of 
callbacks.
  
 My use of JSmol.min.js goes back a way. I'm not sure if this is still 
something that I need to do.
  
 Otis

  
  

----------------------------------------
 From: "Eric Martz" <ema...@microbio.umass.edu>
Sent: Sunday, January 18, 2015 5:21 PM
To: "Luciano Abriata" <luciano_abri...@yahoo.com>, 
jmol-users@lists.sourceforge.net
Subject: Re: [Jmol-users] JSmol: how to put a protein's sequence into a 
javascript variable   
Dear Luciano,

Here is my suggestion. I may not have all this right and I am certainly 
willing to be corrected and learn from others!

When javascript wants to get information from Jmol about the currently 
loaded model(s), I think the best method is, in javascript:

jmolEvaluate("jmol expression");

This function is defined in Jmol2.js, packaged with the Jmol download. The 
value of the jmol expression will be returned to javascript.

This Jmol command reports the sequence in one-letter code, separately for 
each chain:

print {protein}.find("sequence")

So in javascript, I think this will work (but I haven't tested it):

jmolEvaluate("{chain=a}.find(\"sequence\")");
    


------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to