<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Helvetica,Arial,sans-serif'>
<p> </p>
<div> </div>
<p>Hello Tom,</p>
<p>Thank you for your quick response. I've checked the code in my plugin and the PDB saving works fine as I expected, even if I move the molecule.</p>
<p>My question is about saving the map. I tried to move it (rotate&translate unchecking the 'A' in the ModelPanel) and then save it with this code, but when I open the saved map, it is similar to the original one and does not keep the new coordinates. This could be a problem in my plugin, because I need to save them case of moving to get correct results in the fitting process.</p>
<p>So, how can I handle this situation? Is there any other way for saving the new map coordinates in the same way the PDB saving does? Hope I have explained myself correctly.</p>
<p>Thank you in advance and kind regards,</p>
<p>Pablo.</p>
<p> </p>
<p>El 20-04-2017 22:04, Tom Goddard escribió:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->Here is Python code to save a PDB and a density map, also available on the Chimera Python scripts web page:
<div class=""> </div>
<div class=""><span class="Apple-tab-span" style="white-space: pre;"> </span><a class="" href="http://plato.cgl.ucsf.edu/trac/chimera/wiki/Scripts">http://plato.cgl.ucsf.edu/trac/chimera/wiki/Scripts</a></div>
<div class=""> </div>
<div class=""> Tom</div>
<div class=""> </div>
<div class=""> </div>
<!-- html ignored --><br /><!-- head ignored --><!-- meta ignored -->
<div class=""> </div>
<div class=""><br class="" />
<div>
<blockquote class="">
<div class="">On Apr 20, 2017, at 2:09 AM, Pablo Solar Rodríguez <<a class="" href="mailto:pablo.solar@delogica.com">pablo.solar@delogica.com</a>> wrote:</div>
<div class="">
<div class="" style="font-size: 10pt; font-family: Helvetica,Arial,sans-serif;">
<div class=""> </div>
<div class="">Hi all, <br class="" /><br class="" />Hope everything is going fine!</div>
<div class=""> </div>
<div class="">In my plugin, it is necessary to save the PDB and the map (ccp4) to disk before the exhaustive fitting process is executed. Is there any simple and efficient way of doing this? I've checked the scripts and haven't found anything about this and I wouldn't like to have to replicate the code from the Chimera source (OpenSave and the relative to maps).<br class="" /><br class="" />This question is quite related to the previous one I made about copying a molecule.<br class="" /><br class="" />Thank you all in advance and kind regards from Spain.</div>
<div class=""> </div>
</div>
_______________________________________________<br class="" />Chimera-dev mailing list<br class="" /><a class="" href="mailto:Chimera-dev@cgl.ucsf.edu">Chimera-dev@cgl.ucsf.edu</a><br class="" />http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-dev</div>
</blockquote>
</div>
</div>
</blockquote>
</body></html>