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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4dc447d391332a1ae7c2c859b3caa261e1a04c61d771c4a14baa79530131887b |
|
MD5 | f7eb0f6a7da44399d3782ac7f468f254 |
|
BLAKE2b-256 | 2dbd5a9a5b7e1609bc8144c73f61d9bbdad1214faf8c0028866c9d0dd7a3b52b |
Close
Hashes for yet_another_imod_wrapper-0.0.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e6f72909e0528fa09bf0a80b65e817273696b6a23af183b99d7e04929464b2 |
|
MD5 | 5d603444ae1c032796dfd46c52fdc76b |
|
BLAKE2b-256 | 02220751cc0da2584cb98d675999956e89d332305f6fe9fcb3a80a4583fc763c |