
Looks good to me. Glad you got it to work. --Eric
On Jul 11, 2020, at 10:01 AM, Hernando J Sosa <hernando.sosa@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@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@cgl.ucsf.edu <mailto:Chimera-users@cgl.ucsf.edu> Manage subscription: https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users <https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users>