SynPlanner – a tool for synthesis planning
Docs | Tutorials | Preprint | Paper | GUI demo
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:
✅ Data Quality: Standardize and filter raw chemical reaction data.
🧪 Reaction Templates: Extract reaction rules (templates) with configurable specificity options.
🧠 Model Training: Train policy and value networks using supervised and reinforcement learning techniques.
🗺️ Retrosynthesis: Perform retrosynthetic planning with multiple MCTS-based search strategies.
📊 Visualization: Visualize discovered synthetic paths and interact with a 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.4.0
# 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:
Download Essential Data: Fetch pre-trained models, reaction rules, and building blocks from HuggingFace.
synplan download_preset --preset synplanner-article --save_to synplan_dataPrepare a targets file: Create a plain-text file with one SMILES per line, e.g.:
echo "NC1(C(=O)N[C@@H](CCO)c2ccc(Cl)cc2)CCN(c2nc[nH]c3nccc2-3)CC1" > targets.smiRun planning:
synplan planning \ --config configs/planning_standard.yaml \ --targets targets.smi \ --reaction_rules synplan_data/policy/supervised_gcn/v1/reaction_rules.tsv \ --building_blocks synplan_data/building_blocks/emolecules-salt-ln/building_blocks.tsv \ --policy_network synplan_data/policy/supervised_gcn/v1/v1/ranking_policy.ckpt \ --results_dir planning_results_quickstart
📓 Colab tutorials
Currently, three tutorials are available that can run with Google Colab:
Retrosynthetic planning: plan routes for one target and inspect the search tree.
SynPlanner benchmarking: run many targets and compare results.
Route clustering by strategic bonds: cluster planned routes by strategic bonds and view concise HTML reports.
🤝 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
Tagir Akhmetshin - main developer and maintainer.
Almaz Gilmullin - maintainer, implementation of the clustering module.
👥 Contributors
Timur Madzhidov - key contributor, main initiator and inspirator of the project.
Alexandre Varnek - supervisor of the project.
Dmitry Zankov - data curation adoption, initial tutorials and documentation, SynPlanner article initial draft preparation, and reproducibility of the results.
Philippe Gantzer - implementation of initial graphical user interface and unified writing module.
Dmitry Babadeev - implementation of the initial retrosynthetic planning module and routes visualization.
Anna Pinigina - implementation of the rule extraction module.
Milo Roucairol - implementation of the various search strategies.
Mikhail Volkov - help in testing and debugging the code.
📜 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.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| synplanner-1.4.1-py3-none-any.whl | Python 3 | none | any | Details for synplanner-1.4.1-py3-none-any.whl |
Release files / synplanner-1.4.1-py3-none-any.whl
| Download URL | synplanner-1.4.1-py3-none-any.whl |
|---|---|
| Size | 214.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
300d3d593e5681b37e7fe79b309ee8b01f723eca7173933cf9d57721930a5fd1
|
|
BLAKE2b-256 checksum How to use checksums |
4777cc12c1d6a377c75a28f8dcc3d03b0a195f03a724040f97ca465314b024db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for SynPlanner 1.4.1
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.