|
Bsoft 2.1.4
Bernard's software package
|
Library routines used to compare sets of atomic coordinates. More...
#include "rwmolecule.h"#include "rwatomprop.h"#include "mol_symmetry.h"#include "mol_compare.h"#include "mol_transform.h"#include "mol_util.h"#include "seq_align.h"#include "Matrix3.h"#include "matrix_linear.h"#include "Matrix.h"#include "symmetry.h"#include "utilities.h"Functions | |
| double | molgroup_rotate_and_compare (Bmolgroup *molgroup, Transform t) |
| Copies and rotates the molecule group and compares it with the original. More... | |
| Transform | molgroup_find_transformation (Bmolgroup *molgroup1, Bmolgroup *molgroup2) |
| Determines the transformation between two groups of identical molecules. More... | |
| Transform | mol_find_transformation (Bmolecule *mol1, Bmolecule *mol2, int offset) |
| Determines the transformation between two identical molecules. More... | |
| double | molgroup_calculate_rmsd (Bmolgroup *molgroup1, Bmolgroup *molgroup2) |
| Calculates the root-mean-square-deviation between two molecule groups. More... | |
| double | mol_calculate_rmsd (Bmolecule *mol1, Bmolecule *mol2) |
| Calculates the RMSD between two molecules. More... | |
| double | molgroup_calc_brute_rmsd (Bmolgroup *molgroup1, Bmolgroup *molgroup2) |
| Calculates the RMSD based on nearest atoms. More... | |
| Matrix | mol_distance_matrix (Bmolecule *m1, Bmolecule *m2) |
| Calculates the distance matrix between the residues in two molecules. More... | |
Variables | |
| int | verbose |
Library routines used to compare sets of atomic coordinates.
Calculates the RMSD between two molecules.
| *mol1 | first molecule. |
| *mol2 | second molecule. |
The root-mean-square-deviation between two sets of corrdinates is given by:
R = sqrt(sum(length(coord1-coord2))/number).
Calculates the distance matrix between the residues in two molecules.
| *m1 | first molecules structure. |
| *m2 | second molecules structure. |
The matrix is calculated from the pairwise distances between residues.
Determines the transformation between two identical molecules.
| *mol1 | first molecule. |
| *mol2 | second molecule. |
| offset | offset of second sequence with respect to first. |
The transformation:
coord2 = rot_mat * (coord1 - origin) + origin + shift
is solved.
The algorithm is set up in parts, solving first for:
coord2 = rot_mat * coord1 + shift_temp
The last term is given by:
shift_temp = shift + origin - rot_mat * origin
The shift vector must be parallel to the rotation axis, and is
determined as:
shift = axis * |shift_temp| * cos(alpha)
where alpha is the angle between shift_temp and the rotation axis.
The origin is then calculated from:
origin = (shift_temp - shift) * inverse(id_mat - rot_mat)
Note that the origin still has one degree of freedom: It can be
anywhere along the rotation axis.
Calculates the RMSD based on nearest atoms.
| *molgroup1 | first molecule group. |
| *molgroup2 | second molecule group. |
Calculates the root-mean-square-deviation between two molecule groups.
| *molgroup1 | first molecule group. |
| *molgroup2 | second molecule group. |
The two molecule groups must have identical structures.
Determines the transformation between two groups of identical molecules.
| *molgroup1 | first molecule group. |
| *molgroup2 | second molecule group. |
Copies and rotates the molecule group and compares it with the original.
| *molgroup | molecule group. |
| t | rotation operation. |
|
extern |