Skip to main content

rd.canonical_ranks()

Rank atoms canonically.

Usage

Source

rd.canonical_ranks(
    mol,
    *,
    break_ties=True,
)

Parameters

mol: Mol

RDKit molecule.

break_ties: bool = True
If True, break ties so that every rank is unique.

Returns

list[int]
Canonical rank of each atom.