yet another IMOD wrapper
Project description
yet-another-imod-wrapper
A simple Python API for aligning single axis tilt-series in IMOD.
from yet_another_imod_wrapper import (
align_tilt_series_using_fiducials,
align_tilt_series_using_patch_tracking
)
import mrcfile
import numpy as np
# load tilt series into (n, y, x) numpy array
tilt_series = mrcfile.read('my_tilt_series.mrc')
# align using fiducials
align_tilt_series_using_fiducials(
tilt_series=tilt_series,
tilt_angles=np.arange(-60, 63, 3),
pixel_size=1.35,
fiducial_size=10,
nominal_rotation_angle=85,
basename='my_tilt_series',
output_directory='fiducials'
)
# align using patch-tracking
align_tilt_series_using_patch_tracking(
tilt_series=tilt_series,
tilt_angles=np.arange(-60, 63, 3),
pixel_size=1.35,
patch_size=1000,
patch_overlap_percentage=33,
basename='my_tilt_series',
output_directory='patch_tracking'
)
Installation
This package requires that IMOD>=4.11.0
is installed and on the PATH
.
yet-another-imod-wrapper
can be installed using pip
.
pip install yet-another-imod-wrapper
We recommend installing into a fresh virtual environment.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file yet-another-imod-wrapper-0.0.4.tar.gz
.
File metadata
- Download URL: yet-another-imod-wrapper-0.0.4.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350dbca45d7e1c583ff8b83c7f591a68bc99cb6bb897ac2054d37416cb798ec5 |
|
MD5 | c4983aa31f8a21cdeffe2057c0cfa82e |
|
BLAKE2b-256 | c8f41df989efeb2151fc716376fc36bb2338063f630443bb4669292643f75b20 |
File details
Details for the file yet_another_imod_wrapper-0.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: yet_another_imod_wrapper-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 791cf52e926b8c3fe1bcf5f3db4dccefefa5141936ef9f105a7c5a9b8041f245 |
|
MD5 | 7c24e3bcfc25f2d28f87effdcd88f9cd |
|
BLAKE2b-256 | dedbc5aba508878c29c672e7b458f53f07457bfb3e56ca7a2c49c521ba805fc8 |