Open-source software for AI-powered autonomous chemical synthesis planning.
Project description
Autonomous Synthesis Planner (ASP)
AI-Assisted Retrosynthetic Planning Framework
Autonomous Synthesis Planner (ASP) is an open-source software framework for generating, evaluating, and visualizing chemical synthesis pathways.
ASP provides a modular foundation for computational retrosynthesis workflows by combining:
- Molecular representation
- Reaction template libraries
- Retrosynthetic search
- Route scoring
- Synthesis pathway visualization
The goal of ASP is to accelerate chemical discovery by making synthesis planning workflows accessible, reproducible, and extensible.
Features
Current MVP Features
✅ SMILES-based molecular input
✅ Reaction template management
✅ Retrosynthetic planning engine
✅ Candidate route generation
✅ Route scoring framework
✅ JSON result export
✅ Command-line interface
✅ Python API
✅ Synthesis pathway visualization
Architecture
User
|
+---------------+
| ASP CLI/API |
+---------------+
|
v
+---------------+
| Planner |
+---------------+
|
+----------+----------+
| | |
v v v
Retrosynthesis Scoring Visualization
|
v
Reaction Templates
|
v
Molecule Representation
Installation
From source
git clone https://github.com/ksaad20/autonomous-synthesis-planner.git
cd autonomous-synthesis-planner
pip install -e .
Quick Start
Python API
from asp import ASP
planner = ASP()
result = planner.plan(
"CC(=O)OC1=CC=CC=C1C(=O)O"
)
print(
result
)
Command Line
Plan a molecule:
asp plan molecule "CCO"
Export results:
asp plan molecule "CCO" --output ethanol.json
Check installation:
asp version
Examples
ASP includes example workflows:
python examples/aspirin.py
python examples/caffeine.py
python examples/ibuprofen.py
Example targets:
| Molecule | Application |
|---|---|
| Aspirin | Pharmaceutical synthesis |
| Caffeine | Heterocyclic chemistry |
| Ibuprofen | Drug molecule planning |
Dataset Workflow
Prepare reaction data:
python scripts/download_data.py
Build reaction templates:
python scripts/build_templates.py
Generated templates are stored in:
datasets/templates/
Project Structure
autonomous-synthesis-planner/
├── examples/
├── datasets/
├── models/
├── scripts/
├── tests/
└── src/
└── asp/
├── chemistry/
├── planning/
├── data/
├── visualization/
├── io/
└── utils/
Development
Install development dependencies:
pip install -r requirements.txt
Run tests:
pytest
Run formatting checks:
black .
ruff check .
Scientific Scope
ASP is currently a research software MVP.
The current version focuses on:
- Software architecture
- Reproducible synthesis planning workflows
- Template-based retrosynthesis
- Extensible planning algorithms
Future versions aim to integrate:
- Machine learning reaction prediction
- Neural template extraction
- Cost-aware synthesis optimization
- Yield prediction
- Laboratory automation interfaces
Roadmap
v0.1.0 — MVP
- Core planning framework
- CLI
- Python API
- Template system
- Route scoring
- Visualization
v0.2.0
- Expanded reaction databases
- Improved search algorithms
- ML-based ranking
v1.0.0
- Autonomous synthesis planning platform
- Advanced AI models
- Experimental workflow integration
Contributing
Contributions are welcome.
Areas of interest:
- Chemistry algorithms
- Machine learning
- Molecular representation
- Optimization methods
- Scientific visualization
License
ASP is released under the Apache License 2.0.
See:
LICENSE
for details.
Citation
If you use ASP in research, please cite the repository release.
Autonomous Synthesis Planner (ASP)
Open-source retrosynthetic planning framework
Acknowledgements
ASP builds on decades of progress in:
- Computational chemistry
- Retrosynthesis
- Molecular informatics
- Artificial intelligence
- Scientific software engineering
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autonomous_synthesis_planner-0.1.0.tar.gz.
File metadata
- Download URL: autonomous_synthesis_planner-0.1.0.tar.gz
- Upload date:
- Size: 34.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b094cb7ec4605b2c06243ed53aeb15386f5ce6b4cedc49e60c594d39b8024804
|
|
| MD5 |
2a6f7430f01e5884075a4d5296a00c10
|
|
| BLAKE2b-256 |
663e387ed4260b04fe0403999e34b7bd57cce91d9fb4b38768ce0192b349a57d
|
Provenance
The following attestation bundles were made for autonomous_synthesis_planner-0.1.0.tar.gz:
Publisher:
publish.yml on ksaad20/ASP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autonomous_synthesis_planner-0.1.0.tar.gz -
Subject digest:
b094cb7ec4605b2c06243ed53aeb15386f5ce6b4cedc49e60c594d39b8024804 - Sigstore transparency entry: 2314804937
- Sigstore integration time:
-
Permalink:
ksaad20/ASP@cec047c49977b4d01557bea2ae22f448d946998e -
Branch / Tag:
refs/tags/v.0.1.4 - Owner: https://github.com/ksaad20
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cec047c49977b4d01557bea2ae22f448d946998e -
Trigger Event:
release
-
Statement type:
File details
Details for the file autonomous_synthesis_planner-0.1.0-py3-none-any.whl.
File metadata
- Download URL: autonomous_synthesis_planner-0.1.0-py3-none-any.whl
- Upload date:
- Size: 47.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d93707c66742f52b2b02e042f5aecbec6ecd34ca1d6defc182b751a954869b48
|
|
| MD5 |
ff65fa7a768c2fe0d868863f1c4e13e0
|
|
| BLAKE2b-256 |
25a9c9b4dd1d7ca6e0170eff55bb14b07a197635150b02c3b94ddfd6398fdedb
|
Provenance
The following attestation bundles were made for autonomous_synthesis_planner-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on ksaad20/ASP
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
autonomous_synthesis_planner-0.1.0-py3-none-any.whl -
Subject digest:
d93707c66742f52b2b02e042f5aecbec6ecd34ca1d6defc182b751a954869b48 - Sigstore transparency entry: 2314804979
- Sigstore integration time:
-
Permalink:
ksaad20/ASP@cec047c49977b4d01557bea2ae22f448d946998e -
Branch / Tag:
refs/tags/v.0.1.4 - Owner: https://github.com/ksaad20
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@cec047c49977b4d01557bea2ae22f448d946998e -
Trigger Event:
release
-
Statement type: