tessl install tessl/pypi-rdkit@2024.9.0Platform wheels for RDKit - a comprehensive cheminformatics and machine-learning library with Python bindings
Agent Success
Agent success rate when using this tile
89%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.01x
Baseline
Agent success rate without this tile
88%
Build a tool that analyzes and reports on aromatic systems in chemical structures.
Your implementation should:
@generates
def count_aromatic_rings(smiles: str) -> int:
"""
Count the number of aromatic rings in a molecule.
Parameters:
- smiles: SMILES string representing the molecule
Returns:
Integer count of aromatic rings
Raises:
ValueError: If the SMILES string is invalid
"""
def to_kekule_smiles(smiles: str) -> str:
"""
Convert a molecule to Kekule form SMILES (explicit single/double bonds).
Parameters:
- smiles: Input SMILES string (may be aromatic)
Returns:
SMILES string in Kekule form with explicit bond types
Raises:
ValueError: If the SMILES string is invalid
"""
def to_aromatic_smiles(smiles: str) -> str:
"""
Convert a molecule to aromatic form SMILES (using aromatic notation).
Parameters:
- smiles: Input SMILES string (may be in Kekule form)
Returns:
SMILES string in aromatic form
Raises:
ValueError: If the SMILES string is invalid
"""Provides cheminformatics functionality for molecular manipulation and analysis.