Generates an in-place RMSD matrix between all mobile structures in
self.site_matches .
This method will go through all combinations of mobile structures in
self.site_matches , in subsequences of two. It will then test
for 3 common C-alpha atoms between the two mobile structures that have
matches with the reference structure. Example:
self.site_matches has 3 matches, A, B and C. The matrix calculation will loop
over:
-
A and B, then
-
A and C, then
-
B and C
Pairs of mobile structures that do not share 3 atoms with each other
and with the reference will be skipped.
The in-place RMSD can be accessed in two ways. One way is to write the
data out to a CSV-formatted file. This file contains a header and then
each row will summarize teh RMSD calculated. This file can be written
using the self.writeMatrixData() method. The second way to
access the RMSD information is to get it from the returned lookups:
matrix_matches = aligner.calculateMatrix()
for match in matrix_matches:
mobile_st1 = match.ref_st
mobile_st2 = match.mobile_st
inplace_rmsd = match.inplace_rmsd
- Returns: list of SiteMatchLookup
- Lookups for each pair of mobile atoms sharing at least 3 atoms
with each other and the reference
- Raises:
RuntimeError - If less than 2 mobile structures were aligned to reference
|