Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 1.25 KB

File metadata and controls

48 lines (32 loc) · 1.25 KB

Image Analysis - Usage Guide

Overview

This skill covers processing and analyzing tissue images from spatial transcriptomics data using Squidpy, including feature extraction, segmentation, and morphological analysis.

Prerequisites

pip install squidpy scanpy scikit-image
# Optional for better segmentation:
pip install cellpose

Quick Start

Tell your AI agent what you want to do:

  • "Extract image features from my tissue image"
  • "Segment cells in my Visium image"

Example Prompts

Feature Extraction

"Calculate image features for each spot"

"Extract texture features from the H&E image"

Segmentation

"Segment nuclei in my tissue image"

"Run cell segmentation with Cellpose"

Color Deconvolution

"Separate hematoxylin and eosin stains"

What the Agent Will Do

  1. Load tissue image from spatial data
  2. Process image (segmentation, feature extraction)
  3. Store features in adata.obsm or adata.obs
  4. Return summary of extracted features

Tips

  • ImageContainer - Use Squidpy's ImageContainer for organized handling
  • Scale factors - Remember to account for image scaling
  • Spot size - spot_scale parameter controls feature extraction area
  • Cellpose - Provides better cell segmentation than watershed