Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

bio-generative-design

БесплатноБез исполняемых скриптовНе проверен

Designs novel molecules using REINVENT 4 (de novo, scaffold decoration, linker design, R-group, molecular optimization), MolMIM, Diffusion-based generators…

gabrielmoreiraот gabrielmoreira★ 23 звезды на GitHub

Об этом скилле

Version Compatibility

Reference examples tested with: REINVENT 4.0+, RDKit 2024.09+, PyTorch 2.1+, MolMIM (NVIDIA BioNeMo), chemprop 2.0+.

Before using code patterns, verify installed versions match. If versions differ:

  • Python: pip show <package> then help(module.function) to check signatures

If code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.

Generative Molecular Design

Generate novel molecules biased toward desired properties using deep generative models. REINVENT 4 (Loeffler 2024, AstraZeneca) is the open-source production-grade framework, supporting 4 generation modes (de novo, scaffold decoration, linker design, molecular optimization) and 3 learning algorithms (transfer learning, reinforcement learning, curriculum learning). For specific niches: MolMIM (NVIDIA BioNeMo) for property optimization, DiffSMol / DiGress for diffusion-based generation, JT-VAE for latent-space optimization. The art of generative design is in the scoring function: poorly-designed scoring rewards uninteresting molecules, while well-designed scoring captures both activity and developability.

For QSAR/scoring models that feed generative design, see chemoinformatics/qsar-modeling. For synthetic feasibility, see chemoinformatics/retrosynthesis. For library enumeration as alternative, see chemoinformatics/reaction-enumeration.

Generator Mode Taxonomy

Mode Input Output Use case Fails when
De novo Empty seed or training set Novel molecules Wide chemical space exploration Synthetic feasibility weak
Scaffold decoration Scaffold + attachment points Decorated molecules Series expansion Generation diversity limited by scaffold
Linker design 2 fragments Linker molecules PROTAC, ternary complex Few linker geometric options
R-group replacement Scaffold + existing R-groups New R-group set Optimize one position Single-position only
Molecular optimization Lead molecule Improved analogs Lead optimization Improvement window narrow
Constrained generation Hard constraints (MW, fragments) Compliant molecules Patent / IP design Constraints overly restrictive

Learning Algorithm Taxonomy

Algorithm Use Pro Con
Transfer learning (TL) Adapt prior model to focused training set Stable, simple Limited optimization power
Reinforcement learning (RL) Reward-driven generation Powerful for MPO Reward hacking risk
Curriculum learning (CL) Gradual constraint introduction Better convergence Slower; tuning sensitive

Decision Tree by Scenario

Scenario Generator Algorithm Scoring
New target, no SAR De novo RL on docking score Glide / Vina + QED
Series expansion Scaffold decoration TL on series + RL QSAR ensemble + QED
PROTAC linker Linker design RL on ternary complex DC50 surrogate
Lead optimization MPO Molecular optimization CL with staged constraints Multi-task: activity + ADMET
Diverse hit set De novo with diversity bonus RL + Tanimoto distance to known Activity + diversity
Patent space carve-out Constrained de novo RL + structural constraints Activity + novelty
Hit-to-lead R-group replacement TL on lead + RL Activity + Lipinski
ADMET-aware design De novo or optimization RL hERG + CYP + AMES + QED

REINVENT 4 Setup

REINVENT 4 uses a TOML configuration file specifying generator, algorithm, prior model, and scoring functions.

Goal: Configure a reinforcement-learning REINVENT 4 run with a prior, agent, sampling parameters, and a QED scoring component.

Approach: Build a REINVENT 4 TOML config with [parameters] for the prior/agent checkpoints, a [stage] block describing the run mode, and one or more stage.scoring.component blocks weighted toward target properties. The TOML schema below is illustrative — verify the exact section names against the installed REINVENT 4 release (the schema evolves between minor versions).

# config.toml -- conceptual REINVENT 4 staged-RL skeleton
[parameters]
prior_file = "priors/reinvent.prior"
agent_file = "priors/reinvent.prior"
batch_size = 64
unique_sequences = true

stage
type = "reinforcement_learning"
sigma = 128.0
n_steps = 500

stage.scoring.component
type = "qed_score"
weight = 1.0
# The REINVENT 4 CLI binary is `reinvent` (not `reinvent4`).
reinvent -l logfile.log config.toml

Output: agent_<step>.ckpt model checkpoints; <step>.smi generated molecules at each RL iteration.

Scoring Function Design (Most Important Part)

A good scoring function:

  • Returns 0-1 (normalized)
  • Combines multiple endpoints
  • Penalizes pathological generations (PAINS, unstable, unsynthesizable)

Goal: Bui

Полный SKILL.md на GitHub

Установить bio-generative-design в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/reinvent_mpo.tomlusage-guide.md

FAQ

Что делает скилл bio-generative-design?

Designs novel molecules using REINVENT 4 (de novo, scaffold decoration, linker design, R-group, molecular optimization), MolMIM, Diffusion-based generators (DiGress, DiffSMol), and JT-VAE with explicit handling of multi-parameter optimization (MPO), goal-directed scoring functions, transfer/reinforcement/curriculum learning, synthetic accessibility scoring, and chemical space exploration vs exploitation. Use when designing new chemical matter against a target, decorating a scaffold, linking fragments, or optimizing a hit for multiple ADMET / activity properties simultaneously.

Как установить скилл bio-generative-design?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл bio-generative-design запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить bio-generative-design с