Agent skill

datamol

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters, use rdkit directly.

LeonChaoXgithub.com/LeonChaoXGitHub ↗
claude-codeMIT
Install
npx skills add LeonChaoX/qinyan-academic-skills --skill datamol --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 7
SKILL.md size: 18 KB
Bundled scripts: none
Path: skills/06-化学信息与药物发现/datamol/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 759
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

Datamol provides a Pythonic abstraction over RDKit to simplify molecular cheminformatics tasks. It supports molecular format conversions (SMILES, SELFIES, InChI), structure standardization and sanitization, descriptor and fingerprint calculations, 3D conformer generation, clustering and diversity selection, scaffold/fragment analysis, chemical reactions, visualization, and batch processing with parallelization. All molecular objects are native rdkit.Chem.Mol instances.

How it works

The skill instructs the agent to perform concrete steps such as:

  • Create molecules from SMILES using a function to_mol, and handle errors by returning None when parsing fails.
  • Convert molecules to SMILES, including canonical and isomeric variants, and obtain InChI, InChIKey, and SELFIES.
  • Sanitize and standardize molecules, either individually or in bulk, with options like disconnect_metals, normalize, and reionize; also standardize SMILES strings directly.
  • Read and write molecular data from various formats (SDF, SMILES, CSV, Excel, and universal readers), including remote paths, using specified functions like read_sdf, read_smi, read_csv, read_excel, and open_df; similarly write with to_sdf, to_smi, to_xlsx.
  • Compute descriptors (single and batch) and filter by drug-likeness criteria (MW, logP, HBD, HBA) based on computed descriptors.
  • Generate and compare fingerprints (ecfp and others), and compute pairwise distances or similarities between molecules.
  • Cluster molecules (Butina) and perform diversity selection; support centroids extraction and capacity to warn about full distance matrix requirements.
  • Extract Murcko scaffolds, group by scaffold, and perform scaffold-based train/test splitting for ML tasks.
  • Fragment molecules with BRICS and RECAP, and analyze fragments across libraries.
  • Generate 3D conformers, cluster conformers by RMSD, and access SASA values from conformer properties.
  • Visualize molecules and aligned SAR analyses, highlight substructures, and render conformer grids.
  • Apply chemical reactions using RDKit’s reaction framework, including batch application across libraries.
  • Utilize built-in parallelization by leveraging n_jobs settings for supported functions (e.g., read_sdf, batch descriptor computation, clustering, distance calculations, SASA).

When to use it

  • When standard drug-discovery workflows require straightforward, parallelizable cheminformatics tasks with RDKit compatibility.
  • When you need a unified, high-level API for conversions, standardization, descriptors, fingerprints, 3D conformers, clustering, scaffolds, and visualizations without writing RDKit glue code.

What it can touch

  • Import convention: import datamol as dm
  • Core operations touch molecules (Mol objects) and DataFrames through provided read/write APIs, descriptor pipelines, clustering, and visualization utilities. Parallelization is supported via n_jobs in multiple functions.

Caveats

  • Returns native rdkit.Chem.Mol objects for compatibility with RDKit ecosystems.
  • For advanced control or custom parameters, use rdkit directly.
  • Some statements reference capabilities like cloud storage via fsspec and progress bars on batch operations; these are dependent on the respective functions being invoked with proper parameters.
From the SKILL.md

# Datamol Cheminformatics Skill ## Overview Datamol is a Python library that provides a lightweight, Pythonic abstraction layer over RDKit for molecular cheminformatics. Simplify complex molecular operations with sensible defaults, efficient parallelization, and modern I/O capabilities. All molecular objects are native `rdkit.Chem.Mol` instances, ensuring full compatibility with the RDKit ecosystem. **Key capabilities**: - Molecular format conversion (SMILES, SELFIES, InChI) - Structure standardization and sanitization - Molecular descriptors and fingerprints - 3D conformer generation and analysis - Clustering and diversity selection - Scaffold and fragment analysis - Chemical reaction application - Visualization and alignment - Batch processing with parallelization - Cloud storage support via fsspec ## Installation and Setup Guide users to install datamol: ```bash uv pip install datamol ``` **Import convention**: ```python import datamol as dm ``` ## Core Workflows ### 1. Basic Molecule Handling **Creating molecules from SMILES**: ```python import datamol as dm # Single molecule mol = dm.to_mol("CCO") # Ethanol # From list of SMILES smiles_list = ["CCO", "c1ccccc1", "CC(=O)O"] mol

What's inside
Steps it walks through
  1. Overview
  2. Installation and Setup
  3. Core Workflows
  4. 1. Basic Molecule Handling
  5. 2. Reading and Writing Molecular Files
  6. 3. Molecular Descriptors and Properties
  7. 4. Molecular Fingerprints and Similarity
  8. 5. Clustering and Diversity Selection
  9. 6. Scaffold Analysis
  10. 7. Molecular Fragmentation
  11. 8. 3D Conformer Generation
  12. 9. Visualization
  13. 10. Chemical Reactions
  14. Parallelization
Ships with 6 files
  • references/conformers_module.md
  • references/core_api.md
  • references/descriptors_viz.md
  • references/fragments_scaffolds.md
  • references/io_module.md
  • references/reactions_data.md
Commands it runs
uv pip install datamol
More from qinyan-academic-skills
All skills →
About this skill
What does the datamol skill do?

Pythonic wrapper around RDKit with simplified interface and sensible defaults. Preferred for standard drug discovery including SMILES parsing, standardization, descriptors, fingerprints, clustering, 3D conformers, parallel processing. Returns native rdkit.Chem.Mol objects. For advanced control or custom parameters, use rdkit directly.

How do I install it?

Run `npx skills add LeonChaoX/qinyan-academic-skills --skill datamol --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From LeonChaoX/qinyan-academic-skills, a repository with 759 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going