Skip to main content

Python Template Matching Engine (PyTME)

Build Status PyPI

Documentation | Installation | API

PyTME is a Python library for data-intensive n-dimensional template matching using CPUs and GPUs.

With its backend-agnostic design, the same code can be run on diverse hardware platforms using a best-of-breed approach. The underyling abstract backend specification allows for adding new backends to benefit from gains in performance and capabilities without modifying the library's core routines. The implementation of template matching scores is modular and provides developers with a flexible framework for rapid prototyping. Furthermore, pyTME supports a unique callback capability through analyzers, which allows for injection of custom code, enabling real-time processing and manipulation of results.

PyTME includes a graphical user interface that provides simplified mask creation, interactive filter exploration, result visualization, and manual refinement capabilities. This GUI serves as an accessible entry point to the library's core functionalities, allowing users to efficiently interact with and analyze their data.

Finally, pyTME offers specialized tools for cryogenic electron microscopy data, such as wedge masks, CTF correction, as well as means for handling structural data.

Running into bugs or missing a feature? Help us improve the project by opening an issue.

Installation

We recommend installation using one of the following methods

Method Command
PyPi pip install pytme
Source pip install git+https://github.com/KosinskiLab/pyTME
Docker docker build -t pytme -f docker/Dockerfile_GPU .

You can find alternative installation methods in the documentation.

User Guide

Learn how to get started with

How to Cite

If you used PyTME in your research, please cite the corresponding publication.

@article{Maurer:2024aa,
    author = {Maurer, Valentin J. and Siggel, Marc and Kosinski, Jan},
    journal = {SoftwareX},
    pages = {101636},
    title = {PyTME (Python Template Matching Engine): A fast, flexible, and multi-purpose template matching library for cryogenic electron microscopy data},
    volume = {25},
    year = {2024}
}

Download files

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

Source Distribution

pytme-0.3.4.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

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

pytme-0.3.4-cp311-cp311-macosx_26_0_arm64.whl (7.1 MB view details)

Uploaded CPython 3.11macOS 26.0+ ARM64

File details

Details for the file pytme-0.3.4.tar.gz.

File metadata

  • Download URL: pytme-0.3.4.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.12 Darwin/25.5.0

File hashes

Hashes for pytme-0.3.4.tar.gz
Algorithm Hash digest
SHA256 3f3a49e2796c1423c82d76c8184e5f5af5dd00ac812c300f89a44fc9bc14fc16
MD5 f090470173b8216c67321fe2dc3548cb
BLAKE2b-256 1815e7f30976fd0b8c614250a974b5d0049415f61547625a1c51937b5db81337

See more details on using hashes here.

File details

Details for the file pytme-0.3.4-cp311-cp311-macosx_26_0_arm64.whl.

File metadata

  • Download URL: pytme-0.3.4-cp311-cp311-macosx_26_0_arm64.whl
  • Upload date:
  • Size: 7.1 MB
  • Tags: CPython 3.11, macOS 26.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.12 Darwin/25.5.0

File hashes

Hashes for pytme-0.3.4-cp311-cp311-macosx_26_0_arm64.whl
Algorithm Hash digest
SHA256 f990f4dfd70bf47f8c2225035dd3147bb8ad50ee36aaa8aadb7b2b7bfef54a5d
MD5 f3c486f75901783b7ecb4e0bd03a48c8
BLAKE2b-256 6ab7396625c656d86c91b95133721411a7c77bef00abea2a4aa1169d71343f98

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 files

0.3.3

2 files

0.3.2.post2

2 files

0.3.2.post1

2 files

0.3.2

2 files

0.3.1.post1

2 files

0.3.1

2 files

0.3.0

2 files

0.2.9.post1

2 files

0.2.9

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1

2 files

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