<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Hi Tom,</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>yes, the Matlab script produces the same voxel size, origin and map size. The same amount of padding is added, too. The density values are different, though.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>So, the two maps have the same origin index in the </span><span style="font-size: 12pt;">Chimera volume dialog
Coordinates pane, they look identical but they are still shifted away.</span></div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 12pt;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 12pt;">Thanks, Catalin</span></div><div style="color: rgb(0, 0, 0); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 12pt;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style:
normal;"><span style="background-color: transparent; font-size: 12pt;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-size: 12pt;"> </span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Tom Goddard <goddard@sonic.net><br> <b><span style="font-weight: bold;">To:</span></b> Catalin Buiu <cbuiu@yahoo.com> <br><b><span
style="font-weight: bold;">Cc:</span></b> "chimera-users@cgl.ucsf.edu" <chimera-users@cgl.ucsf.edu> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, July 15, 2013 8:56 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Chimera-users] molmap and origin index<br> </font> </div> <div class="y_msg_container"><br><div id="yiv9106736562"><div>Hi Catalin,<div><br></div><div> The Matlab calculation of the map is where the problem lies. I don't know what Matlab script you are using so it is hard for me to advise. I would not expect the Matlab script to produce the same voxel size, origin and map size as the Chimera molmap command. Do you tell Matlab the voxel size, origin and map size to calculate? If not, why would you expect them to be the same values as the Chimera molmap command? The molmap command adds padding around the molecule when computing the map and I wouldn't expect the
Matlab script to add the same amount of padding. So the Matlab output wouldn't have the same origin grid index.</div><div><br></div><div> What you need to know is for each Matlab map grid index i,j,k what is the corresponding position x,y,z in the PDB atom coordinates used to generate the map. Then the matlab script needs to write the MRC xorigin, yorigin, zorigin as the atom x,y,z position for grid index 0,0,0. Alternatively if you cannot change the Matlab script, you can change the "Origin index" in the Chimera volume dialog Coordinates pane. This value should be the i,j,k grid index that corresponds to atom coordinates x,y,z = (0,0,0) and those grid indices can be non-integer.</div><div><br></div><div><span class="yiv9106736562Apple-tab-span" style="white-space:pre;"> </span>Tom</div><div><br></div><div><br></div><div><br></div><div><div><div>On Jul 14, 2013, at 7:26 AM, Catalin Buiu wrote:</div><br
class="yiv9106736562Apple-interchange-newline"><blockquote type="cite"><div><div style="background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><div><span>Hi Tom,</span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>thanks for your reply.</span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Now the both maps (molmap and Matlab) have the same origin index, the same
voxel size and still the Matlab map is shifted away from the other map (and atomic structure). Can you tell me a possible reason for that?</span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Thanks again,</span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>Catalin</span></div><div style="font-size:16px;"><span><br></span></div><div style="font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color:
transparent; font-style: normal;"><span><br></span></div><div><br></div> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Tom Goddard <<a rel="nofollow" ymailto="mailto:goddard@sonic.net" target="_blank" href="mailto:goddard@sonic.net">goddard@sonic.net</a>><br> <b><span style="font-weight:bold;">To:</span></b> Catalin Buiu <<a rel="nofollow" ymailto="mailto:cbuiu@yahoo.com" target="_blank" href="mailto:cbuiu@yahoo.com">cbuiu@yahoo.com</a>> <br><b><span style="font-weight:bold;">Cc:</span></b> "<a rel="nofollow" ymailto="mailto:chimera-users@cgl.ucsf.edu" target="_blank" href="mailto:chimera-users@cgl.ucsf.edu">chimera-users@cgl.ucsf.edu</a>" <<a rel="nofollow"
ymailto="mailto:chimera-users@cgl.ucsf.edu" target="_blank" href="mailto:chimera-users@cgl.ucsf.edu">chimera-users@cgl.ucsf.edu</a>> <br> <b><span style="font-weight:bold;">Sent:</span></b> Monday, July 8, 2013 11:46 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Chimera-users] molmap and origin index<br> </font> </div> <div class="yiv9106736562y_msg_container"><br><div id="yiv9106736562"><div>Hi Catalin,</div><div><br></div><div> The Chimera molmap command creates a density map for a molecule using a grid that has its 3 axes aligned with the x, y, and z axes of the molecular data (atom coordinates) with padding 3 times the requested map resolution. This is described in the molmap documentation</div><div><br></div><span class="yiv9106736562Apple-tab-span" style="white-space:pre;"> </span><a rel="nofollow" target="_blank"
href="http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/molmap.html">http://www.cgl.ucsf.edu/chimera/docs/UsersGuide/midas/molmap.html</a><div><br></div><div>The origin of the grid equals the x,y,z coordinates of the grid point at grid index 0,0,0. That origin position (floating point values) is saved in an MRC 2000 file in the
xorigin, yorigin, zorigin header fields. </div><div><br></div><div><span class="yiv9106736562Apple-tab-span" style="white-space:pre;"> </span><a rel="nofollow" target="_blank" href="http://www2.mrc-lmb.cam.ac.uk/image2000.html">http://www2.mrc-lmb.cam.ac.uk/image2000.html</a></div><div><br></div><div>It cannot be saved in the nxstart,nystart,nzstart header fields since those are integer values and can't accomodate the exact floating point origin. Here's the Chimera Python source code that reads MRC files if you want more details of how that is handled.</div><div><br></div><div><span class="yiv9106736562Apple-tab-span" style="white-space:pre;"> </span><a rel="nofollow" target="_blank" href="http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/VolumeData/mrc/mrc_format.py">http://plato.cgl.ucsf.edu/trac/chimera/browser/trunk/libs/VolumeData/mrc/mrc_format.py</a></div><div><br></div><div>
Tom</div><div><br><div><br></div><div><br><div><div>On Jul 8, 2013, at 1:08 PM, Catalin Buiu wrote:</div><br class="yiv9106736562Apple-interchange-newline"><blockquote type="cite"><div><div style="background-color:rgb(255, 255, 255);font-family:'times new
roman', 'new york', times, serif;font-size:12pt;"><div><font face="times new roman, new york, times, serif">Hello all,</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">I have the following problem: when I use molmap to generate </font></div><div><font face="times new roman, new york, times, serif">a map from an atomic structure, the result is fine: both align.</font></div><div><font face="times new roman, new york, times, serif">When I use another (Matlab) program to generate the map, the two,</font></div><div><font face="times new roman, new york, times, serif">when opened in Chimera do not align anymore.</font></div><div><font face="times new roman, new york, times, serif">My question is how molmap generates an origin index such that</font></div><div><font face="times new
roman, new york, times, serif">both the map and the structure do align and how Chimera reads (and converts)</font></div><div><font face="times new roman, new york, times, serif">the xyz origin data from the MRC file?</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Thank you.</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">Catalin Buiu</font></div><div><font face="times new roman, new york, times, serif">University of Bucharest, Romania</font></div></div></div>_______________________________________________<br>Chimera-users mailing list<br><a rel="nofollow" ymailto="mailto:Chimera-users@cgl.ucsf.edu" target="_blank"
href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a><br>http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users<br></blockquote></div><br></div></div></div><br><br></div> </div> </div> </div></div>_______________________________________________<br>Chimera-users mailing list<br><a rel="nofollow" ymailto="mailto:Chimera-users@cgl.ucsf.edu" target="_blank" href="mailto:Chimera-users@cgl.ucsf.edu">Chimera-users@cgl.ucsf.edu</a><br>http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users<br></blockquote></div><br></div></div></div><br><br></div> </div> </div> </div></body></html>