I figured it out. Key command does that.

  It did not work at the beginning; then I realized I need a newer version of ChimeraX.

  Thanks,
  Ibrahim

From: Moustafa, Ibrahim M. <ria2@psu.edu>
Sent: Monday, March 15, 2021 3:14 PM
To: Tom Goddard <goddard@sonic.net>; ChimeraX Users Help <chimerax-users@cgl.ucsf.edu>
Subject: Re: [chimerax-users] radial coloring cryo map
 
Hi Tom,

  Another related question:

  How to create a key for the color radial?

  Thank you,
  Ibrahim

From: Tom Goddard <goddard@sonic.net>
Sent: Monday, March 15, 2021 2:31 PM
To: ChimeraX Users Help <chimerax-users@cgl.ucsf.edu>
Cc: Moustafa, Ibrahim M. <ria2@psu.edu>
Subject: Re: [chimerax-users] radial coloring cryo map
 
Hi Ibrahim,

  The trick is to specify the center of your EM virus map which apparently is not at 0,0,0.  Here is how to tell it to use the center of the bounding box of the map surface (that might be slightly off from the true center).

open 7294 from emdb
color radial #1 center #1

and here I also set the coloring distant range

color radial #1 center #1 range 130,180

You could instead adjust your map origin so that the center of the map is at 0,0,0 using menu Tools / Volume Data / Map Coordinates and adjusting the "Origin Index" -- usually it would need to be 1/2 the map size -- for instance in the above example the map is 280 by 280 by 280 grid points so origin index 140 might put the center at 0,0,0.  But the right value might be 139.5 or even 139 -- depends on how the map reconstruction was done, which grid point it used for the center of symmetry.

  Tom

Image with color range and center (color radial #1 center #1 range 130,180):

Image with center but no range (color radial #1 center #1) so it uses the full range from center of map to most radially distant point.


Image with no center specified (color radial #1):



On Mar 15, 2021, at 10:10 AM, Elaine Meng <meng@cgl.ucsf.edu> wrote:

Hi Ibrahim,
I can't give the exact command because I don't know the center of your system.  The command help is here:

<https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#distance>

So the form of the command could be something like

color radial <surf-model> center <center-spec> coordinateSystem <ref-model>

... where ways to specify the center are:

• x,y,z (three values separated by commas only) – an arbitrary point, interpreted in scene coordinates unless a different coordinateSystem is given
• an atom-spec – the center of the bounding box of the specified items
• cofr – the current center of rotation
• camera – the viewer position

None of those are the same as center of screen, unless you are using the center-of-rotation method that tracks center of view:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/cofr.html>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco




On Mar 15, 2021, at 9:36 AM, Moustafa, Ibrahim M. <ria2@psu.edu> wrote:

Dear all,

 I am trying to color a cryoem map radially in ChimeraX (to get something similar to surface color by radius in chimera).

I used the following comand:

color radial #model

However, the map is colored from one side to the other instead of radial coloring starting from the center. I tried to specify the center of the screen as 0,0,0 but that did not help.

   What is the correct command/options to do radial coloring in ChimeraX?

 Thanks for help,
 Ibrahim

_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users


_______________________________________________
ChimeraX-users mailing list
ChimeraX-users@cgl.ucsf.edu
Manage subscription:
https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users