Skip to main content

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


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.1.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

lil_aretomo-0.1.0-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lil_aretomo-0.1.0.tar.gz.

File metadata

  • Download URL: lil_aretomo-0.1.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for lil_aretomo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0749604bbf75f2d9013c6a40b5c024be2ed54dd1ccb1fd7c7663a0fd2f175e8f
MD5 1f5ae78145006501820ed38b2e138f25
BLAKE2b-256 393268380fa2b9549966b403a8eadf7904f95980ed44aff1ef2496f7304a921c

See more details on using hashes here.

File details

Details for the file lil_aretomo-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for lil_aretomo-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 50016b5d077951a9f6d566ab73c2101b68dbe8ed2ee04656ffba47206d9336d6
MD5 5a7a69b1407fbe54c3fa2885ec66d19a
BLAKE2b-256 f4ed6882d56e4ccb9911af50a4830fa7a4e99dd522ffb8a202946f79e56f308b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page