<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">That's great!  You're welcome.<div class=""><br class=""></div><div class="">--Eric<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 27, 2023, at 9:34 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="white-space:normal;" class="">
        Hi Eric,
</p><p style="white-space:normal;" class="">
        <br class="">
</p><p style="white-space:normal;" class="">
        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;" class="">
        <br class="">
</p><p style="white-space:normal;" class="">
        Best,
</p><p style="white-space:normal;" class="">
        Yixiao
</p>
<div class="">
</div>
<br class="">
<blockquote name="replyContent" class="ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0;">
        -----Original Messages-----<br class="">
<b class="">From:</b><span id="rc_from" class="">"Eric Pettersen" <<a href="mailto:pett@cgl.ucsf.edu" class="">pett@cgl.ucsf.edu</a>></span><br class="">
<b class="">Sent Time:</b><span id="rc_senttime" class="">2023-02-25 06:30:54 (Saturday)</span><br class="">
<b class="">To:</b> "张一小" <<a href="mailto:yzhang@mail.sioc.ac.cn" class="">yzhang@mail.sioc.ac.cn</a>><br class="">
<b class="">Cc:</b> "ChimeraX Users Help" <<a href="mailto:chimerax-users@cgl.ucsf.edu" class="">chimerax-users@cgl.ucsf.edu</a>><br class="">
<b class="">Subject:</b> Re: [chimerax-users] Update pdb model in cxs session<br class="">
<br class="">
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 class="">
                <div style="word-wrap:break-word;-webkit-nbsp-mode:space;line-break:after-white-space;" class="">
                        <div class="">
                                <div class="">
                                </div>
                                <div class="">
                                        <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 class="">
                                                        </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="">
<a href="https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users" class="">https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users</a><br class="">
                                                </div>
                                        </blockquote>
                                </div>
<br class="">
                        </div>
                </div>
        </div>
</blockquote>_______________________________________________<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></body></html>