Analysis¶
dynome.rmsd
¶
Optimal superposition (Kabsch, via SVD), RMSD and RMSF.
rmsd(target, reference, frame=0, atom_indices=None, parallel=True, precentered=False, ref_atom_indices=None)
¶
Minimal RMSD of each frame of target to reference[frame] after optimal fitting, nm.
rmsf(target, reference=None, frame=0, atom_indices=None, parallel=True, precentered=False, ref_atom_indices=None, weights=None)
¶
Root-mean-square fluctuation of each selected atom about its mean position, nm.
With a reference, every frame is first fitted onto reference[frame] using the
selected atoms. With reference=None frames are only centred (translation removed, no
rotation), which is MDTraj's behaviour; pass reference=target to remove rotation too.
weights (per frame) defaults to the target's own ensemble weights. Stored ensembles
are processed in two passes over the chunks.
superpose(xyz, reference_frame, atom_indices=None, ref_atom_indices=None)
¶
Return xyz (F, N, 3) fitted onto reference_frame (M, 3) using the given atoms.
use_compiled(enabled=True)
¶
Turn the compiled kernels (the dynome-accel package) on or off for the NumPy
backend. Returns whether they are now in use; always False if the package is missing.
dynome.rmsf(target, reference=None, frame=0, atom_indices=None, parallel=True, precentered=False, ref_atom_indices=None, weights=None)
¶
Root-mean-square fluctuation of each selected atom about its mean position, nm.
With a reference, every frame is first fitted onto reference[frame] using the
selected atoms. With reference=None frames are only centred (translation removed, no
rotation), which is MDTraj's behaviour; pass reference=target to remove rotation too.
weights (per frame) defaults to the target's own ensemble weights. Stored ensembles
are processed in two passes over the chunks.
dynome.superpose(xyz, reference_frame, atom_indices=None, ref_atom_indices=None)
¶
Return xyz (F, N, 3) fitted onto reference_frame (M, 3) using the given atoms.
dynome.compute_distances(ens, atom_pairs, periodic=True)
¶
Distance between each pair of atoms in each frame; shape (n_frames, n_pairs), nm.
dynome.compute_displacements(ens, atom_pairs, periodic=True)
¶
Vectors from the first to the second atom of each pair; shape (n_frames, n_pairs, 3).
dynome.compute_angles(ens, angle_indices, periodic=True)
¶
Angle at the middle atom of each triplet; shape (n_frames, n_angles), radians.
dynome.compute_dihedrals(ens, indices, periodic=True)
¶
Torsion angle of each atom quartet; shape (n_frames, n_dihedrals), radians in (-pi, pi].
dynome.compute_phi(ens, periodic=True)
¶
Backbone phi (C-N-CA-C). Returns (atom indices (n, 4), angles (n_frames, n)).
dynome.compute_psi(ens, periodic=True)
¶
Backbone psi (N-CA-C-N). Returns (atom indices (n, 4), angles (n_frames, n)).
dynome.compute_omega(ens, periodic=True)
¶
Backbone omega (CA-C-N-CA). Returns (atom indices (n, 4), angles (n_frames, n)).
dynome.compute_rg(ens, masses=None)
¶
Radius of gyration of each frame, nm. Equal masses unless masses is given.
dynome.compute_center_of_mass(ens, select=None)
¶
Mass-weighted centre of each frame; shape (n_frames, 3), nm.
dynome.compute_center_of_geometry(ens)
¶
Unweighted centre of each frame; shape (n_frames, 3), nm.
dynome.compute_contacts(ens, contacts='all', scheme='closest-heavy', ignore_nonprotein=True, periodic=True)
¶
Distance between pairs of residues in every frame.
contacts is "all" (every pair at least three residues apart) or an array of residue
index pairs. scheme picks which atoms stand for a residue: "ca", "closest",
"closest-heavy", "sidechain" or "sidechain-heavy".
Returns (distances (n_frames, n_pairs) in nm, residue_pairs (n_pairs, 2)).
dynome.compute_neighbors(ens, cutoff, query_indices, haystack_indices=None, periodic=True)
¶
For each frame, the haystack atoms within cutoff nm of at least one other query atom.
As in MDTraj, a query atom that is also in the haystack is returned when a different query atom lies within the cutoff. Each frame's result is sorted by atom index.
dynome.shrake_rupley(ens, probe_radius=0.14, n_sphere_points=960, mode='atom', change_radii=None)
¶
Solvent-accessible surface area, nm^2.
mode="atom" returns (n_frames, n_atoms); mode="residue" sums atoms per residue.
change_radii maps element symbols to radii in nm to override the defaults.
Frames are independent. Neighbour search is quadratic in atom count per frame.