Changes between Initial Version and Version 1 of BfactorClip


Ignore:
Timestamp:
Sep 9, 2020, 5:24:01 PM (6 years ago)
Author:
meng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BfactorClip

    v1 v1  
     1= Color a Sliced Surface by B-factor =
     2
     3Here is how to color a molecular surface by atomic B-factor,
     4including the planar cap where the surface is sliced by a clipping plane.
     5
     6The following script clips everything, then turns off clipping
     7for the atoms so that they can protrude from the sliced surface.
     8The atoms of the protein are then colored by B-factor with
     9[http://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#byattribute
     10color byattribute]. This automatically colors their patches on the outer
     11surface of the protein, but not the sliced surface.
     12The atoms themselves are also colored even though they are not displayed,
     13and their coloring is then used by
     14[http://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#zone
     15color zone] to color patches in the sliced surface face by the nearest atom.
     16
     17{{{
     18        open 2gbp
     19surface
     20turn y 70
     21clip front 0 position :bgc
     22clip model #!1 false
     23hide ~ligand target ar
     24view ligand :<8 clip false
     25style ligand ball
     26color C white targ a
     27graphics bgColor white
     28graphics silhouette true
     29color byattribute bfactor protein palette blue:red:yellow:white
     30wait 1
     31color zone #1.2.1 near protein distance 3 sharp t update t
     32}}}
     33
     34The [http://rbvi.ucsf.edu/chimerax/docs/user/commands/wait.html
     35wait 1] is needed only in the context of a command file,
     36to force drawing the graphics to create the surface cap before it is colored.
     37
     38The 'update' option of
     39[http://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#zone
     40color zone] allows subsequently adjusting the clipping plane position
     41without having to redo the coloring.
     42
     43[[Image(bfactorclip.png)]]
     44
     45Elaine Meng, September 9, 2020
     46}
     47}