[MMTK] Rotating parts of the side-chain of a residue

Urban Hafner ujh at gmx.com
Wed Jan 21 14:41:14 CET 2004


On Wednesday, Jan 21, 2004, at 12:34 Europe/Berlin, Konrad Hinsen wrote:

> It is a method which works on the object it is called on. This can be 
> a whole
> protein, a residue, a sidechain, or an aritrary selection via a 
> Collection
> object. In your case, you would have to use the general case via a
> Collection. For example:
>
> sidechain = protein[0][10].sidechain
> atoms = Collection([sidechain.CG, sidechain.HG])
> atoms.rotateAroundAxis(ref_atom_1.position(), ref_atom_2.position(), 
> angle)

So just to be sure I understood it correctly: I create create a 
collection
of atoms I want to rotate, call rotateAroundAxis on them and then they
change their positions even in the whole protein. Is that right?

Urban




More information about the mmtk mailing list