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',
skip_if_completed=False
)
# 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',
skip_if_completed=False
)
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
Close
Hashes for yet-another-imod-wrapper-0.0.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a40e72c014bd52143e3c4688dba80f729026aa74e7e7d95229ebb95e42a5f850 |
|
MD5 | 255ddd711ef11f97e95f859a44144a47 |
|
BLAKE2b-256 | 37bc256b43baa35370fc21093592fe696db37061abfd75cd44e91d6b13242d24 |
Close
Hashes for yet_another_imod_wrapper-0.0.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf53dc9e94b1bc043f17d21285d91430d7a868c422dfe0a630c625abbb483986 |
|
MD5 | fdeb627ed32d120e87f4d9cdbb48ab69 |
|
BLAKE2b-256 | 3e9ab46e474cd48fb30110fa39dd7993d34b5a0c9d53c7832761861be5a2b6f2 |