Skip to main content
SynPlanner banner

SynPlanner – a tool for synthesis planning

Docs | Tutorials | Preprint | Paper | GUI demo

License Badge PyPI Version Supported Python Versions Open In Colab

SynPlanner is an open-source tool for retrosynthetic planning, designed to increase flexibility in training and developing customized retrosynthetic planning solutions from raw chemical data. It integrates Monte Carlo Tree Search (MCTS) with graph neural networks to evaluate applicable reaction rules (policy network) and the synthesizability of intermediate products (value network).

✨ Overview

SynPlanner offers comprehensive capabilities for chemical synthesis planning:

  • ✅ Ensure Data Quality: Effortlessly standardize and filter raw chemical reaction data.

  • 🧪 Customize Reaction Templates: Extract versatile reaction rules (templates) with a wide array of options.

  • 🧠 Advanced Model Training: Train robust policy and value networks using both supervised and reinforcement learning techniques.

  • 🗺️ Flexible Retrosynthesis: Perform in-depth retrosynthetic planning with diverse MCTS-based search strategies.

  • 📊 Intuitive Visualization: Clearly visualize discovered synthetic paths and interact with an easy-to-use graphical user interface.

📦 Installation

PyPI / pip

SynPlanner can also be installed directly using pip:

pip install SynPlanner

You can find the package on PyPI: SynPlanner on PyPI.

After installation, SynPlanner can be added to Jupyter platform:

python -m ipykernel install --user --name synplan --display-name "synplan"

🐳 Docker (prebuilt images)

Prebuilt images are published to GHCR for Linux/AMD64.

VERSION=1.2.1

# CLI: pull and show help
docker pull ghcr.io/laboratoire-de-chemoinformatique/synplanner:${VERSION}-cli-amd64
docker run --rm --platform linux/amd64 \
  ghcr.io/laboratoire-de-chemoinformatique/synplanner:${VERSION}-cli-amd64 --help

# GUI: pull and run on http://localhost:8501
docker pull ghcr.io/laboratoire-de-chemoinformatique/synplanner:${VERSION}-gui-amd64
docker run --rm --platform linux/amd64 -p 8501:8501 \
  ghcr.io/laboratoire-de-chemoinformatique/synplanner:${VERSION}-gui-amd64

For a mounted-data planning example and more details, see the Get started docs: https://synplanner.readthedocs.io/en/latest/get_started/index.html

🚀 Quick Start

Get started with SynPlanner in a few steps:

  1. Download Essential Data: Fetch the necessary pre-trained models and example data to begin your journey.

    synplan download_all_data --save_to synplan_data
  2. Explore Planning: Once the data is downloaded, you can try running a planning example. For more detailed instructions, see the Tutorials sections.

    synplan planning --config configs/planning.yaml --targets synplan_data/benchmarks/sascore/targets_with_sascore_1.5_2.5.smi --reaction_rules synplan_data/uspto/uspto_reaction_rules.pickle --building_blocks synplan_data/building_blocks/building_blocks_em_sa_ln.smi --policy_network synplan_data/uspto/weights/ranking_policy_network.ckpt --results_dir planning_results_quickstart

    (Note: Ensure configs/planning.yaml exists or adjust the path accordingly. You might need to create a basic one or use one from the cloned repository if you haven’t installed all package data globally.)

📓 Colab tutorials

Currently, three tutorials are available that can run with Google Colab:

🤝 Contributing

Contributions are welcome, in the form of issues or pull requests.

If you have a question or want to report a bug, please submit an issue.

👥 Maintainers

👥 Contributors

📜 How to Cite

If you use SynPlanner in your research, please cite our work:

Akhmetshin, T.; Zankov, D.; Gantzer, P.; Babadeev, D.; Pinigina, A.; Madzhidov, T.; Varnek, A. SynPlanner: An End-to-End Tool for Synthesis Planning. J. Chem. Inf. Model. 2025, 65 (1), 15–21. DOI: 10.1021/acs.jcim.4c02004

@article{akhmetshin2025synplanner,
    title = {SynPlanner: An End-to-End Tool for Synthesis Planning},
    author = {Akhmetshin, Tagir and Zankov, Dmitry and Gantzer, Philippe and Babadeev, Dmitry and Pinigina, Anna and Madzhidov, Timur and Varnek, Alexandre},
    journal = {Journal of Chemical Information and Modeling},
    volume = {65},
    number = {1},
    pages = {15--21},
    year = {2025},
    doi = {10.1021/acs.jcim.4c02004},
    note = {PMID: 39739735},
    url = {https://doi.org/10.1021/acs.jcim.4c02004}
}

Metadata

Release files for SynPlanner 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for SynPlanner 1.3.0
File Interpreter ABI Platform Actions
synplanner-1.3.0-py3-none-any.whl Python 3 none any Details for synplanner-1.3.0-py3-none-any.whl

Release files / synplanner-1.3.0-py3-none-any.whl

Download URL synplanner-1.3.0-py3-none-any.whl
Size 145.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b76363462d31e674e436c43601931f56eb2b3ea6e00d05a402b4d3bdc6f2a88
BLAKE2b-256 checksum
How to use checksums
1877b666abb475b640437269db7183ec28318619f4542739e39d1930e5d6b7e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for SynPlanner 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page