moleculekit.projections.metricsphericalcoordinate module#
- class moleculekit.projections.metricsphericalcoordinate.MetricSphericalCoordinate(refmol: Molecule, targetcom: str | ndarray, refcom: str | ndarray, trajalnsel: str | ndarray = 'protein and name CA', refalnsel: str | ndarray | None = None, centersel: str | ndarray = 'protein', pbc: bool = True)#
Bases:
ProjectionCreates a MetricSphericalCoordinate object that calculates the spherical coordinates between two centers of masses from a set of trajectories.
- Parameters:
refmol (
Moleculeobject) – The reference Molecule to which we will align.targetcom (str or np.ndarray) – Atom selection from which to calculate the target center of mass (a selection string, boolean mask, or integer index array). See more here
refcom (str or np.ndarray) – Atom selection from which to calculate the reference center of mass (a selection string, boolean mask, or integer index array). See more here
trajalnsel (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). See more here
refalnsel (str or np.ndarray, optional) – Atom selection for refmol 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 trajalnstr. See more here
centersel (str or np.ndarray, optional) – Atom selection around which to wrap the simulation (a selection string, boolean mask, or integer index array). See more here
pbc (bool) – Enable or disable coordinate wrapping based on periodic boundary conditions.
- Returns:
metr
- Return type:
MetricCoordinate object
- 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