This release is a pre-release and may not be stable for production use.
torch-reconstruct-tomogram
(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 samplereconstruct_subvolume(): rank-polymorphic reconstruction of 3D patch(es) at location(s) in the samplereconstruct_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.0rc1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| torch_reconstruct_tomogram-0.6.0rc1.tar.gz | 10.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| torch_reconstruct_tomogram-0.6.0rc1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.7 kB
Release files / torch_reconstruct_tomogram-0.6.0rc1.tar.gz
| Download URL | torch_reconstruct_tomogram-0.6.0rc1.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ae2a30108de0682df838bd6982f1dcb939bd0713ee36820e7917a0718c3c939
|
|
BLAKE2b-256 checksum How to use checksums |
c3ec73514d4369c66d8c9611381a05c4f111bbd27ba0a785f9c56f8679c7e1f6
|
| 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 logRelease files / torch_reconstruct_tomogram-0.6.0rc1-py3-none-any.whl
| Download URL | torch_reconstruct_tomogram-0.6.0rc1-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93fc661d9f688d105e215ac49b43be47511852d9e4d5c0b4ae5ecb6a0660260d
|
|
BLAKE2b-256 checksum How to use checksums |
b8edc450e95cee75feeb3d64ec9e09884219b252b8457dcf2e5ad061ef470964
|
| 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