Peter,
Assuming you have an existing selection
load my_prot.pdb
select my_sel, resi 100
You can use the within/of operation...
color cyan, my_prot within 15 of my_sel
color red, my_prot within 10 of my_sel
If you needed to exclude the region immediately around the selection, you
could do so with
color green, (my_prot within 7 of my_sel) and not (my_sel expand 4)
By residue is also an option for coloring complete residues.
color yellow, byres (my_prot within 7 of my_sel)
Cheers,
Warren
--
mailto:wa...@de...
Warren L. DeLano, Ph.D.
Principal Scientist
DeLano Scientific LLC
Voice (650)-346-1154
Fax (650)-593-4020
> -----Original Message-----
> From: pym...@li...
> [mailto:pym...@li...] On Behalf Of
> Peter Teriete
> Sent: Tuesday, June 22, 2004 8:33 AM
> To: pym...@li...
> Subject: [PyMOL] Coloring surfaces by distance
>
> Hi All,
>
> I know there was a question regarding this some time ago, but
> didn't see any reply saying how to do it or a suggesting a
> possible workaround.
>
> I have a surface coloured by the underlying residues and am
> wondering if it is possible to colour an additional part of
> the surface if it's within a certain distance of the selected
> residues.
>
> Thanks,
>
> Peter
>
>
> Dr Peter Teriete
> Laboratory of Molecular Biophysics
> Department of Biochemistry
> University of Oxford
> South Parks Rd.
> Oxford
> OX1 3QU
>
> Tel: +44 1865 275742
> Fax: +44 1865 275182
>
>
|