molclaw-similarity-optimization

Generate target-similar molecules while optimizing physicochemical properties via reinforcement learning.

28|2|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/InternScience/MolClaw --skill molclaw-similarity-optimization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: molclaw-similarity-optimization
Source: https://github.com/InternScience/MolClaw/tree/main/skills/L1_tools/molclaw-similarity-optimization
Command: npx skills add https://github.com/InternScience/MolClaw --skill molclaw-similarity-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill generates molecular analogs that remain similar to a reference molecule while actively optimizing multiple physicochemical properties using reinforcement learning, addressing cases where simple sampling plus filtering fails to find viable candidates under tight multi-objective constraints.

Core Features & Use Cases

  • Reinforcement-learning guided generation (REINVENT4 staged_learning) that steers molecule generation toward high-scoring candidates rather than relying on post-hoc filtering.
  • Multi-objective weighted scoring with configurable components such as Tanimoto similarity, QED, MW, LogP, TPSA, and MMP similarity, including transform functions and normalization.
  • User recipes and runtime guidance for quick tests, standard optimization, thorough training, and solubility-focused searches; outputs best-found SMILES and a CSV file for downstream evaluation.
  • Use Cases: hit-to-lead analog generation, constrained property optimization for lead candidates, and targeted improvement of drug-likeness metrics while preserving chemical similarity.

Quick Start

Start a similarity-guided RL optimization on the target SMILES with similarity_weight 0.6, qed_weight 0.3, and max_steps 100 to produce optimized analogs.

Frequently Asked Questions about molclaw-similarity-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize molecular analogs while maintaining similarity to a target SMILES?

Molecular analog optimization while preserving target similarity is achieved by using reinforcement learning to steer generation toward high-scoring candidates. You provide a target SMILES and weighted scoring components like QED, LogP, and TPSA to guide the process.

What physicochemical properties can I weight during reinforcement learning drug discovery?

You can weight Tanimoto similarity, QED, MW, LogP, TPSA, and MMP similarity during drug discovery optimization. These components act as configurable scoring functions with transform functions and normalization to control the multi-objective molecular generation.

How do I run a similarity-guided reinforcement learning optimization for drug leads?

To run similarity-guided optimization, input a target SMILES and configure parameters like similarity_weight, qed_weight, and max_steps. The process uses REINVENT4 staged_learning to produce optimized analogs and outputs a CSV file of the best SMILES for downstream evaluation.

Does this molecular optimization approach work for hit-to-lead generation?

Yes, this molecular optimization approach works for hit-to-lead analog generation and constrained library optimization. It applies reinforcement learning to improve drug-likeness metrics and physicochemical properties while preserving chemical similarity to your reference molecule.

What is the difference between reinforcement learning generation and post-hoc filtering for molecular analogs?

Reinforcement learning generation actively steers molecule creation toward high-scoring candidates during the process, whereas post-hoc filtering samples broadly and discards unsuitable molecules afterward. RL-driven optimization is necessary when tight multi-objective constraints make simple filtering inefficient.