<p>Hi Tom, </p><p>Thank you for the explanations. I did not touch the
maps after opening and ensured that the matrices reported by matrixget,
measure rotation and fitmap commands were identical. There was no origin
offset either. And yet if I apply these reported rotation and
translation, the translation is constantly off by what seems to be varying
value. I however found the way to achieve correct translation. The trick
is to apply rotation only first. Then fit this rotated map to the
reference again. The reported translation is correct this time.
</p><p>Still puzzled with why I first reported translation is not
equal to the second. </p><p>Cheers, </p><p>Oleksiy</p><p>> Hi
Oleksiy,<br />
><br />
> I’m not sure the cause of your MATLAB positioning
problem, but here is<br />
> an explanation of the Chimera matrices that may be helpful.<br />
><br />
> First the Chimera command matrixget gives the position in the
Chimera<br />
> scene including any mouse rotation and translation you did to view
the<br />
> models. So you would have to consider positioning matrices for
both<br />
> maps. Even when you first open the maps and don’t
move them, then fit<br />
> one in the other, both maps probably have non-zero translations
since<br />
> the initial centering of the view on the first map does a
translation.<br />
> So using matrixget is not a good way to get the position of one
map<br />
> relative to another, unless you are going to invert one of the
matrices<br />
> and multiply times the other. Instead use the
“measure rotationâ€<br />
> command (e.g. measure rotation #0 #1) which reports a matrix in
the<br />
> reply log giving the motion of map #1 relative to the coordinates of
map<br />
> #2.<br />
><br />
> Another thing to be aware of is that these 3x4 matrices contain a<br />
> rotation (the first 3 columns) and a translation (4th column) and
the<br />
> rotation is applied first, followed by the translation. The rotation
is<br />
> about center x,y,z = (0,0,0) but that is not necessarily grid
point<br />
> i=j=k=0 because the MRC file can have an origin offset. If you look
in<br />
> the Chimera volume viewer dialog coordinates panel (volume viewer
menu<br />
> Features / Coordinates) the origin grid index is given as
“Origin<br />
> indexâ€. That is the grid point the rotation is centered
on.<br />
><br />
> Tom<br />
><br />
><br />
>> On Apr 24, 2017, at 9:30 AM, Oleksiy Kovtun
<okovtun@mrc-lmb.cam.ac.uk><br />
>> wrote:<br />
>><br />
>><br />
>><br />
>><br />
>><br />
>> Dear all,<br />
>> I need to merge two maps in MATLAB using<br />
>> alignment data from chimera. Inputs: two maps of the same box
size,<br />
>> origin. I use matrixget - to report translation and rotation<br />
>> matrices for the aligned map . Translation operation works well
when<br />
>> transferred into MATLAB (briefly, translation matrix gets
converted in<br />
>> eulers and pased on to tom_rotate command in MATLAB, TOM
package).<br />
>> However the x y z translation coordinates (the fourth column top
to<br />
>> bottom in matrixget - output) are way off the real translation
when<br />
>> using tom_shift command in MATLAB, TOM.<br />
>> I found out that if I open the rotated map<br />
>> and fit it again, it gives close to correct translation<br />
>> matrix.<br />
>><br />
>> What's going wrong here? Does anyone have a<br />
>> solution how to overlay 3D arrays in MATLAB using
chimera-reported<br />
>> transformation matrices?<br />
>><br />
>> Many<br />
>> thanks,<br />
>> Oleksiy<br />
>><br />
>><br />
>><br />
>> Dr Oleksiy Kovtun<br />
>><br />
>> Research Fellow<br />
>><br />
>> Briggs group<br />
>><br />
>> MRC Laboratory of Molecular Biology<br />
>><br />
>> Francis Crick Avenue<br />
>><br />
>> Cambridge<br />
>><br />
>> CB2 0QH<br />
>><br />
>> UK<br />
>><br />
>><br />
>><br />
>> Tel: + 44 1223 267551<br />
>><br />
>> Email: okovtun@mrc-lmb.cam.ac.uk<br />
>><br />
>><br />
>><br />
>> Dr Oleksiy Kovtun<br />
>> Research Fellow<br />
>> Briggs group<br />
>> MRC Laboratory of Molecular Biology<br />
>> Francis Crick Avenue<br />
>> Cambridge<br />
>> CB2 0QH<br />
>> UK<br />
>><br />
>> Tel: + 44 1223 267551<br />
>> Email: okovtun@mrc-lmb.cam.ac.uk<br />
>><br />
>>
<untitled-[2].html>_______________________________________________<br
/>
>> Chimera-users mailing list: Chimera-users@cgl.ucsf.edu<br />
>> Manage subscription:<br />
>> http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users<br />
><br />
><br />
<br />
<br />
Dr Oleksiy Kovtun<br />
Research Fellow<br />
Briggs group<br />
MRC Laboratory of Molecular Biology<br />
Francis Crick Avenue<br />
Cambridge<br />
CB2 0QH<br />
UK<br />
<br />
Tel: + 44 1223 267551<br />
Email: okovtun@mrc-lmb.cam.ac.uk</p>