[Chimera-users] Rainbow command
meng at cgl.ucsf.edu
Mon Aug 28 09:53:01 PDT 2017
Short answer first and then a longer explanation. The short answer is that “rainbow” always affects the whole model, i.e. you can’t just apply it to one chain in a model and not the others. So the command is simply
… or if you had more than one model, specifying the one you want, e.g.
I know it takes a little getting used to, but the “Usage” information on each command’s help page describes how to use the command. ( Individual examples are helpful, but often fail to cover the specific thing each user wants to do.)
“rainbow” command help:
I’ was guessing you want to color the residues in a chain along the rainbow spectrum (one color per residue, not one color per chain). That is the “residue” level, which is the default, so you don’t have to specify it. If you want the standard rainbow colors starting with blue at N-term and ending with red at C-term, you don’t have to specify any colors either. So the only thing you might want to specify is which atoms to apply the command to, the “atom-spec” in the usage. In the usage, this links to a separate page because most commands have “atom-spec” and there are a lot of different ways to specify even the same set of atoms.
However, as mentioned in the rainbow help page, it only affects the whole model. For other commands that can apply to some specific chain, the atom-spec part could be something like
- model 0 chain A
- all chains C in all models
… more examples here ...
I hope this helps,
Elaine C. Meng, Ph.D.
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco
> On Aug 28, 2017, at 4:51 AM, Mark Rosenberg <mark.rosenberg at manchester.ac.uk> wrote:
> Please can you provide an example of using Rainbow with Command line for a specific chain so I can see how the nomenclature works.
> It would be so helpful if the Chimera help files could provide more examples like this so one can adapt them to different situations.
> Thank you.
More information about the Chimera-users