[Chimera-users] axes

Hernando J Sosa hernando.sosa at einsteinmed.org
Sat Jul 11 10:01:26 PDT 2020


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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimera-users/attachments/20200711/aa6c1d37/attachment-0001.html>


More information about the Chimera-users mailing list