Skip to main content

An app for exploring spatial transcriptomics and cell segmentations by overlaying data

Project description

Gene Visualization Tool (cellColor)

An interactive desktop application for visualizing spatial transcriptomics data, cell segmentation masks, cell clustering data and microscopy images. Perfect for verifying cell segmentation accuracy and exploring spatial gene expression patterns.


👥 Credits & Project Team

  • Developer: Anthea Guo
  • Mentor: Kushal Nimkar
  • Principal Investigator (PI): Prof. Karthik Shekhar

Motivation

The motivation behind this was to create a tool that allows the user to easily verify the accuracy of cellpose segmentation masks while also highlighting spatially unusual genes.


✨ Features

  • Image Loading & Zooming: Load tissue/microscopy images, zoom into regions, and reset to full view.
  • Cellpose Segmentation Overlay: Overlay Cellpose-generated segmentation masks or outlines with smooth, cached zooming.
  • Transcript Visualization: Import transcript coordinates (x, y, gene), align with images using transformation matrices, and overlay selected genes.
  • Single-Cell Integration: Load AnnData cell center positions (.h5ad), toggle display, and customize appearance.
  • User-Friendly Toolbar: Intuitive controls for overlays and zoom, live status feedback, and collapsible navigation frames.
  • Data Alignment: Load transformation matrices for accurate transcript-image alignment.

🚀 Installation

Option 1: Install via PyPI (v0.1.0) When using a MacOS system that is more recent only pip3 is available, if this doesn't work switch back to pip.

pip3 install cellColor

Release: Nov 20, 2025 (PyPI link)

Launch:

cellColor

Option 2: Local Development (Editable Mode)

git clone https://github.com/crocodile27/cellColor.git
cd cellColor
conda create -n cellcolor python=3.10
conda activate cellcolor
pip install -e .

Run locally:

cellColor

‼️ IMPORTANT: Required Data Formats

Images

Tissue Section Images: .png, .jpg, .tif. High resolution tissues that will act as the canvas and which images you choose is up to your discretion. Click on file-> load image and choose desired image. A downsized version of the image will be produced after it is loaded for the first time. Feel free to choose either of them in future runs.

All other data:

Place all of the following files in a single folder with the format **[prefix]***rn[insert run number]*_**rg[insert region number]**. E.g. 140g_rn3_rg0 -> _this is really important for the auto_load_file function to correctly detect with run and region you are working on and automatically load all necessary files.

Files include:

  • Cellpose Masks: .npy image mask generated from cellpose.
  • Detected Transcripts: CSV/TSV with barcode_id, global_x, global_z, x, y, fov, gene, transcript_id as columns. global_x & global_y will be used as the coordinates.
  • Transformation Matrix: CSV/TSV for alignment of gene and tissue data.
  • AnnData:.h5ad with cell center coordinates saved in global_x and global_y observations.

🧪 Example Workflow

  1. Open the app: cellColor
  2. Load image: File → Load Image to display tissue section.
  3. Auto load all files: → click on desired folder
  4. Overlay Data: choose the data you'd like to overlay including: cell centers, gene transcripts, cellpose masks/outlines, cell clusters.
  5. Zoom & reset: Zoom into areas of interest; use Reset Zoom to return to previous zoom level.

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

cellcolor-0.2.3.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

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

cellcolor-0.2.3-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cellcolor-0.2.3.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for cellcolor-0.2.3.tar.gz
Algorithm Hash digest
SHA256 412e9e414c4d0038f9bd644d6f23bdbf68f43c391875c6c01b890c178c5a3035
MD5 2e1bc77164e1ab96cc82fc528440cb9d
BLAKE2b-256 44f623cbcad146f6fc113daec606082550755a9034f6abcd33623c5013d44b61

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cellcolor-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 28.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for cellcolor-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e4dcaee3b91f84f0ad4fb5ab33d6f8ac0abe64e2c12914df8515433f3d532c60
MD5 8a7e4856a1f0a632d1fa14504f849308
BLAKE2b-256 7b2abba454401fa5cf8d447b464434a0e834a1f4e71b6344e3a5859ce36af2a1

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