Platform wheels for RDKit - a comprehensive cheminformatics and machine-learning library with Python bindings
89
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.
Install with Tessl CLI
npx tessl i tessl/pypi-rdkitevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10