CBC: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Util.cbc]] stands for '''color by chain'''. This simply colors molecules by their chains, as the name suggests. | [[Util.cbc]] stands for (the utilities library's) '''color by chain'''. This simply colors molecules by their chains, as the name suggests. | ||
The affects of CBC are shown in the following images. | The affects of CBC are shown in the following images. | ||
Line 8: | Line 8: | ||
Image:Cbc1.png|util.cbc command issued. Each chain gets its own color. | Image:Cbc1.png|util.cbc command issued. Each chain gets its own color. | ||
</gallery> | </gallery> | ||
== Usage == | |||
<source lang="python"> | |||
# simple command | |||
util.cbc selection, first_color, quiet | |||
# api usage | |||
util.cbc(selection='(all)',first_color=7,quiet=1,legacy=0,_self=cmd) | |||
</source> | |||
where | |||
* selection defaults to 'all', | |||
* first_color defaults to 7, | |||
* quiet defaults to 1 | |||
== Example == | |||
<source lang="python"> | |||
# color everything by chain | |||
util.cbc | |||
</source> | |||
== See Also == | == See Also == | ||
*[[ | *[[Advanced_Coloring#Coloring_with_.27chainbows.27_from_a_script|Chainbow]] | ||
*[[Util.rainbow]] | *[[Util.rainbow]] | ||
*[[Advanced_Coloring#Coloring_by_atom_type|util.cba]] | *[[Advanced_Coloring#Coloring_by_atom_type|util.cba]] | ||
[[Category:Commands|CBC]] [[Category:Coloring|CBC]] |
Latest revision as of 14:27, 17 November 2009
Util.cbc stands for (the utilities library's) 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
util.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