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.

Related resources

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

Chemistry Development Kit (CDK) is a Java library for chemical representations, file conversion, structure searching, fingerprints, QSAR descriptors and molecular rendering within other programs.

Open source

Cheminformatics

A K-Dense Scientific Agent Skill that guides Datamol-based molecular preparation, similarity analysis, scaffold workflows and conformer handling, with input-validation and reproducibility guidance.

Python

Cheminformatics · Drug Discovery

Molfeat

Open Source

Molfeat is a Python toolkit for small-molecule featurization, combining molecular fingerprints, descriptors and pretrained embeddings with parallel transformation, caching and extensible plugins.

Open sourcePython

Molecular Property Prediction · Cheminformatics

Mordred

Open Source

Mordred is a Python molecular descriptor calculator with command-line and RDKit-based library workflows, producing descriptor tables for cheminformatics analysis and downstream model evaluation.

Open sourcePython

Molecular Property Prediction · Cheminformatics

Related guides

Skills

AI Skills for Chemistry: What They Are and How They Work

Understand chemistry AI Skills as reusable procedure modules: what SKILL.md contains, how hosts load instructions, how Skills differ from MCP and agents, and how to select, combine, and evaluate them without confusing guidance with scientific validation.

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.