Skip to main content
Pre-release

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

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

Built distribution (wheel)

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

Total release size: 19.7 kB

Release files / torch_reconstruct_tomogram-0.6.0rc2.tar.gz

Download URL torch_reconstruct_tomogram-0.6.0rc2.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5f640c3a3d35385eee7257eec829ef311fa1d15784bd9996253f57192648a94c
BLAKE2b-256 checksum
How to use checksums
b334f772ac11f0bf30c03678e5bba8ecb58606b8f0457d3c59c5c87b2a509699
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.0rc2-py3-none-any.whl

Download URL torch_reconstruct_tomogram-0.6.0rc2-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96eee56f4902803c7897c683ea30a25b8dfd56b73e18903ac084d00ea2e34175
BLAKE2b-256 checksum
How to use checksums
ffde22d2206450de707240c72c84775ceb593e47b054835a3f3738c817550cb1
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

0.6.0

2 release files

This release

0.6.0rc2 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