Skip to main content

etomofiles

License PyPI Python Version CI codecov

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.

Installation

pip install etomofiles

Quick Start

import etomofiles

# 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

xf Utilities

Get xf as numpy array:

import etomofiles

# Read alignment data
df = etomofiles.read("TS_001/")

# Get xf as numpy array:
xf_matrices = etomofiles.df_to_xf(df)

# Each matrix represents an affine transformation:
# [[A11, A12, DX],
#  [A21, A22, DY]]
# where X' = A11*X + A12*Y + DX
#       Y' = A21*X + A22*Y + DY

# Also works directly with files
xf_matrices = etomofiles.df_to_xf("TS_001/TS_001.xf")

# Choose row ordering convention
xf_xy = etomofiles.df_to_xf(df)  # default xy
# Each matrix is [[A11, A12, DX], [A21, A22, DY]]

xf_yx = etomofiles.df_to_xf(df, yx=True)  # yx
# Each matrix is [[A22, A21, DY], [A12, A11, DX]]

Metadata

Release files for etomofiles 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for etomofiles 0.1.2
File Size Uploaded
etomofiles-0.1.2.tar.gz 18.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for etomofiles 0.1.2
File Interpreter ABI Platform
etomofiles-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 27.9 kB

Release files / etomofiles-0.1.2.tar.gz

Download URL etomofiles-0.1.2.tar.gz
Size 18.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2e5778145378a0b748f0c6eff39e751e8e426ce88c5167b16ffcfb9b693f19c7
BLAKE2b-256 checksum
How to use checksums
d14dbe07d1b7f19bc61818fe9bada35b15935104c1f03a9267997510bb01a0bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release files / etomofiles-0.1.2-py3-none-any.whl

Download URL etomofiles-0.1.2-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a066b0272b5946a29c4f681b9e90878bf769880a675b69dd71b824d01a19cbf8
BLAKE2b-256 checksum
How to use checksums
b574ccef45630e9eebab4c594caeba2bf9dfafd637028fcd11896bdc0a2f0886
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page