Metadata-Version: 2.5
Name: cellcanvas-core
Version: 0.1.0
Summary: Core components for CellCanvas
Project-URL: homepage, https://github.com/cellcanvas/cellcanvas-core
Project-URL: repository, https://github.com/cellcanvas/cellcanvas-core
Author-email: CellCanvas team <kevin.yamauchi@gmail.com>
License: MIT
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: dask
Requires-Dist: numpy>=2
Requires-Dist: scikit-learn
Requires-Dist: scipy
Requires-Dist: tqdm
Requires-Dist: zarr<4,>=3.1
Provides-Extra: dev
Requires-Dist: ipython; extra == 'dev'
Requires-Dist: pdbpp; extra == 'dev'
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: rich; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Provides-Extra: gpu
Requires-Dist: torch; extra == 'gpu'
Provides-Extra: test
Requires-Dist: pytest; extra == 'test'
Requires-Dist: pytest-cov; extra == 'test'
Description-Content-Type: text/markdown

# cellcanvas-core

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

Core components for CellCanvas

Requires Python 3.11+ and Zarr 3. New annotations use Zarr format 3.

## Array dimensions

- Images: **CZYX** (channel, depth, row, column); **BCZYX** with a batch axis.
- 2D images keep **Z=1**. Add a channel axis to legacy ZYX images.
- Labels: **ZYX**, shared across channels; zero is unannotated. Add one to
  classifier predictions before saving as labels.
- Features: **DZYX**, where D is feature width. Use `feature_axis=-1` for
  ZYXD inputs. Keep feature order consistent between training and prediction.
