Skip to content
Back to skills

Rdkit Molecule Standardization

ASecurity

Use this skill to standardize one small-molecule SMILES string with RDKit MolStandardize. It is for local cleanup, salt stripping, uncharging, and tautomer canonicalization, not docking or batch-library processing.

  • 38 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
ai-agentspythonapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add ma-compbio-lab/SkillFoundry --skill rdkit-molecule-standardization --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rdkit Molecule Standardization?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rdkit Molecule Standardization
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ma-compbio-lab-rdkit-molecule-standardization/badge)](https://www.skillsdirectory.com/skills/ma-compbio-lab-rdkit-molecule-standardization)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: rdkit-molecule-standardization
description: Use this skill to standardize one small-molecule SMILES string with RDKit MolStandardize. It is for local cleanup, salt stripping, uncharging, and tautomer canonicalization, not docking or batch-library processing.
---

## Purpose
Turn a single SMILES string into a deterministic standardization summary using `RDKit` `MolStandardize`.

## When to use
- You need a local starter for the taxonomy leaf `molecule-standardization`.
- You want to strip salts or counterions before downstream featurization.
- You want a compact JSON summary with fragment-parent, uncharged, and canonical-tautomer SMILES.

## When not to use
- You need conformers, docking, or quantum chemistry.
- You need bulk normalization across large compound libraries.

## Inputs
- One SMILES string passed by `--smiles` or a single-line file passed by `--smiles-file`
- Optional molecule name
- Optional JSON output path

## Outputs
- JSON summary with cleaned, fragment-parent, uncharged, and canonical-tautomer SMILES
- Charge before and after standardization
- Formula and heavy-atom count for the standardized molecule

## Requirements
- `slurm/envs/chem-tools` with `RDKit` and `MolStandardize`

## Procedure
1. Run `slurm/envs/chem-tools/bin/python skills/drug-discovery-and-cheminformatics/rdkit-molecule-standardization/scripts/standardize_rdkit_molecule.py --smiles-file skills/drug-discovery-and-cheminformatics/rdkit-molecule-standardization/examples/sodium_acetate.smiles --name sodium-acetate`.
2. Inspect `fragment_parent_smiles` to confirm salt stripping.
3. Inspect `uncharged_smiles` and `canonical_tautomer_smiles` before reusing the molecule downstream.

## Validation
- The script exits successfully with the `chem-tools` prefix.
- The sodium acetate example standardizes to `CC(=O)O`.
- The runtime output matches `assets/sodium_acetate_standardized.json`.

## Failure modes and fixes
- Invalid SMILES: verify the input string or the first non-empty line in the SMILES file.
- Missing RDKit environment: run the script with `slurm/envs/chem-tools/bin/python`.

## Safety and limits
- This is a molecule-cleanup helper only.
- It does not imply medicinal-chemistry, ADMET, or synthesis interpretation.

## Provenance
- RDKit documentation: https://www.rdkit.org/docs/
- RDKit MolStandardize API: https://www.rdkit.org/docs/source/rdkit.Chem.MolStandardize.rdMolStandardize.html

## Related skills
- `rdkit-molecular-descriptors`
- `chembl-molecule-search`

Files in this skill

  • SKILL.md2.4 KB
  • assets/README.md161 B
  • assets/sodium_acetate_standardized.json346 B
  • examples/README.md498 B
  • examples/sodium_acetate.smiles17 B
  • metadata.yaml1.3 KB
  • refs.md233 B
  • scripts/standardize_rdkit_molecule.py3.4 KB
  • tests/test_standardize_rdkit_molecule.py3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…