Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autonomous_synthesis_planner-0.1.0.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autonomous_synthesis_planner-0.1.0-py3-none-any.whl (47.9 kB view details)

Uploaded Python 3

File details

Details for the file autonomous_synthesis_planner-0.1.0.tar.gz.

File metadata

File hashes

Hashes for autonomous_synthesis_planner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b094cb7ec4605b2c06243ed53aeb15386f5ce6b4cedc49e60c594d39b8024804
MD5 2a6f7430f01e5884075a4d5296a00c10
BLAKE2b-256 663e387ed4260b04fe0403999e34b7bd57cce91d9fb4b38768ce0192b349a57d

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonomous_synthesis_planner-0.1.0.tar.gz:

Publisher: publish.yml on ksaad20/ASP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autonomous_synthesis_planner-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for autonomous_synthesis_planner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d93707c66742f52b2b02e042f5aecbec6ecd34ca1d6defc182b751a954869b48
MD5 ff65fa7a768c2fe0d868863f1c4e13e0
BLAKE2b-256 25a9c9b4dd1d7ca6e0170eff55bb14b07a197635150b02c3b94ddfd6398fdedb

See more details on using hashes here.

Provenance

The following attestation bundles were made for autonomous_synthesis_planner-0.1.0-py3-none-any.whl:

Publisher: publish.yml on ksaad20/ASP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page