Skip to main content

No project description provided

Project description

Celldega banner

PyPI version Python License Documentation

Interactive spatial‑omics analysis & visualisation toolkit for single‑cell and spatial transcriptomics data

Demo

Celldega combines scalable computational pipelines with GPU‑accelerated, web‑native visualisations so you can explore millions of cells and transcripts directly inside Jupyter Lab, VS Code, or any modern browser. Built for researchers working with Xenium, Visium HD, MERFISH, and other spatial omics technologies.

🚀 Quick Start (30 min)

Installation

pip install celldega

For Terra.bio Users

Add this to your startup script for image processing features (more info):

apt update && apt install -y libvips libvips-tools libvips-dev

Example Usage

base_url = 'https://raw.githubusercontent.com/broadinstitute/celldega_Xenium_Prime_Human_Skin_FFPE_outs/main/Xenium_Prime_Human_Skin_FFPE_outs'

landscape_ist = dega.viz.Landscape(
    technology="Xenium",
    ini_zoom=-4.5,
    ini_x=6000,
    ini_y=8000,
    base_url=base_url,
    height=700,
    width=600,
)

# Alternatively pass an AnnData object to auto-populate cell metadata
# including "leiden" clusters, colors and UMAP coordinates.
landscape_from_adata = dega.viz.Landscape(
    base_url=base_url,
    AnnData=adata,
)

file_path = 'https://raw.githubusercontent.com/broadinstitute/celldega_Xenium_Prime_Human_Skin_FFPE_outs/main/Xenium_Prime_Human_Skin_FFPE_outs/df_sig.parquet'
df = pd.read_parquet(file_path)

mat = dega.clust.Matrix(df)
mat.cluster()
cgm = dega.viz.Clustergram(matrix=mat)

dega.viz.landscape_clustergram(landscape_ist, cgm)

Celldega Demo

📖 Documentation & Examples

🛠️ Development Setup (for Contributors)

Get started contributing in 2 minutes:

git clone https://github.com/broadinstitute/celldega.git
cd celldega

bash ./scripts/setup.sh

source dega/bin/activate
npm run dev

See our Contributing Guide for detailed instructions.

🏗️ Repository Structure

Directory/File Purpose
src/celldega/ 🐍 Core Python package
js/ 🌐 JavaScript widgets & visualizations
examples/ 📓 Jupyter notebook examples
docs/ 📚 Documentation source
js/__tests__/ 🧪 JS/TS Test suites
tests/ 🧪 Python Test suites
scripts/ 🔧 Development utilities

🤝 Contributing

We welcome contributions from the bio community! Whether you're a:

  • 🧬 Researcher - Share datasets, create tutorials, improve documentation
  • 👩‍💻 Developer - Add features, fix bugs, optimize performance
  • 📚 Educator - Create educational content, examples, workshops
  • 🎨 Designer - Improve visualizations, user experience, documentation

Getting started:

  1. Read our Contributing Guide
  2. Check open issues for ideas
  3. Join discussions to ask questions

🆘 Getting Help

Questions about using Celldega?

Found a bug or want a feature?

📊 Citation

If Celldega helps your research, please cite us:

@software{celldega,
  title   = {Celldega: Interactive spatial‑omics analysis & visualisation toolkit},
  author  = {{Broad Institute}},
  url     = {https://github.com/broadinstitute/celldega},
  version = {0.12.0},
  year    = {2025}
}

🏛️ About

Celldega is developed at the Broad Institute together with the biology research community. Our mission is to make spatial transcriptomics analysis accessible, interactive, and beautiful.

Built on amazing open source tools:

  • deck.gl - GPU-accelerated visualizations
  • PyArrow - Fast columnar data processing
  • AnnData - Annotated data matrices
  • SpatialData - Spatial omics data structures

Made with 🧬 by the Spatial Technology Platform at the Broad Institute

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

celldega-0.16.0a6.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

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

celldega-0.16.0a6-py2.py3-none-any.whl (3.4 MB view details)

Uploaded Python 2Python 3

File details

Details for the file celldega-0.16.0a6.tar.gz.

File metadata

  • Download URL: celldega-0.16.0a6.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.12.7 HTTPX/0.28.1

File hashes

Hashes for celldega-0.16.0a6.tar.gz
Algorithm Hash digest
SHA256 a74c26fa9d739f1f291a9672e3212dbbcf3216dc03f250d48b8acbe25710ba4c
MD5 ac5cff75933eac7868a0b4411604cd6f
BLAKE2b-256 5c0703675132b11d1f5ee9677d55d2b5f0bbb3fe1291327be2b3b412e3018663

See more details on using hashes here.

File details

Details for the file celldega-0.16.0a6-py2.py3-none-any.whl.

File metadata

  • Download URL: celldega-0.16.0a6-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.12.7 HTTPX/0.28.1

File hashes

Hashes for celldega-0.16.0a6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0ae0591ae6d4b65cb530981a9890403844e534d02ecaaf071eeb5b3dc4aa485c
MD5 59d8b93a76e7a32b9b07c1b3200e4b94
BLAKE2b-256 a16c4a57c71d4f163bfbcd5848b969b623904bf662773a378d9a5ed44783b31d

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