Read, write, and convert molecular file formats including SMILES, SDF, MOL2, and PDB. Inspect representation-sensitive details such as salts, charges, and stereochemistry during conversion, then use the molecular-standardization skill when a registration policy is required.
pip install rdkit
pip install openbabel-wheel # For additional format support
Tell your AI agent what you want to do: - "Load my compound library from this SDF file" - "Convert these SMILES to an SDF file with 3D coordinates" - "Inspect my molecule database for salts, mixtures, charge states, and missing stereochemistry before conversion" - "Read MOL2 files and convert to SMILES"
"Load all molecules from compounds.sdf and show me how many were successfully parsed."
"Read SMILES from this CSV file where the SMILES column is named 'structure'."
"Save my filtered compounds to an SDF file with properties included."
"Export canonical SMILES for my molecule list."
"Parse these molecules and report salts, mixtures, charge states, and stereochemistry issues that need a documented standardization policy."
"Convert this compound library without silently changing charge, stereochemistry, or tautomer state, then identify records that need the molecular-standardization workflow."
rdkit.Chem.MolStandardize.rdMolStandardize module for custom standardization; standalone MolVS is a legacy packagefrom openbabel import pybel not import pybelDraw.MolToImage remains a supported convenience API