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 optimizes the 3D geometry of molecules using force field calculations. The tool should generate initial 3D structures and then refine them to find low-energy conformations.
Your solution should:
The optimizer should output:
The following test cases should be implemented:
@generates
def optimize_molecule(smiles: str) -> dict:
"""
Optimize the 3D geometry of a molecule from a SMILES string.
Args:
smiles: A SMILES string representing the molecule
Returns:
A dictionary containing:
- 'initial_energy': The energy before optimization (float)
- 'final_energy': The energy after optimization (float)
- 'converged': Whether optimization converged successfully (bool)
- 'error': Error message if parsing failed (str or None)
"""
pass
def optimize_batch(smiles_list: list) -> dict:
"""
Optimize multiple molecules and return aggregate statistics.
Args:
smiles_list: A list of SMILES strings
Returns:
A dictionary containing:
- 'results': List of individual optimization results
- 'average_energy_reduction': Average energy reduction across all molecules (float)
- 'success_rate': Fraction of molecules successfully optimized (float)
"""
passProvides cheminformatics and molecular modeling capabilities.