[ChimeraX] Example scripts/commands

Display density map of specific regions. At here #1 is map, #2 is the coordinate

vol zone #1 near #2:159-178
(specific a region from coordinate to show on the density map)

vol zone #1 near #2:159-178 range 2.5
("range 2.5" means expand the density by 2.5 Å.)

vol zone #1 near #2/1 #2/2 #2/I #2/J #2/Z range 10
(select 5 chains including 1, 2, I, J and Z, by 10 Å range)

vol zone #1 near #2:383-392 #2:419-424 range 2.2
(select 2 regions in one time)

vol zone #1 near #2:135,230,237,239,260,317, 319,329 range 2.2
(select multiple residues in one time)

vol zone #1 near #2:LYS range 1.8
(select specified residues)

Rotate object/view

rotate the object along Y-axis by 120 degrees.
turn y 120
(roll does similarly)

Show “regions” of structure in cartoon, atoms or other modes

show #2:159-178
(show atoms of region 159-178 from coordinate #2 )
show #3:190-209 cartoon
(specify cartoon mode)Show "regions" of structure in cartoon, atoms or other modes

Remove dust

surface dust #1 size 6
(remove dust spots same or smaller than 6Å)

Save images with transparent background, defined pixel size

save  test5.png transparentBackground true pixelSize 0.02
transparentBackground true/false
pixelSize is a relative ratio to the windowsize. See the explanation in ChimeraX manual:
With perspective, the pixel size varies with depth, but pixelSize sets the value at half-depth (the midpoint along the line of sight). For example, if at half-depth the graphics window encloses a 400-Å by 300-Å rectangle, pixelSize 0.4 specifies image pixel dimensions of 1000 by 750.

Alter the map volume illustration

volume #1  style mesh level 0.7 transparency 0

Color maps

color zone #3 near #4 #5 dist 3.3
Color the map #3 near #4 and #5 structure, within distance 3.3 Å

color sample #1 map #2 palette bluered range 2,4
Color sample map #1 using map #2 (i.e.local resolution estimation), color gradient is blue-white-red (= bluered), the color range is 2 to 4. (see example below)

color sample #1 map #2  palette 2,blue:3,cyan:4,white
Color sample map #1 using map #2 (i.e.local resolution estimation), using 3 gradient color schemes, beginning at 2.0 in blue, then 3.0 in cyan and 4.0 and above in white

Color structures/coordinates

color #3 & helix red
color #3 & helix royalblue
color all helices of structure ID #3 by red or royalblue

color #1 & strand yellow
color #1 & strand tomato
color all sheets of structure ID #1 by yellow or tomato