Command Palette

Search for a command to run...

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

bio-retrosynthesis

БесплатноЗапускает вложенные скриптыНе проверен

Performs retrosynthetic planning using AiZynthFinder (template-based MCTS), maintained or version-pinned template-free models, ASKCOS, and emerging…

lilinjiот lilinji★ 18 звёзд на GitHub

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

Version Compatibility

Reference examples tested with: AiZynthFinder 4.4+, RDKit 2024.09+, RDChiral 1.1+, and ASKCOS Lite 0.5+. Chemformer is archived legacy research code; if reproducing it, pin an exact repository commit, checkpoint, and configuration rather than assuming a current pip package or stable Python API.

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

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

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

Retrosynthesis

Plan synthetic routes from a target molecule back to commercially available building blocks. AiZynthFinder combines Monte Carlo Tree Search (MCTS), template-based expansion, configurable search rewards, and route scorers (Saigiridharan et al. 2024). Chemformer is a published template-free transformer baseline whose official repository is now archived; use its exact historical environment for reproduction or select a maintained model with a documented interface. ASKCOS is another open-source synthesis-planning platform. A useful workflow combines retrosynthesis with building-block availability and an independently configured forward-prediction check, while recognizing that a round-trip model match is not experimental validation.

For generative design pipelines that need synthetic feasibility, see chemoinformatics/generative-design. For reaction enumeration (forward direction), see chemoinformatics/reaction-enumeration.

Retrosynthesis Method Taxonomy

Tool Approach Strength Fails when
AiZynthFinder 4.4+ Template-based MCTS Maintained, configurable open-source planner Beyond selected policy coverage
Chemformer (archived) Template-free transformer Reproducing the published baseline Archived code and checkpoint/config coupling
ASKCOS Template-based + neural Open-source synthesis-planning platform Setup complexity
Molecular Transformer Forward + retro transformer Single SMILES-to-SMILES Less robust to non-training distribution
RetroSynFormer Decision transformer Modern method Limited adoption

Decision: For most users, AiZynthFinder with its documented public USPTO expansion policy and a current stock is a practical open-source starting point. For high-stakes routes, apply expert review and an independently configured forward-prediction check; neither model agreement nor a solved search route is experimental validation.

Decision Tree by Scenario

Scenario Tool Notes
Standard medchem target AiZynthFinder configured expansion policy Record the public USPTO policy or licensed template source actually loaded
Novel chemotype AiZynthFinder + maintained or exactly version-pinned template-free comparison Validate each route independently
Generated molecules (REINVENT output) AiZynthFinder batch Filter to feasible routes
Multi-step synthesis planning AiZynthFinder + manual review Top-K routes
Validate generated route Molecular Transformer forward Check round-trip
Cost-aware synthesis AiZynthFinder + custom building-block pricing Score weight
Disconnection-aware design (DAD) AiZynthFinder MCTS + verified rewards or post-search reranking Compare route objectives explicitly
Patent-aware routes Custom template exclusion Specialized

AiZynthFinder Setup

Goal: Configure AiZynthFinder with USPTO templates + a building-block stock and run MCTS retrosynthesis planning on a target SMILES.

Approach: Create a version-appropriate YAML configuration with the expansion policy and stock, instantiate AiZynthFinder from that file, set the target SMILES, then call tree_search() followed by build_routes(). Use the schema documented for the installed release rather than copying legacy policy / finder dictionaries.

from aizynthfinder.aizynthfinder import AiZynthFinder

finder = AiZynthFinder(configfile='config.yml')
finder.expansion_policy.select('uspto')  # key defined in config.yml
finder.stock.select('zinc')              # key defined in config.yml
# finder.filter_policy.select('uspto')   # optional configured filter
finder.target_smiles = 'CC(=O)Nc1ccc(C(=O)Nc2cccc(C(F)(F)F)c2)cc1'
finder.tree_search()
finder.build_routes()

Output: finder.routes, a RouteCollection containing ranked reaction_trees, initial scores, serialized route dictionaries, and route metadata.

Route Output Analysis

for tree, score in zip(finder.routes.reaction_trees, finder.routes.scores):
    leaves = list(tree.leafs())
    n_steps = len(list(tree.reactions()))
    print(f'Steps: {n_steps}, Score: {score}, Solved: {tree.is_solved}')
    print(f'In-stock: {sum(tree.in_stock(node) for node in leaves)} / {len(l
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

examples/aizynth_batch.pyusage-guide.md

FAQ

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

Performs retrosynthetic planning using AiZynthFinder (template-based MCTS), maintained or version-pinned template-free models, ASKCOS, and emerging RetroSynFormer with explicit handling of route scoring, configurable MCTS rewards, building-block availability, and forward-prediction checks. Use when assessing synthetic feasibility of generated or selected molecules, planning multi-step syntheses, building synthesis-aware design pipelines, or screening libraries for retro-route feasibility.

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

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

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

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить bio-retrosynthesis с