[chimerax-users] Color Model by Another Model

Tom Goddard goddard at sonic.net
Fri Jan 14 19:51:42 PST 2022


Hi Jacob,

Do the corresponding chains have the same chain ID letters (ie A matches A, B matches B, ...).  The "color bychain" always gives the same color for the same chain id so if you used that they would get the same colors.  Similarly "color bypolymer" gives the same color to chains with the same sequence, so if your matching chains had the same sequence that would give the same colors.

But if you gave custom colors to the chains then there is no command to copy them.  Some Python code could do it.  Here is an example of that.

	https://rbvi.github.io/chimerax-recipes/copycolors/copycolors.html

  Tom



> On Jan 14, 2022, at 5:57 PM, Anderson, Jacob via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> I have a use case where I would like to color chains of model X by the chains of model Y (they are duplicates). What might be the best way to do this?
> 
> For example, I thought there may be a way to run something like: "info colors #1 byChain" to get the colors of all chains printed to the log like "#1/A blue, #1/B red . . .". Then one could easily change #1 to #2 with sed in a text editor.  Does a tool like that exist in ChimeraX? Or has might anyone have tips for coloring a model's chain by another models chains?
> 
> jacob
> 
> 
> 
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu <mailto:ChimeraX-users at cgl.ucsf.edu>
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users <https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20220114/6df4d098/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6s8e_6s6b.png
Type: image/png
Size: 880733 bytes
Desc: not available
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20220114/6df4d098/attachment-0001.png>


More information about the ChimeraX-users mailing list