Hi,
Given a receptor in cartoon representation and a ligand (sticks) in its
cavity, center of mass x, y, z, I wonder how could I get the sticks
representation of the protein (in addition to cartoon) but only in a
region limited by a sphere of radius R, with center at x, y, z.
Thanks in
Hi Horacio,
Do you really need a sphere around (x,y,z)? That's tough. But I'd
reckon it's more meaningful to select all residues within a certain
distance from any atom of the ligand anyway, which is easy:
show sticks, byres protein within 3.5 of ligand
Without 'byres' only the atoms actually
pseudoatom tmp, pos=[X, Y, Z]
show sticks, tmp expand R
delete tmp
Working example:
load $TUT/1hpv.pdb
pseudoatom tmp, pos=[10.0, 17.0, -3.0]
show sticks, tmp expand 6
delete tmp
But like Tsjerk says, you might want to do something more like:
delete all
load $TUT/1hpv.pdb
show sticks, byres