[Chimera-users] selecting

Eric Pettersen pett at cgl.ucsf.edu
Mon Jan 17 11:08:39 PST 2005

On Jan 17, 2005, at 10:21 AM, Elaine Meng wrote:

> rep sphere 
> :43.o:56.o:59.o:60.o:61.o:63.o:65.o:67.o:68.o:70-75.o:78.o:110.o:113.o
> which is somewhat more of a pain to type, unfortunately.  The reason 
> is that
> theoretically there could be another chain that doesn't have an ID, so 
> residue
> numbers not together with a specification of chain O would specify 
> residues
> in the no-ID chain.

I would add that there a couple of ways to avoid having to type a long 
atom spec like the above repeatedly.   One is to edit the previous 
command so that you "reuse" the atom spec part (also you can use 
up-arrow to get back to a command that isn't the immediately previous 
one).  Another way is to use the 'alias' command so that a long piece 
of text can be replaced with a much shorter one, e.g.:

alias site 
rep sphere site
color red site

Aliases are remembered in session files.  Finally, any series of 
commands (including 'alias') can be put into a file and read in using 
the 'source' command.

	Eric Pettersen
	UCSF Computer Graphics Lab
	pett at cgl.ucsf.edu

More information about the Chimera-users mailing list