[cctbxbb] Conversion from symmetry operation to matrix

Graeme.Winter at Diamond.ac.uk Graeme.Winter at Diamond.ac.uk
Tue Jul 12 07:06:12 PDT 2011


Dear All,

For a little while now I have been using some cctbx jiffy code to convert from symmetry operations to matrices to help with testing reindexing data. This works as

def symop_to_mat(symop):
    return matrix.sqr(sgtbx.rt_mx(
        sgtbx.parse_string(symop)).as_double_array()[:9]).transpose().elems

Which is plenty simple. However it just exploded when given "1/2*z,-y+1/2*z,x"  - reasonably really as this is not a rotation. It is however a valid reindexing operation to go from C2 to P1.

Does anyone have code which will handle this general transformation from a reindexing operation to a matrix, which will cope with the fact that the resulting matrix is not RT? I had a little jiffy I wrote using ccp4f lib (symop2mat - you can probably see it!) but I am trying to do away with things like that and do everything properly...

Many thanks in advance,

Graeme

Dr. Graeme Winter
Senior Software Scientist
Diamond Light Source

+44 1235 778091 (work)
+44 7786 662784 (work mobile)





-- 

This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.

Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 

Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.

Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

 







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phenix-online.org/pipermail/cctbxbb/attachments/20110712/4e3a0d20/attachment.htm>


More information about the cctbxbb mailing list