lsqkab xyzin2 tomatch.brk xyzin1 reference.brk
xyzout matched.brk
lsqkab xyzin2 totransform.brk xyzout transformed.brk
Note: XYZIN2 has the aliases WORKCD and XYZINW
XYZIN1 has the aliases REFRCD and XYZINR
XYZOUT has the alias LSQOP
Optimises the fit of a subset of atomic coordinates from one file (assigned to XYZIN2) to the same subset of another file (assigned to XYZIN1). The program assumes both sets of coordinates are in the PDB format. If there are two or more conformations, the first (labelled A) is chosen for comparison.
The subset can be defined either by residue numbers with options for main chain only, side chain only or CAs, or by the position of the atom in the file.
The centroid of the rotating subset is first moved to that of the reference set and then a rotation matrix is derived using a method suggested by Kasbch (reference [1]). This rotation matrix is defined relative to the orthogonal coordinate system.
The whole of the rotating coordinate set can be transformed and output in an orientation matching that of the reference set. BE VERY CAREFUL ABOUT CRYST1 and SCALE cards at the head of the PDB file. Output file assigned to XYZOUT.
There are various output options described on the input cards.
The rotating coordinate set contained in file XYZIN2 can be transformed by a given rotation matrix and translation (see ROTATE and TRANSLATE keywords), and then output in a new orientation to the file XYZOUT.
The keywords are: FIT, MATCH, OUTPUT, RADIUS, ROTATE, TITLE, TRANSLATE, END.
Describes the rotating coordinate subset taken from XYZIN2. Keyword must be followed by ATOM (alias WATOM) or RESIDUE (alias WRESIDUE).
For fitting the next card must be MATCH.
Describes the reference coordinate subset taken from XYZIN1.
Must be followed by XYZ and/or RMS and/or DELTAS.
Use atoms in a sphere for fitting.
radchk: All atoms more than radchk Angstroms from the reference centroid are excluded.
radchk Xc Yc Zc: All atoms more than radchk Angstroms from the reference point Xc Yc Zc (in As) are excluded
must be followed by EULERIAN or POLAR or DCS (direction cosines) or MATRix. All generate a matrix for rotation of xyzin2.
EULERIAN alpha beta gamma POLAR omega phi kappa DCS dc1 dc2 dc3 kappa MATRIX nine elements: m11 m12 m13 m21 m22 m23 m31 m32 m33
Must be followed by t1 t2 t3, the translation vector in Ås along PDB axes.
Alternative:
TRANslate FRAC <t1> <t2> <t3>
translation vector in fractions of ROTATING cell edge.
Input coordinates are rotated by matrix [R] then translated by vector
tr.
[Xop] = [R] * [Xip] + [tr].
Terminate input and begin program.
There has been a report that in some cases using the FIT RESIDUE CA options, the fitting has been ``reversed'' e.g. the commands
FIT RESIDUE CA 7 TO 12 MATCH 7 TO 12result in the CA atom of residue 12 in the rotating set is fitted to the CA of residue 7 in the reference set and so on.
The reported workaround is to split the FIT/MATCH commands, for example:
FIT RESIDUE CA 7 TO 9 MATCH 7 TO 9 FIT RESIDUE CA 10 TO 12 MATCH 10 TO 12which apparently works in most cases.
(Thanks to Toby Galbraith)
lsqkab xyzin1 ../data/takaxp_model8_9.pdb
xyzin2 ../data/takap21.pdb xyzout {$SCRATCH}lsq_cat_residues.pdb
DELTAS {$SCRATCH}lsq_cat_residues.delta << END-lsqkab
title matching catalytic residues of 3A to 2.1A taka
output XYZ
output deltas
fit RESIDU side 155 TO 156 CHAIN A
MATCH RESIDU 155 TO 156 CHAIN A
fit RESIDU side 210 TO 210 CHAIN A
MATCH RESIDU 210 TO 210 CHAIN A
fit RESIDU side 206 TO 206 CHAIN A
MATCH RESIDU 206 TO 206 CHAIN A
fit RESIDU side 122 TO 122 CHAIN A
MATCH RESIDU 122 TO 122 CHAIN A
fit RESIDU side 83 TO 83 CHAIN A
MATCH RESIDU 83 TO 83 CHAIN A
fit RESIDU side 168 TO 168 CHAIN A
MATCH RESIDU 168 TO 168 CHAIN A
fit RESIDU side 74 TO 74 CHAIN A
MATCH RESIDU 74 TO 74 CHAIN A
fit RESIDU side 35 TO 35 CHAIN A
MATCH RESIDU 35 TO 35 CHAIN A
fit RESIDU side 79 TO 79 CHAIN A
MATCH RESIDU 79 TO 79 CHAIN A
fit RESIDU side 340 TO 340 CHAIN A
MATCH RESIDU 340 TO 340 CHAIN A
fit RESIDU side 344 TO 344 CHAIN A
MATCH RESIDU 344 TO 344 CHAIN A
fit RESIDU side 296 TO 297 CHAIN A
MATCH RESIDU 296 TO 297 CHAIN A
fit RESIDU side 230 TO 233 CHAIN A
MATCH RESIDU 230 TO 233 CHAIN A
fit RESIDU side 209 TO 209 CHAIN A
MATCH RESIDU 209 TO 209 CHAIN A
end
END-lsqkab