Difference between revisions of "CBC"

From PyMOLWiki
Jump to navigation Jump to search
Line 11: Line 11:
 
== Usage ==
 
== Usage ==
 
<source lang="python">
 
<source lang="python">
 +
# simple command
 
util.cbc selection, first_color, quiet
 
util.cbc selection, first_color, quiet
 +
 +
# api usage
 +
cbc(selection='(all)',first_color=7,quiet=1,legacy=0,_self=cmd)
 
</source>,
 
</source>,
 
where
 
where

Revision as of 18:16, 25 August 2008

Overview

Util.cbc stands for color by chain. This simply colors molecules by their chains, as the name suggests.

The affects of CBC are shown in the following images.

Usage

# simple command
util.cbc selection, first_color, quiet

# api usage
cbc(selection='(all)',first_color=7,quiet=1,legacy=0,_self=cmd)

,

where

  • selection defaults to 'all',
  • first_color defaults to 7,
  • quiet defaults to 1

Example

# color everything by chain
util.cbc

See Also