AreTomo (w)rapper for rln4
Project description
li'l AreTomo
A lightweight Python API for AreTomo.
Installation
It is recommended to install into a fresh virtual environment.
pip install lil_aretomo
Usage
import numpy as np
import mrcfile
from lil_aretomo import align_tilt_series
tilt_series = mrcfile.read('my_tilt_series.mrc')
align_tilt_series(
tilt_series=tilt_series,
tilt_angles=np.linspace(-60, 60, 41),
pixel_size=1.35, # angstroms per pixel
sample_thickness_nanometers=2000, # angstroms
correct_tilt_angle_offset=True,
basename='TS_01', # basename for files passed to AreTomo
output_directory='TS_01_AreTomo',
skip_if_completed=False # set to True to skip if results from a previous alignment are present
)
For developers
We use pre-commit to ensure code style and formatting remains consistent.
To install the package in editable mode development dependencies
pip install -e .[dev]
pre-commit install
Flake8, black and isort will then run automatically on each commit.
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
lil_aretomo-0.0.17.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file lil_aretomo-0.0.17.tar.gz
.
File metadata
- Download URL: lil_aretomo-0.0.17.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bccc6166cda39a4b092babb8327708225f752b75d9cd15291c38536f90e87cfa |
|
MD5 | 157170f2b3e9e00ce40faaafa4cded31 |
|
BLAKE2b-256 | 2247a6c013d5050997091f2f20a1e01fed60a7e608b4dc3a9f654375ec6636e2 |
File details
Details for the file lil_aretomo-0.0.17-py2.py3-none-any.whl
.
File metadata
- Download URL: lil_aretomo-0.0.17-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccca7d870469f22894c8ad5a84dd15fd20efe80242968ec5e5ec755fed6ebd34 |
|
MD5 | 0bbe13ac6565614b9c1275de7bd6ce81 |
|
BLAKE2b-256 | 59be37c9e5d6f34f769e115bf869dfd6302c1cef62c377c58cabadb0386c9696 |