Skip to main content

torch-reconstruct-tomogram

License PyPI Python Version CI codecov

(sub-)Tomogram reconstruction and subtilt extraction for cryo-ET.

Overview

This package provides (sub-)tomogram reconstruction and subtilt extraction driven entirely from a torch-tilt-series TiltSeries. It supports

  • extract_particle_tilt_series(): extract a subtilt-series at 3D location(s) in the sample
  • reconstruct_subvolume(): rank-polymorphic reconstruction of 3D patch(es) at location(s) in the sample
  • reconstruct_tomogram(): full volume reconstruction by tiling reconstructed patches in 3D

TiltSeries holds alignment geometry (in Angstroms) plus image_path/image_indices/pixel_spacing metadata. The functions above take a TiltSeries, and load and (by default) preprocess the matching raw images internally via torch_tilt_series.load_tilt_series_images() / preprocess_tilt_series_images() (by default: plane subtraction, a DC-excluding bandpass with no low-pass, i.e. up to Nyquist, and central-crop normalization); pass **preprocessing_kwargs to override any of its defaults (low=, high=, falloff=, bandpass_padding=, subtract_background=, normalize=) - see preprocess_tilt_series_images()'s docstring for details. output_pixel_spacing lets both local (reconstruct_subvolume) and global (reconstruct_tomogram) reconstruction target an arbitrary output voxel size. Reconstruction happens at the input pixel spacing and is Fourier-rescaled to the requested output size. Reconstruction is performed in Fourier space using central slice insertion. Positions are in zyx coordinates, in Angstroms, relative to the tomogram center.

Installation

pip install torch-reconstruct-tomogram

To load a tilt series from AreTomo or ETOMO output, also install the IO dependencies for torch-tilt-series:

pip install torch-tilt-series[io]

Examples

See the examples/ folder for scripts showing how to load a tilt series, reconstruct subvolumes and tomograms, and save the result.

License

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

Metadata

Release files for torch-reconstruct-tomogram 0.6.0

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-reconstruct-tomogram 0.6.0
File Size Uploaded
torch_reconstruct_tomogram-0.6.0.tar.gz 10.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for torch-reconstruct-tomogram 0.6.0
File Interpreter ABI Platform
torch_reconstruct_tomogram-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / torch_reconstruct_tomogram-0.6.0.tar.gz

Download URL torch_reconstruct_tomogram-0.6.0.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
233d105dffa2a1b3bbcb8af5e01f63c123e9bacfe1f1485a03c64b089cf78e3f
BLAKE2b-256 checksum
How to use checksums
c8f04115928159b38fe7809d2af9702beb428a5e6a069c58daa8a0d202a09d30
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_reconstruct_tomogram-0.6.0-py3-none-any.whl

Download URL torch_reconstruct_tomogram-0.6.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4b9320a649be72bec3b671d738f233655b593d1acd65a4b23a8c01728535af8
BLAKE2b-256 checksum
How to use checksums
1c8c6b65444295285d2846e9d5308cb673bc8f43e7d000f64b9be08c7fa41da6
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 history Release notifications | RSS feed

This release

0.6.0 This release

2 release 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