Metadata-Version: 2.1
Name: lil-aretomo
Version: 0.0.18
Summary: AreTomo (w)rapper for rln4
Home-page: https://github.com/EuanPyle/lil_aretomo
Author: Euan Pyle
Author-email: euanpyle@gmail.com
License: BSD-3-Clause
Project-URL: Source Code, https://github.com/EuanPyle/lil_aretomo
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: dev
Provides-Extra: testing
License-File: LICENSE

# li'l AreTomo

A lightweight Python API for [AreTomo](https://www.biorxiv.org/content/10.1101/2022.02.15.480593v1).

## Installation

It is recommended to install into a fresh virtual environment.

```sh
pip install lil_aretomo
```

## Usage

```python
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

```sh
pip install -e .[dev]
pre-commit install
```

Flake8, black and isort will then run automatically on each commit.
