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