<p style="white-space:normal;">
Hi Eric,
</p>
<p style="white-space:normal;">
<br>
</p>
<p style="white-space:normal;">
The script works fantastically. I'm able to update the coordinates and keep all the settings the same. Thank you so much!
</p>
<p style="white-space:normal;">
<br>
</p>
<p style="white-space:normal;">
Best,
</p>
<p style="white-space:normal;">
Yixiao
</p>
<div>
</div>
<br>
<blockquote name="replyContent" class="ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0;">
-----Original Messages-----<br>
<b>From:</b><span id="rc_from">"Eric Pettersen" <pett@cgl.ucsf.edu></span><br>
<b>Sent Time:</b><span id="rc_senttime">2023-02-25 06:30:54 (Saturday)</span><br>
<b>To:</b> "张一小" <yzhang@mail.sioc.ac.cn><br>
<b>Cc:</b> "ChimeraX Users Help" <chimerax-users@cgl.ucsf.edu><br>
<b>Subject:</b> Re: [chimerax-users] Update pdb model in cxs session<br>
<br>
Hi Yixiao,
<div class="">
<span class="Apple-tab-span" style="white-space:pre;"> </span>Atomic information is stored in session files as compressed Python data structures, not in PDB format, so there is no practical way to make the swap you are envisioning by editing a session file. Nonetheless, using Python you could copy coordinates from the model you adjusted in Coot (assuming the adjustments didn't add/delete atoms) to the model restored from the session. I've attached a script (copycrds.py) that if you open it ChimeraX will define a command named "copycrds" that allows you to copy coordinates from one conformer to another (<i class="">e.g. </i>copycrds #1 to #2). The script and description is also on the <a _href="https://rbvi.github.io/chimerax-recipes/" class="">ChimeraX Recipes</a> page.
</div>
<div class="">
<br class="">
</div>
<div class="">
<div class="">
--Eric
</div>
<div class="">
<br class="">
</div>
<div class="">
<span class="Apple-tab-span" style="white-space:pre;"> </span>Eric Pettersen
</div>
<div class="">
<span class="Apple-tab-span" style="white-space:pre;"> </span>UCSF Computer Graphics Lab
</div>
<div class="">
<br class="">
</div>
<div class="">
</div>
</div>
<div>
<div style="word-wrap:break-word;-webkit-nbsp-mode:space;line-break:after-white-space;" class="">
<div class="">
<div class="">
</div>
<div>
<br class="">
<blockquote type="cite" class="">
<div class="">
On Feb 23, 2023, at 8:09 PM, 张一小 via ChimeraX-users <<a _href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>> wrote:
</div>
<br class="Apple-interchange-newline">
<div class="">
<p style="font-family:Arial;" class="">
Hi,
</p>
<p style="font-family:Arial;" class="">
I'm using ChimeraX to prepare figures. I saved a session containing several pdb files and maps. (The pdb files were saved in the CXS file right?) Now, I manually adjusted one of the models in Coot. Is there a way to update the old model with the new one in the session so that all the settings, such as colors, <span style="font-family:Arial;white-space:normal;" class="">views, </span>showing residues, hidden ribbons can be kept and applied?"
</p>
<p style="font-family:Arial;" class="">
<br>
</p>
<p style="font-family:Arial;" class="">
Thanks,
</p>
<p style="font-family:Arial;" class="">
Yixiao
</p>
_______________________________________________<br class="">
ChimeraX-users mailing list<br class="">
<a _href="mailto:ChimeraX-users@cgl.ucsf.edu" class="">ChimeraX-users@cgl.ucsf.edu</a><br class="">
Manage subscription:<br class="">
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>