PyPI version

Getting Started with SynTemp

Welcome to the SynTemp documentation! This guide helps you install, configure, and verify SynTemp, a modular toolkit for high‑quality reaction template extraction using ensemble atom mapping.

Contents

Introduction

SynTemp systematically extracts reaction rules from chemical databases by transforming molecular reactions into structured templates. Our workflow comprises four core phases:

  1. AAM Inference: Leverages ensemble atom‑atom mapping (AAM) for precise atom correspondence.

  2. Imaginary Transition State (ITS) Completion: Infers implicit hydrogens to complete the ITS representation.

  3. Reaction Center Detection & Extension: Identifies core reactive sites and propagates neighboring atoms to capture context.

  4. Hierarchical Clustering: Aggregates extended centers or partial ITS into clusters to reveal common reaction motifs.

SynTemp workflow overview

Prerequisites

Before proceeding, ensure you have:

We strongly recommend using an isolated environment to prevent dependency conflicts.

Virtual Environment Setup

Choose one of the following methods:

1. Using Python venv (cross-platform)

python3 -m venv syntemp-env
source syntemp-env/bin/activate   # Linux/macOS
syntemp-env\Scripts\activate      # Windows PowerShell

2. Using Conda

conda create -n syntemp-env python=3.11
conda activate syntemp-env

Installation

Install core dependencies and SynTemp:

pip install -r requirements.txt
pip install "syntemp[all]"

This will install SynTemp along with all optional components.

Verification

Confirm that SynTemp is correctly installed and check its version:

python -c "import importlib.metadata as m; print(m.version('syntemp'))"

You should see the installed version number printed.

Further Resources

Support

If you encounter problems or have questions, feel free to:

  • Open an issue on GitHub.

  • Join the discussion via the project’s mailing list.

Happy templating with SynTemp!