<div dir="ltr"><div>Thanks for the clarification, Tom, and sorry I didn't see your message right away.</div><div><br></div><div>Is the translation from measure rotation also in coordinate units or grid units? For measure center I know that for volumes the coordinates are always in grid units (but in Angstroms for the volume eraser and sets of atoms).<br></div><div><br></div><div>The cryo-EM processing programs predominantly use the convention that the origin of an image or volume is N // 2, so the indices are in [0, N - 1] and the coordinates are in [-N // 2, N // 2 - 1], i.e. there is one more voxel on the negative side of the axes and the coordinate (0, 0, 0) is defined as the center of the pixel at index N // 2.<br></div><div><br></div><div>Is Chimera using the convention that the pixels are at the half-integer coordinates? It's the difference between using N // 2 and N // 2 +/- 0.5 to form the origin when recovering the translation around (0, 0, 0) using the formula R * O + T - O. (And assuming the origin index is 0, since none of the processing packages are setting a different value in output file headers).<br></div><div><br></div><div>Best,</div><div>-da<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 10, 2019 at 12:29 PM Tom Goddard <<a href="mailto:goddard@sonic.net">goddard@sonic.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Daniel,<div><br></div><div> The measure rotation command and fit in map output reports a transformation matrix that is a rotation and a translation that maps the coordinates of one model to the coordinates of another model, xyz -> R*xyz + T where R is the 3x3 rotation matrix and T is the translation vector. These are listed as a 3x4 matrix with the first 3 columns being the rotation and the 4th column being the translation.</div><div><br></div><div> The "origin" of density map is the position in the volume coordinate system where x,y,z = 0,0,0. This is often *not* (boxsize/2, boxsize/2, boxsize/2). For instance, for a box size of 100,100,100 the origin may be at grid point 49,49,49 instead of 50,50,50. The exact center of the volume is at grid point 49.5,49.5,49.5 in this case where grid indices start at 0, ie 0-99.</div><div><br></div><div> An MRC file has no header value that says whether the origin is set. In other words, in the MRC file, the origin is always set, even if it is 0,0,0. In fact there are two origins specified in the MRC header. Chimera usually uses the xorigin, yorigin, zorigin values</div><div><br></div><div><span class="gmail-m_1224986664374409910Apple-tab-span" style="white-space:pre-wrap"> </span><a href="http://www2.mrc-lmb.cam.ac.uk/research/locally-developed-software/image-processing-software/#image" target="_blank">http://www2.mrc-lmb.cam.ac.uk/research/locally-developed-software/image-processing-software/#image</a></div><div><br></div><div>for cryoEM maps, but for CCP4 files which is nearly an identical format but used mostly for x-ray crystallography it will instead use the nxstart, nystart, nzstart header values. Whether a file is MRC or CCP4 is given by word 53 of the header.</div><div><br></div><div> The origin being used by Chimera is reported in the Volume Viewer, menu Features / Coordinates, called Origin Index and is grid index units (not Angstroms) with grid indices starting at 0.</div><div><br></div><div><span class="gmail-m_1224986664374409910Apple-tab-span" style="white-space:pre-wrap"> </span>Tom</div><div><br><div><br><blockquote type="cite"><div>On Apr 9, 2019, at 4:17 PM, Daniel Asarnow wrote:</div><br class="gmail-m_1224986664374409910Apple-interchange-newline"><div><div dir="ltr"><div>Hi,</div><div>What's the origin for the rotation/translation output by measure rotation or fit-in-map results? If the origin index is 0, is the transformation calculated around (0, 0, 0)?</div><div><br></div><div>I'm extending my software for transforming single-particle EM alignment parameters to accept a transformation matrix copy-pasted from Chimera and am having a slight difficulty. For most EM maps, the origin MRC header is not set, and the origin appears to be (0,0,0). Thus, if R and V are the rotation and translation from Chimera, the formula R * O + V - O where O is the real origin (boxsize / 2, boxsize / 2, boxsize / 2) should give the correct translation. However, it's exactly one pixel short.</div><div><br></div><div>Best,</div><div>-da<br></div></div>
_______________________________________________<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/mailman/listinfo/chimera-users</a><br></div></blockquote></div><br></div></div></blockquote></div>