I have a working example at the following page :
http://librairiedemolecules.education.fr/outils/webapp_libmol/
Once the application is loaded, search for a random structure in the text slot
(for example "globine")
The structure will load and a new tab called "Séquence" should appear on top of
the right panel. If you click on that tab, you'll see the sequences of all the
chains with all the currently selected residues highlighted. You can click on
whichever residue (or chain) you'd like to deselect or re-select it.
In fact, each time this sequence widget is used, show residue commands are
issued in order to update the display of the current selection in the sequences.
(This widget also has an other interesting feature : it highlights in Jmol, the
residue currently hovered on the sequence display. )
You can have access to the source code by rightclicking.
I can't remember how I did the parsing of the currently selected residues ?!
Maybe the following command would suit your needs : it gives an array with
references to the currently selected residues : jmolScriptWaitAsArray("show
residue")[0][0][3].split("|")
Le 20 sept. 2011 à 11:08, Daniel Carbajo a écrit :
> Could you provide an example of that Paul?
>
> 2011/9/19 Paul Pillot <[email protected]>
> To know which residues are selected, you should send the script command "show
> residue" or "show sequence" and parse the response.
>
> Le 19 sept. 2011 à 19:11, Angel Herráez a écrit :
>
> >> So is ScriptCallback the correct way to get the information of the
> >> residues selected and the surfaces rendered?
> >
> > I'm not sure. Haven't tested this thoroughly.
> >
> >
> >
> > ------------------------------------------------------------------------------
> > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> > Learn about the latest advances in developing for the
> > BlackBerry® mobile platform with sessions, labs & more.
> > See new tools and technologies. Register for BlackBerry® DevCon today!
> > http://p.sf.net/sfu/rim-devcon-copy1
> > _______________________________________________
> > Jmol-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users