number_of_rings#
- skfp.descriptors.number_of_rings(mol: Mol) int #
Number of rings.
Calculates the total number of rings in the molecule.
- Parameters:
mol (RDKit
Mol
object) – The molecule for which the number of rings is to be calculated.
Examples
>>> from rdkit.Chem import MolFromSmiles >>> from skfp.descriptors import number_of_rings >>> mol = MolFromSmiles("C1=CC=CC=C1") # Benzene >>> number_of_rings(mol) 1