Skip to main content

identity.rdkit_smiles_identity_fn()

Generate a SMILES string with RDKit.

Usage

Source

identity.rdkit_smiles_identity_fn(
    geo,
    other_geos=None,
)

If a geometry in other_geos has the same InChI, its SMILES key is returned, so that equivalent species share one (possibly non-canonical) SMILES. Otherwise, RDKit’s canonical SMILES is returned.