Metadata-Version: 2.4
Name: celldega
Version: 0.28.0a6
License-File: LICENSE.txt
Requires-Python: <3.13,>=3.11
Requires-Dist: anndata<0.13,>=0.12
Requires-Dist: anywidget~=0.9.18
Requires-Dist: fsspec[http]>=2023.10.0
Requires-Dist: geopandas
Requires-Dist: imagecodecs>=2024.6.1
Requires-Dist: ipywidgets>=8.0.0
Requires-Dist: libpysal
Requires-Dist: matplotlib
Requires-Dist: mudata
Requires-Dist: numpy>=2
Requires-Dist: ome-zarr>=0.12.2
Requires-Dist: pandas>=2.2
Requires-Dist: polars<2,>=1.10
Requires-Dist: pyarrow
Requires-Dist: rasterio
Requires-Dist: requests
Requires-Dist: scipy
Requires-Dist: shapely<2.2,>=2.0
Requires-Dist: spatialdata-io<0.8,>=0.7.1
Requires-Dist: spatialdata<0.8,>=0.7.2
Requires-Dist: statsmodels<0.15,>=0.14
Requires-Dist: tifffile
Requires-Dist: watchfiles
Requires-Dist: zarr<4,>=3
Provides-Extra: dev
Requires-Dist: build; extra == 'dev'
Requires-Dist: hatch; extra == 'dev'
Requires-Dist: ipykernel; extra == 'dev'
Requires-Dist: ipywidgets>=8.0.0; extra == 'dev'
Requires-Dist: jupyterlab-widgets>=3.0.0; extra == 'dev'
Requires-Dist: jupyterlab>=4.0; extra == 'dev'
Requires-Dist: jupytext; extra == 'dev'
Requires-Dist: mkdocs; extra == 'dev'
Requires-Dist: mkdocs-jupyter; extra == 'dev'
Requires-Dist: mkdocs-material; extra == 'dev'
Requires-Dist: mkdocs-open-in-new-tab; extra == 'dev'
Requires-Dist: mkdocstrings[javascript]; extra == 'dev'
Requires-Dist: mkdocstrings[python]; extra == 'dev'
Requires-Dist: nbconvert; extra == 'dev'
Requires-Dist: nbformat; extra == 'dev'
Requires-Dist: pre-commit; extra == 'dev'
Requires-Dist: pymdown-extensions; extra == 'dev'
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: pytest-mock; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Provides-Extra: multimodal
Requires-Dist: muon==0.1.7; extra == 'multimodal'
Provides-Extra: pre
Requires-Dist: pyvips~=2.2.2; extra == 'pre'
Provides-Extra: scanpy
Requires-Dist: scanpy<1.12,>=1.11.5; extra == 'scanpy'
Description-Content-Type: text/markdown

![Celldega banner](https://raw.githubusercontent.com/broadinstitute/celldega/main/public/assets/banner.svg)

[![PyPI version](https://badge.fury.io/py/celldega.svg)](https://pypi.org/project/celldega/)
[![Python](https://img.shields.io/badge/python-3.11%20%7C%203.12-blue.svg)](https://www.python.org/downloads/)
[![Documentation](https://img.shields.io/badge/docs-latest-brightgreen.svg)](https://broadinstitute.github.io/celldega/)

# Celldega

Celldega is a toolkit for exploring spatial and single-cell data through linked,
GPU-accelerated visualizations. Explore tissue images, cells, transcripts, and
neighborhoods with **Landscape**; compare expression patterns with **Clustergram**
heatmaps and dot plots; and interpret gene sets with **Enrich**. Other views
include cell portraits, composition charts, and 3D cell and neighborhood clouds.

Use Celldega in Jupyter notebooks or as a standalone JavaScript library. For
desktop viewing of prepared data, try
[Celldega-App](https://broadinstitute.github.io/celldega/getting-started/desktop-app/).
[Download the latest desktop build](https://github.com/broadinstitute/celldega-app/releases/latest).

[Getting started](https://broadinstitute.github.io/celldega/getting-started/)
· [Visualizations](https://broadinstitute.github.io/celldega/visualizations/)
· [Interactive gallery](https://broadinstitute.github.io/celldega/gallery/)
· [Tutorial notebooks](https://broadinstitute.github.io/celldega/examples/)
· [Changelog](CHANGELOG.md)

![Linked Landscape and Clustergram views](https://raw.githubusercontent.com/broadinstitute/celldega/main/docs/assets/img/Xenium_HCRC_Landscape-Clustergram.gif)

## Quick start

Celldega supports Python 3.11 and 3.12. Install it in your notebook's environment:

```bash
pip install celldega
```

Run this in a notebook to explore a prepared Xenium human skin dataset:

```python
import celldega as dega

base_url = (
    "https://raw.githubusercontent.com/broadinstitute/"
    "celldega_Xenium_Prime_Human_Skin_FFPE_outs/main/"
    "Xenium_Prime_Human_Skin_FFPE_outs"
)

landscape = dega.viz.Landscape(
    base_url=base_url,
    ini_zoom=-4.5,
    ini_x=6000,
    ini_y=8000,
    height=700,
    width=600,
)
landscape
```

Follow the [linked Landscape–Clustergram–Enrich guide](https://broadinstitute.github.io/celldega/visualizations/landscape-clustergram-enrich/)
to connect tissue or UMAP views with expression patterns and enrichment results.
The [installation guide](https://broadinstitute.github.io/celldega/getting-started/installation/)
covers optional analysis and image-preprocessing dependencies.

For a web application:

```bash
npm install celldega
```

See the [JavaScript quick start](https://broadinstitute.github.io/celldega/javascript/)
for standalone and linked views.

## Documentation

- [Getting Started](https://broadinstitute.github.io/celldega/getting-started/): installation, usage options, and data formats.
- [Visualizations](https://broadinstitute.github.io/celldega/visualizations/): widget guides and linked workflows.
- [Gallery](https://broadinstitute.github.io/celldega/gallery/): interactive examples across datasets and technologies.
- [Example Notebooks](https://broadinstitute.github.io/celldega/examples/): complete analysis and visualization workflows.
- [Python API](https://broadinstitute.github.io/celldega/python/) and [JavaScript API](https://broadinstitute.github.io/celldega/javascript/api/): reference documentation.

## Development

See [Contributing](CONTRIBUTING.md) for prerequisites, setup, testing, and
publishing documentation notebooks. The setup script uses `uv` to create a
Python environment and installs the development tools:

```bash
git clone https://github.com/broadinstitute/celldega.git
cd celldega
bash scripts/setup.sh
source dega/bin/activate
npm run dev
```

`npm run dev` watches and rebuilds the JavaScript widget bundle. Open
`jupyter lab notebooks/` in another terminal to work with the development
notebooks. Maintained documentation tutorials live under `docs/examples/`.

| Path | Contents |
| --- | --- |
| `src/celldega/` | Python package |
| `js/` | JavaScript widgets and visualizations |
| `docs/` | Documentation, gallery, and published tutorial notebooks |
| `notebooks/` | Development and analysis notebooks |
| `celldega_js_examples/` | Standalone JavaScript examples |
| `tests/` and `js/__tests__/` | Python and JavaScript tests |
| `scripts/` | Setup, testing, and development utilities |

## Help and contributions

Use [GitHub Discussions](https://github.com/broadinstitute/celldega/discussions)
for questions, or [open an issue](https://github.com/broadinstitute/celldega/issues/new/choose)
to report a bug or request a feature. Contributions to the code, documentation,
and examples are welcome; start with the [contributing guide](CONTRIBUTING.md).

## Citation and license

If Celldega helps your research, please cite our preprint:
[Celldega: Integrated Toolkit for Visualization and Analysis of Spatial Data](https://www.biorxiv.org/content/10.64898/2026.08.13.744672v2).

Celldega is developed by the
[Spatial Technology Platform](https://www.broadinstitute.org/spatial-technology-platform)
at the [Broad Institute of MIT and Harvard](https://www.broadinstitute.org/).
See [LICENSE.txt](LICENSE.txt) for license terms.
