Metadata-Version: 2.4
Name: etomofiles
Version: 0.1.0
Summary: A Python package for reading IMOD etomo alignment files into pandas DataFrames
Project-URL: homepage, https://github.com/teamtomo/etomofiles
Project-URL: repository, https://github.com/teamtomo/etomofiles
Project-URL: issues, https://github.com/teamtomo/etomofiles/issues
Author-email: Davide Torre <davidetorre99@gmail.com>
License: BSD-3-Clause
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: mrcfile>=1.3.0
Requires-Dist: numpy>=1.19.0
Requires-Dist: pandas>=1.3.0
Description-Content-Type: text/markdown

# etomofiles

[![License](https://img.shields.io/pypi/l/etomofiles.svg?color=green)](https://github.com/teamtomo/etomofiles/raw/main/LICENSE)
[![PyPI](https://img.shields.io/pypi/v/etomofiles.svg?color=green)](https://pypi.org/project/etomofiles)
[![Python Version](https://img.shields.io/pypi/pyversions/etomofiles.svg?color=green)](https://python.org)
[![CI](https://github.com/teamtomo/etomofiles/actions/workflows/ci.yml/badge.svg)](https://github.com/teamtomo/etomofiles/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/teamtomo/etomofiles/branch/main/graph/badge.svg)](https://codecov.io/gh/teamtomo/etomofiles)

A Python package for reading IMOD etomo alignment files into pandas DataFrames.

## Overview

`etomofiles` provides a way to extract metadata from etomo alignment directories and convert them into structured pandas DataFrames. 


### Requirements

- Python ≥ 3.10
- numpy ≥ 1.19.0
- pandas ≥ 1.3.0
- mrcfile ≥ 1.3.0

## Quick Start

```python
import etomofiles
from pathlib import Path

# Read etomo alignment data
df = etomofiles.read("/path/to/etomo/directory")

print(df.head())
```

## DataFrame Columns

The resulting DataFrame contains the following columns:

| Column | Description |
|--------|-------------|
| `image_path` | Path to specific image in tilt series (e.g., `TS_001.st[0]`) |
| `idx_tilt` | Index of the tilt image (0-based) |
| `tilt_axis_angle` | Tilt axis rotation angle (degrees) |
| `rawtlt` | Raw tilt angle (degrees) |
| `tlt` | Corrected tilt angle (degrees) |
| `xtilt` | Tilt around x-axis |
| `xf_a11`, `xf_a12`, `xf_a21`, `xf_a22`, `xf_dx`, `xf_dy` | xf transformation matrix elements |
| `excluded` | Boolean indicating if view was excluded |



