<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Feb 10, 2012, at 1:55 PM, Julian Chen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">hi Eric,<div><br></div><div>First of all, hello, I was in Stroud's lab for many years, until 2003, when I left SF. </div></blockquote><div><br></div>Hi Julien!</div><div><br><blockquote type="cite"><div>I am in a rather interesting situation where we have been dealing with neutron and X-ray refinement, and we have been able to do anisotropic refinement on selected hydrogen atoms, from having high resolution neutron data. I've been using Chimera.</div> <div><br></div><div>I am still somewhat confused as to the meaning of the six ANISOU terms, I understand that the first three describe the three orthogonal axes of the ellipsoid, and that the last three somehow relate this to the coordinate space. </div></blockquote><div><br></div>The six terms actually describe a 3x3 matrix that is symmetric about the diagonal. The eigenvectors and eigenvalues of that matrix are the atomic displacement axes and the mean squares of the displacements respectively. The first thing to know is that the values shown in the ANISOU records are scaled by 10**4. The other thing to know is that the six numbers correspond to these positions in the matrix: 1,1 2,2 3,3 1,2 1,3 2,3. Since the eigenvalues are mean squares, one typically works with the square roots of the eigenvalues.</div><div><br><blockquote type="cite"> <div>Specifically, I want to look at the ANISOU for the H/D atoms, and want to try to correlate it to its bonded neighbor (the C or the N or the O). If possible, I'd like to extract some vector for the 'directionality' of the aniso atoms and relate them to one another. I want to see if the vibrational motions of the hydrogen are correlated to the vibrational motions of its bonded neighbor. Is there anything in CHIMERA that could do something like this, or some appropriate mathematical formula that could output the right sort of information? The ellipsoids option in the program gives a qualitative description, but I'd like to get something a bit more quantitative in nature.</div></blockquote><div><br></div>Depending on how comfortable you are with programming in Python, you could either write your own external code based on the info above, or write something that runs in Chimera. The latter does have the advantage of you not having to write PDB-parsing code an so on.</div><div><br></div><div>In Chimera, atoms with corresponding ANISOU records have an 'anisoU' attribute which is a 3x3 matrix (the matrix is often referred to as 'U' in the literature, hence ANISOU record). This code snippet (basically copied from the Chimera's Aniso module) will extract the eigenvectors/values for an atom and take the root of the values:</div><div><br></div><div>from numpy.linalg import svd</div><div>ignore, lengths, axes = svd(atom.anisoU)</div><div>from numpy import sqrt</div><div>lengths2 = sqrt(lengths)</div><div><br></div><div>Let me know if you need more info or help with scripting.</div><div><br></div><div>--Eric</div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>Eric Pettersen</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> <span class="Apple-converted-space"> </span></span>UCSF Computer Graphics Lab</font></p><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="5" style="font: 16.0px Helvetica"><span class="Apple-converted-space"> </span><a href="http://www.cgl.ucsf.edu">http://www.cgl.ucsf.edu</a></font></p><br class="Apple-interchange-newline"></div></span> </div><br></body></html>