This release is a pre-release and may not be stable for production use.
Python Template Matching Engine (PyTME)
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
- Installation
- Template matching Find your template of interest.
- Postprocessing Analyze template matching results and downstream integrations.
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}
}
Metadata
Release files for pytme 0.3.1.dev20250731
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pytme-0.3.1.dev20250731.tar.gz | 12.0 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pytme-0.3.1.dev20250731-cp311-cp311-macosx_15_0_arm64.whl | CPython 3.11 | CPython 3.11 | macOS 15.0+ ARM64 | Details |
Total release size: 24.4 MB
Release files / pytme-0.3.1.dev20250731.tar.gz
| Download URL | pytme-0.3.1.dev20250731.tar.gz |
|---|---|
| Size | 12.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46b94deb13318cdf886026c868c6502e6292b6eef43b2658825d2370dff98011
|
|
BLAKE2b-256 checksum How to use checksums |
6f3063ae78f2c32711a22c77ec4dfa82be4a92d7f871ecd33c4f9461edc42501
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.12 Darwin/24.1.0
|
Release files / pytme-0.3.1.dev20250731-cp311-cp311-macosx_15_0_arm64.whl
| Download URL | pytme-0.3.1.dev20250731-cp311-cp311-macosx_15_0_arm64.whl |
|---|---|
| Size | 12.3 MB |
| Tags | CPython 3.11 macOS 15.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
20fb74b779c5a3694e15f852f4d453340147468a231861f5858f3cff018fd6af
|
|
BLAKE2b-256 checksum How to use checksums |
447fd20cc63ce85f8e052a34ccd72f60369db032caf9e2579cb7906999c84c30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.3 CPython/3.11.12 Darwin/24.1.0
|
Security for pytme 0.3.1.dev20250731
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.