Hello H?l?ne--

> I a wondering if there is a script in xplor-nih which transforms the
> calculated structures with dipolar couplings into their alignment frame
> (or any frame if its Euler angles are known)..
> 

Given Euler angles, you can generate a rotation matrix using e.g.

from pcsTools import ZYZRot
mat=ZYZRot(alpha,beta,gamma)

and then rotate your molecule using the opposite rotation

from atomSelAction import Rotate
AtomSel("not PSEUDO").apply(Rotate(transpose(mat)))

protocol.writePDB('rotated.pdb')

hope it works...

best regards--
Charles

-------------- next part --------------
--
Charles Schwieters     email:   Charles at Schwieters.org
                       www:     http://schwieters.org/cds
phone: (301) 402-4914  PGP key: http://schwieters.org/cds/pgp.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : 
http://dcb.cit.nih.gov/pipermail/xplor-nih/attachments/20121026/371e4df7/attachment.bin
 

Reply via email to