[chimerax-users] Update pdb model in cxs session

Eric Pettersen pett at cgl.ucsf.edu
Fri Feb 24 14:30:54 PST 2023


Hi Yixiao,
	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 (e.g. copycrds #1 to #2).  The script and description is also on the ChimeraX Recipes <https://rbvi.github.io/chimerax-recipes/> page.

--Eric

	Eric Pettersen
	UCSF Computer Graphics Lab



> On Feb 23, 2023, at 8:09 PM, 张一小 via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Hi,
> 
> 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, views, showing residues, hidden ribbons can be kept and applied?"
> 
> 
> 
> Thanks,
> 
> Yixiao
> 
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20230224/c7a1a943/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copycrds.py
Type: text/x-python-script
Size: 1778 bytes
Desc: not available
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20230224/c7a1a943/attachment.bin>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimerax-users/attachments/20230224/c7a1a943/attachment-0001.html>


More information about the ChimeraX-users mailing list