Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

torch-tilt-series

License PyPI Python Version CI codecov

Tilt series data structure, projection and subtilt extraction for cryo-ET.

Overview

This package provides a TiltSeries class for working with cryo-ET tilt series alignment geometry in PyTorch, plus loading and preprocessing for the raw tilt images it describes. It supports

  • loading alignment metadata from AreTomo (.aln) and ETOMO directories using alnfile and etomofiles
  • storing tilt series alignment parameters (tilt angles, tilt axis angles, translations, x-tilts) and coordinate-space transforms (see the TiltSeries docstring)
  • computing projection matrices and projecting 3D points into 2D detector coordinates
  • load_tilt_series_images(): loading the raw tilt images a TiltSeries points to (image_path/image_indices), via mrcfile
  • normalize_on_central_crop() / subtract_plane(): normalization and linear background subtraction building blocks (torch_tilt_series.utils)
  • preprocess_tilt_series_images(): a full per-image preprocessing pipeline - background plane subtraction, a bandpass filter (mirror-padded and soft-masked to suppress edge artifacts), and central-crop normalization (torch_tilt_series.preprocessing)

All 3D/2D positions are in zyx/yx coordinates, in Angstroms, relative to the tomogram/detector center. Translations are stored in Angstroms as (y, x).

Subtilt/subvolume extraction and full volume reconstruction live in torch-reconstruct-tomogram.

Installation

pip install torch-tilt-series

To load alignment data from AreTomo or ETOMO files, or raw tilt images via load_tilt_series_images(), install the optional IO dependencies:

pip install torch-tilt-series[io]

Examples

See the examples/ folder for scripts showing how to load a tilt series and use the API.

License

This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.

Metadata

Release files for torch-tilt-series 0.6.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torch-tilt-series 0.6.0rc2
File Size Uploaded
torch_tilt_series-0.6.0rc2.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for torch-tilt-series 0.6.0rc2
File Interpreter ABI Platform
torch_tilt_series-0.6.0rc2-py3-none-any.whl Python 3 none any Details

Total release size: 30.7 kB

Release files / torch_tilt_series-0.6.0rc2.tar.gz

Download URL torch_tilt_series-0.6.0rc2.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6402c3990639d3e1880b1cd20aa4c51297a51d1bcde241ad15091f78046fe565
BLAKE2b-256 checksum
How to use checksums
c7839b0e71afc04b6d06fe9698b703116ede829aa81350f5888eff4453739b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Release files / torch_tilt_series-0.6.0rc2-py3-none-any.whl

Download URL torch_tilt_series-0.6.0rc2-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adb25caecda7afbd0166f3f0691656706f04c97de5a1580fae8908f691367e5d
BLAKE2b-256 checksum
How to use checksums
cd4057800e2afe8c897340421f2037028d58a9dfd3e4c60aea1a09062d2f8671
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log
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