moleculekit.projections.metrictmscore module#
- class moleculekit.projections.metrictmscore.MetricTMscore(refmol: Molecule, trajtmstr: str | ndarray, reftmstr: str | ndarray | None = None)#
Bases:
ProjectionCalculates the TMscore of a set of trajectories to a reference structure
- Parameters:
refmol (
Moleculeobject) – The reference Molecule to which we want to calculate the TMscore.trajtmstr (str or np.ndarray) – Atom selection for the trajectories from which to calculate the TMscore (a selection string, boolean mask, or integer index array). See more here
reftmstr (str or np.ndarray, optional) – Atom selection for the reference structure from which to calculate the TMscore (a selection string, boolean mask, or integer index array). If None, it defaults to trajtmstr. See more here
- 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