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.18.tar.gz
(8.9 kB
view details)
Built Distribution
File details
Details for the file lil_aretomo-0.0.18.tar.gz
.
File metadata
- Download URL: lil_aretomo-0.0.18.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 | 4ad2f6b97ff525a13c5e45c7dd827f63199b0dc23c41264b115a5c998a24cd89 |
|
MD5 | 6c00372e84bbb636b1e5d972cf8214fc |
|
BLAKE2b-256 | 746dbdef31f4400f817a333ebb1c79aa46b4bc8d59dfe6da5b14e1cc23a97c29 |
File details
Details for the file lil_aretomo-0.0.18-py2.py3-none-any.whl
.
File metadata
- Download URL: lil_aretomo-0.0.18-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 | 71f6b6f6e0fdf070f517ff837f7a193982100f28d6c5a514ea931ff877882281 |
|
MD5 | b083d940a278b32dc71ca82565290fdd |
|
BLAKE2b-256 | b2ae8d81a9e254c7bfdead8e66cb5e93e7eb839bd50bdd8590de1945e230a4bd |