author: Yufeng Tong date: 2021-01-31 ...
This is a PyMOL
script to calculate the r.m.s.d. of two aligned structures with same residue numbering, for comparing the conformations of one protein in two different structures or two proteins (e.g. one wild type and one mutant) in two structures.
The script will create a copy of the target protein, replace the B-factor with the r.m.s.d. and generate a sausage display of the target protein.
Save the script to any folder accessible in PyMOL
.
This script has been tested on PyMOL
version 2.4.
- Load two structures in the
PyMOL
program. Select polypeptide chains of interest, align them using PyMOLalign
orsuper
command, and give them names, saymol1
, andmol2
File
→Run Script
and load this script.- Run
rmsdCA mol1, mol2
, wheremol1
is the reference structure, andmol2
is the target structure that will be colored. - A
tgt_gzt
object will be created and displayed in cartoon-sausage mode with a color ramp. - A pdb file
rmsdBFactor_mol2.pdb
will be generated and saved where the B-factor is the r.m.s.d. of the Cα atoms. - A csv file
rmsdCA_mol2.csv
will be generated and save where it tabulate the r.m.s.d per residue.