Skip to main content

Python package for processing large-scale microscopy datasets generated by Arcadia's imaging suite

Project description

arcadia-microscopy-tools

uv

This repository contains a Python package called arcadia_microscopy_tools. The purpose of this Python package is for facilitating analysis of large-scale microscopy datasets generated by Arcadia's imaging suite which includes several microscopes:

  • Nikon ECLIPSE Ti2-E (Hina)
  • Nikon ECLIPSE Ni-E (Babu Frik)
  • Leica Stellaris 8 (The Borg)

This package provides tooling for image preprocessing, cell/particle segmentation, morphology analysis, fluorescence quantification, and batch processing pipelines. Supports native ND2 file format via nd2. LIF file support is in progress and will use liffile. The package integrates with popular scientific Python libraries for streamlined high-content screening and quantitative microscopy workflows.

Installation

Basic installation

Install the core package with essential dependencies:

pip install arcadia-microscopy-tools

Optional dependencies

Install with optional features using extras:

  • [segmentation] - Cellpose for cell/particle segmentation
  • [compute] - Modal for cloud-based processing
  • [all] - All optional dependencies
# Example: install with segmentation support
pip install "arcadia-microscopy-tools[segmentation]"

# Or install all optional dependencies
pip install "arcadia-microscopy-tools[all]"

Usage

Loading microscopy images

Load ND2 files from Nikon microscopes:

from pathlib import Path
from arcadia_microscopy_tools.microscopy import MicroscopyImage

# Load a Nikon ND2 file
example_nd2_path = Path("src/arcadia_microscopy_tools/tests/data/example-multichannel.nd2")
image = MicroscopyImage.from_nd2_path(example_nd2_path)

# Access basic properties
image.shape          # Array shape: (4, 256, 256)
image.sizes          # Dimension mapping: {'C': 4, 'Y': 256, 'X': 256}
image.channels       # List of Channel objects: [Channel(name='BRIGHTFIELD', ...), ...]
image.num_channels   # Number of channels: 4

Load LIF files from Leica microscopes:

# Load a Leica LIF file
image = MicroscopyImage.from_lif_path(Path("path/to/image.lif"))

Working with channels

Extract intensity data for specific channels:

from arcadia_microscopy_tools.channels import DAPI

# Get intensity data for a specific channel
dapi_intensities = image.get_intensities_from_channel(DAPI)

# The returned array preserves temporal/spatial dimensions
dapi_intensities.shape  # (256, 256)

For more examples, see the docs/examples directory.

Contributing

See how we recognize feedback and contributions to our code.

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

arcadia_microscopy_tools-0.2.3.tar.gz (3.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arcadia_microscopy_tools-0.2.3-py3-none-any.whl (1.8 MB view details)

Uploaded Python 3

File details

Details for the file arcadia_microscopy_tools-0.2.3.tar.gz.

File metadata

  • Download URL: arcadia_microscopy_tools-0.2.3.tar.gz
  • Upload date:
  • Size: 3.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for arcadia_microscopy_tools-0.2.3.tar.gz
Algorithm Hash digest
SHA256 18f5f5b387043920140c8fab3b03eb3cb4f5fab431bb64d0cf681ccd74639da3
MD5 d54d3423b6a72aa0a77287bd8b8131b9
BLAKE2b-256 4e8a3e86dc6fb619700787c72b63d2e976bac601d25adf88bb2aacaac13dae95

See more details on using hashes here.

File details

Details for the file arcadia_microscopy_tools-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: arcadia_microscopy_tools-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 1.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for arcadia_microscopy_tools-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd4fa9d6329287a43270d73be2b5f43caa095a829eb66f7464357eceb7e9f0a
MD5 73ca61ce1fce39c1d043ee4660cd984b
BLAKE2b-256 b87145d3c44b12ae4c029a09c7232cc19e60c313e400a72a2acc652b156d09b9

See more details on using hashes here.

Supported by

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