Skip to main content

Celldega banner

PyPI version Python Documentation Open in molab

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.

Preserve an observation as a Snapshot: a screenshot (raster image of the visualization), a memo, and metadata for reproducibility. Share the image with its context and revisit the supported view settings with the original data.

Use Celldega in Jupyter or marimo notebooks, or as a standalone JavaScript library. Try it instantly in molab, marimo's cloud notebooks, with a prepared Atera dataset. For desktop viewing of prepared data, try Celldega-App. Download the latest desktop build.

Getting started · Visualizations · Interactive gallery · Tutorial notebooks · Changelog

Linked Landscape and Clustergram views

Quick start

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

pip install celldega

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

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 to connect tissue or UMAP views with expression patterns and enrichment results. The installation guide covers optional analysis and image-preprocessing dependencies.

For a web application:

npm install celldega

See the JavaScript quick start for standalone and linked views.

Documentation

Development

See Contributing for prerequisites, setup, testing, and publishing documentation notebooks. The setup script uses uv to create a Python environment and installs the development tools:

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 for questions, or open an issue to report a bug or request a feature. Contributions to the code, documentation, and examples are welcome; start with the contributing guide.

Citation and license

If Celldega helps your research, please cite our preprint: Celldega: Integrated Toolkit for Visualization and Analysis of Spatial Data.

Celldega is developed by the Spatial Technology Platform at the Broad Institute of MIT and Harvard. See LICENSE.txt for license terms.

Metadata

Release files for celldega 0.29.0

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

Source distribution (sdist)

Source distribution for celldega 0.29.0
File Size Uploaded Provenance Actions
celldega-0.29.0.tar.gz 4.2 MB Without provenance Details for celldega-0.29.0.tar.gz

Built distribution (wheel)

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

Total release size: 8.4 MB

Release files / celldega-0.29.0.tar.gz

Download URL celldega-0.29.0.tar.gz
Size 4.2 MB
Tags Source
SHA-256 checksum
How to use checksums
cfdcec00fc5e461520d898b66db7b12f77cdd67b5d2331ea2a474cd453aeb6aa
BLAKE2b-256 checksum
How to use checksums
6b8ce8132fd0a9a8be5fae341e55f06b2866f5bba77315910d702dda83a4f6e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.12.7 HTTPX/0.27.0

Release files / celldega-0.29.0-py3-none-any.whl

Download URL celldega-0.29.0-py3-none-any.whl
Size 4.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
49eb6e936a1101e386a6c86aa672342de489ffd66c99d2e8f95078ad1fd1cd13
BLAKE2b-256 checksum
How to use checksums
37f42d87e3dbd9229466a54de930b0cd95443bd106f52977dee94a2d9c204609
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.16.5 cpython/3.12.7 HTTPX/0.27.0

Security for celldega 0.29.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.29.0 This release

2 release files No provenance

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