Skip to content

Datamol

Hadrien Mary

Datamol is a Python molecular-processing library built on RDKit, with tools for structure conversion, standardization, fingerprints, conformers, visualization and local or remote file I/O.

Catalog updated ·

Overview

Datamol provides a Python interface for molecular processing on top of RDKit. Its central molecular representation is rdkit.Chem.Mol, allowing its functions to fit into workflows that already use RDKit objects. The documented scope is a processing toolkit rather than a predictive model: it supplies molecular preparation, representation conversion, visualization and data-handling operations that can support downstream chemistry analysis or machine-learning preparation.

The README demonstrates converting a SMILES string into a molecule, creating fingerprints, and exporting SELFIES and InChI representations. It also shows separate functions for fixing, sanitizing and standardizing molecules. Tabular workflows are illustrated with a bundled FreeSolv dataframe and conversion into molecular objects. File handling covers formats such as SDF, CSV and XLSX, with remote paths supported through fsspec; examples read an SDF from S3 and write molecules to Google Cloud storage.

For structure inspection, the examples include two-dimensional molecular images, conformer generation, three-dimensional viewing through nglview, and solvent-accessible surface area calculations from conformers. The source also describes parallel execution where applicable and optional progress reporting, but supplies no performance measurements in the provided excerpts.

The supplied package configuration requires Python 3.11 or newer and RDKit 2024.9.1 or newer. Dependency guidance needs care: the README update section describes separating optional I/O and visualization dependencies, while its installation section and the supplied package configuration include those capabilities in the core installation. Users should check the packaging for their selected release rather than assume either dependency arrangement applies universally.

Key Features

  • Uses `rdkit.Chem.Mol` objects and converts molecular inputs into fingerprints, SMILES, SELFIES and InChI representations.
  • Provides distinct molecule-fixing, sanitization and standardization functions illustrated in the API tour.
  • Converts dataframe records into molecules and supports reading and writing molecular data, including SDF and remote paths through `fsspec`.
  • Generates conformers and calculates solvent-accessible surface area from conformer-containing molecules.
  • Creates two-dimensional molecular depictions and supports three-dimensional conformer viewing through nglview.
  • Offers built-in parallelization where applicable, with optional progress bars.

Use Cases

  • Intended evaluation: prepare representative molecular records with fixing, sanitization and standardization before downstream cheminformatics analysis.
  • Intended evaluation: convert molecular structures into fingerprints or alternate string representations for a separate machine-learning pipeline.
  • Intended evaluation: assess conformer generation, visual inspection and surface-area calculations on molecules relevant to a research workflow.
  • Intended evaluation: assess SDF exchange between local processing and S3 or Google Cloud storage using a small representative dataset.

How to Use

  1. Start with the official documentation and the repository README to identify the APIs relevant to your molecular-processing task.
  2. Check the environment requirements and dependency declarations in the supplied package configuration. Resolve the README’s conflicting dependency descriptions against the release you intend to use, then follow its documented installation route.
  3. Explore the linked Binder basics notebook, or study the README’s API tour, to understand how molecular strings become RDKit objects and derived representations.
  4. For an intended evaluation, select a small representative set of structures. Compare the outputs of fixing, sanitization and standardization, then inspect fingerprints or converted strings as appropriate to your downstream task.
  5. Evaluate only the additional operations you need, such as conformer generation, molecular images or remote SDF exchange. Record the selected environment and observed behavior; the examples do not establish suitability for your dataset.

Sources and verification

This entry describes capabilities documented by the linked project sources. Catalog edits are not evidence of a successful run, compatibility test or scientific performance evaluation.

Read the editorial and verification policy

Related resources

AQME

Open Source

AQME builds quantum-mechanical working environments end to end: conformer generation, input preparation, output checking and descriptor calculation across its CSEARCH, CMIN, QPREP, QCORR and QDESCP modules.

Open sourcePython

Cheminformatics · Computational Chemistry · Quantum Chemistry

OpenChemistry libraries behind Avogadro, providing molecular data handling, rendering and extensible chemistry functionality.

Open sourceC++

Cheminformatics · Computational Chemistry

chematic

Open Source

chematic is a Rust cheminformatics toolkit with Python and WebAssembly bindings for local molecular analysis, plus an optional MCP server. RDKit compatibility covers a documented subset.

Open sourcePythonJavaScript

Cheminformatics

ChemCP is an MCP App that turns SMILES strings into interactive 2D molecular diagrams and computed descriptors using RDKit.js, with an in-chat viewer for hosts that support MCP Apps.

TypeScriptJavaScript

Cheminformatics

ChemCrow is a Python chemistry agent package built with Langchain that connects language-model reasoning to RDKit, paper-qa, chemical databases, and reaction-planning tools.

Open sourcePython

Cheminformatics · Literature & Research

Open-source MCP server for local chemical data cleaning, CAS format and checksum validation, duplicate detection, and dataset quality checks through AI assistants.

Open sourceTypeScript

Cheminformatics · Scientific Data

Related guides

Overview

MCP vs Skills vs Agents vs APIs: What's the Difference?

Understand how APIs, MCP servers, Skills, and agents divide interface, procedural guidance, execution, and planning responsibilities in chemistry workflows—and how to choose or combine them without confusing access with scientific validity.