Great, that's exactly what I was looking for. Thanks!

Nelson Liu
On Thu Jan 08 2015 at 3:50:31 AM Rolf Huehne <rhue...@fli-leibniz.de> wrote:

> On 01/08/2015 12:22 PM, Nelson Liu wrote:
> > Good Morning,
> > Is there any way to get details about currently selected atoms in the
> > console? I know you can use labels, but they are a bit hard to read. e.g.
> > if I selected all beta pleated sheets in a protein (select sheets), how
> > could I output the residue #'s occupied by the beta pleated sheets as
> well
> > as their constituent amino acids?
> >
> You can customize labels to your needs.
>
> The following  example uses the '.label()' function instead of the
> 'label' command:
>
>    print {selected and *.CA}.label("%5[resno] %4[group]")
>
> I added the 'and *.CA' to get only a single label for each residue (for
> the alpha carbon atom).
>
> If you want a single line as output you could add the '.join()' function:
>
>    print {selected and *.CA}.label("%[resno]:%[group]").join(", ")
>
> Please look at the 'label' documentation
> http://jena3d.fli-leibniz.de/doc/jmol_scripting/index.htm#label for more
> details.
>
> Regards,
> Rolf
>
> --
>
> Rolf Huehne
> Postdoc
>
> Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI)
> Beutenbergstrasse 11
> 07745 Jena, Germany
>
> Phone:   +49 3641 65 6205
> Fax:     +49 3641 65 6210
> E-Mail:  rhue...@fli-leibniz.de
> Website: http://www.fli-leibniz.de
>
>            Scientific Director: Prof. Dr. K. Lenhard Rudolph
>         Head of Administration: Dr. Daniele Barthel
> Chairman of Board of Trustees: Dennys Klein
>
> VAT No: DE 153 925 464
> Register of Associations: No. 230296, Amtsgericht Jena
> Tax Number: 162/141/08228
>
>
> ------------------------------------------------------------
> ------------------
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to