radius#
- skfp.descriptors.radius(mol: Mol, distance_matrix: ndarray | None = None) int #
Radius.
Calculates the radius [1], defined as the minimal length of the longest path between atoms.
- Parameters:
mol (RDKit
Mol
object) – The molecule for which the radius is to be calculated.distance_matrix (np.ndarray, optional) – Precomputed distance matrix. If not provided, it will be calculated.
References
Examples
>>> from rdkit.Chem import MolFromSmiles >>> from skfp.descriptors import radius >>> mol = MolFromSmiles("C1=CC=CC=C1") # Benzene >>> radius(mol) 3