Interface RDKitModule

The main RDKit module

interface RDKitModule {
    SubstructLibrary: SubstructLibraryConstructor;
    get_inchikey_for_inchi(inchi: string): string;
    get_mol(input: string, details_json?: string): null | JSMol;
    get_mol_copy(other: JSMol): JSMol;
    get_mol_from_pickle(pkl: string): JSMol;
    get_mol_from_uint8array(pklAsUInt8Array: Uint8Array): JSMol;
    get_qmol(input: string): null | JSMol;
    prefer_coordgen(prefer: boolean): void;
    use_legacy_stereo_perception(value: boolean): void;
    version(): string;
}

Properties

SubstructLibrary: SubstructLibraryConstructor

Methods

  • Get the InChI key for an InChI string

    Parameters

    • inchi: string

      InChI string

    Returns string

  • Create a molecule from a variety of input strings. This will return null if the input is invalid.

    Parameters

    • input: string

      SMILES / SMARTS / MolFile / JSON string

    • Optionaldetails_json: string

    Returns null | JSMol

  • Create a copy of a molecule

    Parameters

    • other: JSMol

      molecule to copy

    Returns JSMol

  • Create a molecule from a pickle string

    Parameters

    • pkl: string

      pickle string

    Returns JSMol

  • Create a molecule from an integer array

    Parameters

    • pklAsUInt8Array: Uint8Array

      unsigned integer array

    Returns JSMol

  • Create a query molecule This will return null if the input is invalid.

    Parameters

    • input: string

      SMARTS string

    Returns null | JSMol

  • Set whether to prefer the CoordGen library's algorithm for coordinate generation

    Parameters

    • prefer: boolean

    Returns void

  • Set whether to use legacy stereo perception

    Parameters

    • value: boolean

    Returns void

  • Get the version number of the RDKit module

    Returns string