moleculekit.projections.metricrmsd module#
- class moleculekit.projections.metricrmsd.MetricRmsd(refmol: Molecule, trajrmsdstr: str | ndarray, trajalnstr: str | ndarray | None = None, refrmsdstr: str | ndarray | None = None, refalnstr: str | ndarray | None = None, centerstr: str | ndarray = 'protein', pbc: bool = True)#
Bases:
ProjectionCalculates the RMSD of a set of trajectories to a reference structure
- Parameters:
refmol (
Moleculeobject) – The reference Molecule to which we want to calculate the RMSD.trajrmsdstr (str or np.ndarray) – Atom selection for the trajectories from which to calculate the RMSD (a selection string, boolean mask, or integer index array). See more here
trajalnstr (str or np.ndarray, optional) – Atom selection for the trajectories from which to align to the reference structure (a selection string, boolean mask, or integer index array). If None, it defaults to the same as trajrmsdstr. See more here
refrmsdstr (str or np.ndarray, optional) – Atom selection for the reference structure from which to calculate the RMSD (a selection string, boolean mask, or integer index array). If None, it defaults to trajrmsdstr. See more here
refalnstr (str or np.ndarray, optional) – Atom selection for the reference structure from which to align to the trajectories (a selection string, boolean mask, or integer index array). If None, it defaults to trajalnstr. See more here
centerstr (str or np.ndarray, optional) – Atom selection around which to center the wrapping of the trajectories (a selection string, boolean mask, or integer index array). See more here
pbc (bool, optional) – Enable or disable simulation wrapping.
- getMapping(mol: Molecule)#
Returns the description of each projected dimension.
- Parameters:
mol (
Moleculeobject) – A Molecule object which will be used to calculate the descriptions of the projected dimensions.- Returns:
map – A DataFrame containing the descriptions of each dimension
- Return type:
DataFrameobject