<div dir="ltr">Hi Eric,<div><br></div><div>Thank you so much for the links and the explanation!</div><div><br></div><div>- Catherine</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 30, 2017 at 7:13 PM, Eric Pettersen <span dir="ltr"><<a href="mailto:pett@cgl.ucsf.edu" target="_blank">pett@cgl.ucsf.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Chimera simply calls numpy.linalg.svd (singular value decomposition) on an array of the xyz coordinate (after the centroid position has been subtracted from them). The documentation for numpy.linalg.svd is here:<div><br></div><div><a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.linalg.svd.html" target="_blank">https://docs.scipy.org/doc/<wbr>numpy/reference/generated/<wbr>numpy.linalg.svd.html</a></div><div><br></div><div>It looks like it in turn calls LAPACK routine_gesdd, which is documented, in general, here:</div><div><br></div><div><a href="https://software.intel.com/en-us/mkl-developer-reference-c-singular-value-decomposition-lapack-computational-routines?language=es" target="_blank">https://software.intel.com/en-<wbr>us/mkl-developer-reference-c-<wbr>singular-value-decomposition-<wbr>lapack-computational-routines?<wbr>language=es</a></div><div><br></div><div>It’s an implementation of singular value decomposition, described in general terms here:</div><div><br></div><div><a href="https://en.wikipedia.org/wiki/Singular_value_decomposition#Relation_to_eigenvalue_decomposition" target="_blank">https://en.wikipedia.org/wiki/<wbr>Singular_value_decomposition#<wbr>Relation_to_eigenvalue_<wbr>decomposition</a></div><div><br></div><div>The math is pretty complicated.</div><div><br></div><div>—Eric</div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><span class="m_-7273335411756846013Apple-tab-span" style="white-space:pre-wrap"> </span>Eric Pettersen</div><div><span class="m_-7273335411756846013Apple-tab-span" style="white-space:pre-wrap"> </span>UCSF Computer Graphics Lab</div><div><br></div></div><br class="m_-7273335411756846013Apple-interchange-newline"><br class="m_-7273335411756846013Apple-interchange-newline">
</div>
<br><div><blockquote type="cite"><div><div class="h5"><div>On Jun 30, 2017, at 10:09 AM, Catherine Jenifer Rajam Rajendran <<a href="mailto:catrajen@umail.iu.edu" target="_blank">catrajen@umail.iu.edu</a>> wrote:</div><br class="m_-7273335411756846013Apple-interchange-newline"></div></div><div><div><div class="h5"><div dir="ltr">Hi Elaine,<div><br></div><div>Thank you for helping me understand it. Can you give me more details about how PDB file is decomposed to find the plane and normal. Like, how the eigenvectors are calculated from the atomic coordinates.</div><div><div><br></div><div>Thanks,</div><div>Catherine</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 29, 2017 at 7:23 PM, Elaine Meng <span dir="ltr"><<a href="mailto:meng@cgl.ucsf.edu" target="_blank">meng@cgl.ucsf.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Jun 29, 2017, at 2:14 PM, Catherine Jenifer Rajam Rajendran <<a href="mailto:catrajen@umail.iu.edu" target="_blank">catrajen@umail.iu.edu</a>> wrote:<br>
><br>
> Hi,<br>
><br>
Hi Catherine,<br>
<span><br>
> I am trying to understand how the plane is defined in chimera. Can you please help me with that?<br>
><br>
> "Define a plane for the specified atoms. Eigenvectors/values are calculated from the atomic coordinates after subtracting the position of their non-mass-weighted centroid. The plane is anchored at the centroid and aligned with the first two eigenvectors (the third eigenvector is normal to the plane)."<br>
><br>
> Define a plane for the specified atoms.<br>
</span>> - specified atoms, i use 'sel protein’<br>
<br>
OK, so if using the graphical tool (Axes/Planes/Centroids) it uses the selected atoms, meaning all the protein atoms if you had used “sel protein.” If using the “define” command, you can just specify “protein” directly in the command to use all the protein atoms, without making a selection.<br>
<span>><br>
> Eigenvectors/values are calculated from the atomic coordinates<br>
> - atomic coordinates, so x,y,z coordinates of all atoms. (Can you please explain a bit more like how and what you read from PDB file to define plane).<br>
<br>
</span>For the atoms you specified, there are ATOM lines in the PDB file with X,Y,Z coordinates. Each atom is a point in 3D (X,Y,Z).<br>
<span><br>
><br>
> after subtracting the position of their non-mass-weighted centroid<br>
> - how is non-mass-weighted centroid is calculated<br>
<br>
</span>It is the centroid of the points (atomic positions), not sure how else to say it. The average position of all the atomic points is the centroid. Non-mass-weighted just means all the atomic points are treated equally, instead of heavier atoms being treated as more important than lighter atoms.<br>
<span>><br>
> The plane is anchored at the centroid<br>
> - which centroid is this? Is the protein moved to the origin(0,0,0) position?<br>
><br>
</span>The centroid is the same centroid as in your previous question. Nothing is moved.<br>
><br>
> Thanks,<br>
> Catherine<br>
<br>
You’re welcome. I hope this helps,<br>
Elaine<br>
----------<br>
Elaine C. Meng, Ph.D.<br>
UCSF Chimera(X) team<br>
Department of Pharmaceutical Chemistry<br>
University of California, San Francisco<br>
<br>
<br>
<br>
</blockquote></div><br></div></div></div>
______________________________<wbr>_________________<br>Chimera-users mailing list: <a href="mailto:Chimera-users@cgl.ucsf.edu" target="_blank">Chimera-users@cgl.ucsf.edu</a><br>Manage subscription: <a href="http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" target="_blank">http://plato.cgl.ucsf.edu/<wbr>mailman/listinfo/chimera-users</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>