[Chimera-users] axes
Eric Pettersen
pett at cgl.ucsf.edu
Mon Jul 13 16:30:52 PDT 2020
Looks good to me. Glad you got it to work.
--Eric
> On Jul 11, 2020, at 10:01 AM, Hernando J Sosa <hernando.sosa at einsteinmed.org> wrote:
>
> Thanks Eric, I got it to work now. To summarize the code to get the axis information from an atom spec string looks like this. Please let me know if there is a better or simpler way to do it.
>
> #-----------------------------------
> import StructMeasure
>
> atomspec = '#0:14-37.A at CA'
> atoms = chimera.selection.OSLSelection(atomspec).vertices()
> xyzs = chimera.numpyArrayFromAtoms(atoms)
> myaxis = StructMeasure.axis(xyzs)
> print myaxis
> #-------------------------------------
>
> Note that I had to import StructMeasure.
>
> Best
>
> H.
>
>
> _______________________________________________
> Chimera-users mailing list: Chimera-users at cgl.ucsf.edu <mailto:Chimera-users at cgl.ucsf.edu>
> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20200713/c7a7c9ef/attachment.html>
More information about the Chimera-users
mailing list