<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Benjamin,<div class=""><br class=""></div><div class=""> The bit you are missing is that the rotation is about an origin that need not be the center of the map, often it is the corner of the map, it is specified in the MRC file header. The rotation and translation output by fitmap applies to coordinates in physical units (Angstroms) using the origin and voxel size (in Angstroms) of each of the maps. The rotation is applied about the origin and after that the translation is applied. I don't know what the origin is for your maps it is listed in Chimera Volume Viewer menu Features / Coordinates / Origin Index. Let's suppose it is says origin index is 0. That means the rotation is about the corner of the map (grid index 0,0,0) not the center. So your fit that rotates around the center by say 30 degrees will report a rotation by 30 degrees. Doing that rotation about the corner throws the center of the map far away, so there is a corresponding big translation to bring it back since your fit did not move the center much. The MRC file could instead have specified the origin at the center of the map, for instance map size 264 with origin index (131.5, 131.5, 131.5) would define the Angstrom x,y,z origin at the center, and fitmap report a different translation with that origin.</div><div class=""><br class=""></div><div class=""><span class="Apple-tab-span" style="white-space:pre"> </span>Tom</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jul 21, 2020, at 10:31 AM, Benjamin Basanta <<a href="mailto:bbasanta@scripps.edu" class="">bbasanta@scripps.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Hi,</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">I am trying to implement a python script that takes a rotation matrix and a translation vector from Chimeras' fitmap output, and applies those rotations and translations to particle 2D projections from electron micrographs. I have successfully applied the reverse rotation, getting 3D reconstructions that are almost aligned, except for the translation. I am having problems interpreting the values of the translation vector (4th column from fitmap output matrix). According to information I found online the units of this vector are angstroms, but the length of the translation vector output by fitmap would put my density near the edge of the particle box. My interpretation of the tranlation vector is the following: original_position + trans_vec = new_position.</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">For example, I have two densities (box size 264^3, angpix correctly set to 1.15Å), both near the center of the box, fitmap aligns them with what is clearly a small translation after rotation, yet I get the following fitmap output, with a translation vector of length >180Å:</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">> fitmap #1 #0 search 50<br class=""></span><div class="">Found 34 unique fits from 50 random placements having fraction of points inside contour >= 0.100 (50 of 50).<br class=""></div><div class="">Correlations and times found:<br class=""></div><div class="">0.9847 (1), 0.9722 (5), 0.9523 (3), 0.9044 (2), 0.8574 (2), 0.8567 (2), 0.8534 (1), 0.8503 (2), 0.849 (2), 0.832 (2), 0.8317 (2), 0.8274 (1), 0.8225 (3), 0.8205 (1), 0.8184 (1), 0.8062 (1), 0.8058 (1), 0.8043 (2), 0.8017 (1), 0.8007 (1), 0.7977 (1), 0.7809 (1), 0.78 (1), 0.7761 (1), 0.7566 (1), 0.7557 (1), 0.7555 (1), 0.7467 (1), 0.7431 (1), 0.7145 (1), 0.7062 (1), 0.6922 (1), 0.6049 (1), 0.6015 (1)<br class=""></div><div class="">Best fit found:<br class=""></div><div class="">Fit map run_it025_class003.mrc in map run_it025_class002.mrc using 70798 points<br class=""></div><div class=""> correlation = 0.9847, correlation about mean = 0.6976, overlap = 38.71<br class=""></div><div class=""> steps = 448, shift = 52.7, angle = 48.4 degrees<br class=""></div><div class="">Position of run_it025_class003.mrc (#1) relative to run_it025_class002.mrc (#0) coordinates:<br class=""></div><div class=""> Matrix rotation and translation<br class=""></div><div class=""> 0.98449497 -0.14831781 0.09365615 <span style="color: rgb(200, 38, 19);" class=""><b class="">14.82575334</b></span><br class=""></div><div class=""> 0.15479139 0.48339849 -0.86160636<span class="Apple-converted-space"> </span><span style="color: rgb(200, 38, 19);" class=""><b class="">179.12850738</b></span><br class=""></div><div class=""> 0.08251833 0.86274430 0.49886170<span class="Apple-converted-space"> </span><span style="color: rgb(200, 38, 19);" class=""><b class="">-54.91381047</b></span><br class=""></div><div class=""> Axis 0.98487954 0.00636148 0.17312375<br class=""></div><div class=""> Axis point 0.00000000 137.68459847 125.30174028<br class=""></div><div class=""> Rotation angle (degrees) 61.09376942<br class=""></div><span class=""> Shift along axis 6.23421857</span><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">Disallowing fitmap shift outputs an even larger translation, which I find odd:</span></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class="">> fitmap #1 #0 search 50 shift false<br class=""></span><div class="">Found 35 unique fits from 50 random placements having fraction of points inside contour >= 0.100 (35 of 50).<br class=""></div><div class="">Correlations and times found:<br class=""></div><div class="">0.8342 (1), 0.8038 (1), 0.7294 (1), 0.699 (1), 0.6862 (1), 0.685 (1), 0.6602 (1), 0.6548 (1), 0.6403 (1), 0.6318 (1), 0.629 (1), 0.6281 (1), 0.6145 (1), 0.6072 (1), 0.601 (1), 0.582 (1), 0.5695 (1), 0.5682 (1), 0.5529 (1), 0.544 (1), 0.5386 (1), 0.5317 (1), 0.5225 (1), 0.5152 (1), 0.5049 (1), 0.4984 (1), 0.4933 (1), 0.4718 (1), 0.4715 (1), 0.4698 (1), 0.4515 (1), 0.44 (1), 0.4243 (1), 0.4102 (1), 0.3598 (1)<br class=""></div><div class="">Best fit found:<br class=""></div><div class="">Fit map run_it025_class003.mrc in map run_it025_class002.mrc using 70798 points<br class=""></div><div class=""> correlation = 0.8342, correlation about mean = 0.1402, overlap = 24.51<br class=""></div><div class=""> steps = 224, shift = 3.75e-13, angle = 59.1 degrees<br class=""></div><div class="">Position of run_it025_class003.mrc (#1) relative to run_it025_class002.mrc (#0) coordinates:<br class=""></div><div class=""> Matrix rotation and translation<br class=""></div><div class=""> -0.99670235 -0.06634245 -0.04672373<span class="Apple-converted-space"> </span><span style="color: rgb(200, 38, 19);" class=""><b class="">320.71861709</b></span><br class=""></div><div class=""> -0.08010133 0.71238040 0.69720724<span class="Apple-converted-space"> </span><span style="color: rgb(200, 38, 19);" class=""><b class="">-47.18870041</b></span><br class=""></div><div class=""> -0.01296937 0.69865073 -0.71534534<span class="Apple-converted-space"> </span><span style="color: rgb(200, 38, 19);" class=""><b class="">162.45334925</b></span><br class=""></div><div class=""> Axis 0.03956990 -0.92529900 -0.37716838<br class=""></div><div class=""> Axis point 158.55880471 0.00000000 92.42576286<br class=""></div><div class=""> Rotation angle (degrees) 178.95488392<br class=""></div><span class=""> Shift along axis -4.91780500</span><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">I am clearly missing something, how should I interpret the translation vector output by fitmap?</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><br class=""></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Thank you for your help,</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class="">Benjamin</div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;" class=""><span class=""><br class=""></span></div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Chimera-users mailing list:<span class="Apple-converted-space"> </span></span><a href="mailto:Chimera-users@cgl.ucsf.edu" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Chimera-users@cgl.ucsf.edu</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Manage subscription:<span class="Apple-converted-space"> </span></span><a href="https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users</a></div></blockquote></div><br class=""></div></body></html>