[BioPython] Superimposing CA atoms of a chain

Thomas Hamelryck thamelry at binf.ku.dk
Mon Aug 1 11:26:52 EDT 2005


On Monday 01 August 2005 17:32, Ramon Crehuet wrote:
>        I'd like to superimpose two chains (all atoms from all residues) but
>     calculating the RMS only from CA atoms. That is, I'd like to calculate
>     the transformation matrix for the CA atoms and apply it to all atoms.
> (A common operation, I guess...)
>         Can I do that with the PDB.superimpose module? 

Yes.
Use the PDB.superimpose module to calculate the rotation/translation
for the CA atoms only and then apply these to the atoms you want using the
transform(rotation, translation) method of the atom object.

-Thomas



More information about the BioPython mailing list